Skip to content

Cannot run WinPython on OneDrive #1217

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
MaiastraMan opened this issue Apr 29, 2023 · 8 comments
Open

Cannot run WinPython on OneDrive #1217

MaiastraMan opened this issue Apr 29, 2023 · 8 comments
Labels

Comments

@MaiastraMan
Copy link

I am attempting to run a Python script using a WinPython distribution, both of which are located on OneDrive.

Specifically, I attempted to accomplish this by typing the following into the command prompt: "C:\MyOneDriveFolder\WinpythonFolder\python-3.9.8.amd64\python.exe" "C:\MyOneDriveFolder\MyPythonScript.py"

However, the command prompt gave the error message "Access is denied." There was also a pop-up stating "This app can't run on your PC. To find a version for your PC, check with the software distributor".

I tried several approaches to fix this issue, including:

  • Ensuring all files have sufficient permissions ("Allow" for "Read and Execute" and "Modify")
  • Running command prompt as administrator
  • Setting OneDrive sync settings to "Download all Files"
  • Pausing syncing before trying to run the command

However, I still get the same error message. If anyone knows how to fix this please would you advise me? Or if anyone knows for sure that this cannot be done with the current version of WinPython this would also be a great help. And in this case I would like to suggest this as an area for future development.

I appreciate anyone's time and thank you in advance.

@stonebig
Copy link
Contributor

Googling "running.a.python app.on onedrive", suggests you can't do that

@MaiastraMan
Copy link
Author

Googling "running.a.python app.on onedrive", suggests you can't do that

Thank you for your reply, however I Googled this (and similar wordings) and I could not find any such suggestion. Are you able to provide a specific link to where you read this?

@stonebig
Copy link
Contributor

see here https://stackoverflow.com/questions/45082883/python-virtualenv-cant-work-through-onedrive

It's more a generic warning that it's not the way OneDrive is meant to be used.
In practice, it shall work but the simple size of the minimal winpython( 200 Mo) makes it a problem

@MaiastraMan
Copy link
Author

see here https://stackoverflow.com/questions/45082883/python-virtualenv-cant-work-through-onedrive

It's more a generic warning that it's not the way OneDrive is meant to be used. In practice, it shall work but the simple size of the minimal winpython( 200 Mo) makes it a problem

Thank you for sharing this link with me, I have now read the post but I still do not understand why WinPython cannot run on OneDrive. This is because the post just claims that OneDrive is "not meant for code", but does not give any reference or explanation.

Consequently I am curious about your comment that the "size of the minimal winpython( 200 Mo) makes it a problem". Please would you explain why this is the case? If so I would greatly appreciate it.

@stonebig
Copy link
Contributor

stonebig commented Apr 29, 2023

sqlite_bro definitely works with Winpython-3.4.4 being on the cloud drive, but it's a small thing.
Also, not in "Admin" mode, maybe the "Admin" mode is a bad idea

@stonebig
Copy link
Contributor

Also possible: https://www.youtube.com/watch?v=M2OFFoKXGXo
image

@MaiastraMan
Copy link
Author

That is very interesting that Winpython-3.4.4 worked on OneDrive for you. This either means that later versions of WinPython have lost this capability, or that my OneDrive may have some issue. If it is not too much trouble, please would you test it with "Winpython64-3.10.9.0"?

Also thank you for the YouTube video, however I tried the recommended steps but these did not change the outcome.

@stonebig
Copy link
Contributor

You shall check that the winpython standard icon, that launch a command line, does work
Then typing python + does work
Then typing python + your_script.py + does work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants