-
-
Notifications
You must be signed in to change notification settings - Fork 291
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
pex fails in a non-elevated Windows session #111
Comments
I run into similar issues on Windows. |
Same here. Fresh installation of "WinPython-64bit-3.5.1.1Zero.exe":
|
I'm also very interested in Windows support. Setup.py indeed claims that pex supports any platform but it's clearly not true since the examples do not work. |
The issue still remains even with pex 2.1.14. Is there any workaround or fix for this issue without using the elevated mode? |
Pex has never supported Windows, so the fact it ever worked in an elevated session was by luck! Apologies for the lack of attention to this issue. The active developers of Pex have never been active Windows users - just Linux and Mac; so we never added support. A few folks tried to step up to the plate with PRs, but there are alot of tests to fix and that thwarted all comers. That said, I'm actively working on Windows support. I bit the bullet and have been working in Windows for the last few weeks getting thinks working. The initial release will support Python >= 3.8 but still requires an elevated session / developer mode in newer Windows. I think this makes sense for creators of PEX files (Pex build time) since people doing that are - almost by definition - developers. For end users though, this is not acceptable. I should be able to email a PEX to grandma and have her be able to double-click and run it ... mod other issues like a default .pyz association, etc. The task of getting the test base green on Windows was large and I didn't really expect anyone to have the time to devote to that. Once I'm done though they'll be a green CI with 5 new Windows shards covering Python + Pip permutations; so, hopefully, that will make it more attractive for someone to come in and pitch in help on support for no-symlinks support and no long path aware support. Althoug my current work does get simple Python 2.7 / Python 3.7 cowsay PEXes buildable and runnable, the advanced features of Pex like --venv mode and all aspects of lockfile creation and consumption will need work to handle short paths and lack of symlinks. |
I just tried one of the simple examples from the pex documentation on Windows:
It looks like pex requires symlink support which is not available on Windows except in an elevated session.
The text was updated successfully, but these errors were encountered: