-
Notifications
You must be signed in to change notification settings - Fork 553
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
Python 3.9 + Windows: Does not handle long paths like other versions #267
Comments
Oh, and this seems to be a somewhat-recent change, since |
This is related to the upgrade to 3.9.8 which is the first Python version to have been released with python/cpython@06935bd. The same warning/failure will appear in Python 3.10 next month. Also experiencing this at pypa/build. |
Okay, that actually appears to be a manifestation of the issue with paths - I didn't look close enough, sorry. |
Make pipx the third PyPA project being affected 🙂 |
Hello @pradyunsg! We were be able to reproduce this issue on windows-latest hosted image, but it also reproduces on the local Windows machine. It looks like the issue is not related to setup-python action, but to Python 3.9.8. |
What steps are needed to reproduce this locally? I don’t recall 3.9.9 containing a fix for this, so we may want to report this to upstream CPython so they can investigate properly. Even if the bug is fixed in 3.9.9, the fact that it manifests but disappears on its own is enough reason for it to be more thoroughly investigated. |
Hello @uranusjr, I installed Python 3.9.8 on my Windows machine using
I got the same error as in https://github.com/pradyunsg/testing-grounds/runs/4187901999?check_suite_focus=true |
I tracked this down: https://bugs.python.org/issue45777 So yes, 3.9.8 is the only broken release, it’s built with faulty configuration. The solution is to use 3.9.9 (or anything but 3.9.8). |
So this is supposed to be fixed in 3.9.9? Because 3.9.9 is failing for pypa/build on Windows. |
Yes, the 3.9.9 build of CPython is supposed to work (if you have LongPathsEnabled set correctly system-wide, of course; that is always a prerequisite). |
@layday I'm going to close the issue because it related to Python 3.9.8 and not to setup-python. |
Description:
Python 3.9 seems to behave differently from other Python versions, when handling long paths on Windows. This looks suspiciously like non-LongPathAware behaviour.
Action version:
Specify the action version: v2?
Platform:
Runner type:
Tools version:
3.9
Repro steps:
A description with steps to reproduce the issue. If your have a public example or repo to share, please provide the link.
Noticed since this was causing errors in pip's test suite: https://github.com/pypa/pip/runs/4187290412?check_suite_focus=true
Expected behavior:
Python 3.9 behaves like other Python versions, and handles long paths on Windows.
Actual behavior:
Python 3.9 fails when handling long paths on Windows.
The text was updated successfully, but these errors were encountered: