Python applications won’t run on OneDrive folders without moving them to a new folder in Onedrive every time.

Peng, Rich 15 Reputation points
2023-11-06T18:14:51.7233333+00:00

I have a user using Python 3.10.13 that started having issue running Python applications in Onedrive couple of days ago.

The same file will show this error “ModuleNotFoundError: No module named 'snowflake.connector'; 'snowflake' is not a package“ and if they copy it to a different new folder within OneDrive it will run just fine.

Currently, the copying of files to a new folder is the painful workaround. We have checked file path lengths, disabled file on-demand, and checked the Python Path environmental variables.

Microsoft 365 and Office | OneDrive | For business | Windows
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.