You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you use a URI on Windows for PIP_CONSTRAINTS, then pip breaks down with an error like this:
ERROR: Could not open requirements file: [Errno 22] Invalid argument: '/C:/Users/VssAdministrator/AppData/Local/Temp/pytest-of-VssAdministrator/pytest-1/test_dependency_constraints_fi1/constraints file.txt'
ERROR: Could not open requirements file: [Errno 22] Invalid argument: '/C:/Users/VssAdministrator/AppData/Local/Temp/pytest-of-VssAdministrator/pytest-1/test_dependency_constraints_fi1/constraints file.txt'
This leading slash unfortunately causes issues in functions like open(). Windows can take a UNC path, /Users/VssAdministrator (without the drive name, as long as you are on the same drive), or C:/Users/VssAdministrator (the one we all know), but not /C:/Users/VssAdministrator.
Description
If you use a URI on Windows for PIP_CONSTRAINTS, then pip breaks down with an error like this:
This was supposed to be a workaround for #10114. Seen in pypa/cibuildwheel#738 (comment)
Expected behavior
URIs from
path lib
should work on Windows.pip version
21.1.3
Python version
All
OS
Windows and macOS, at least, probably all.
How to Reproduce
Path.as_uri()
.Output
ERROR: Could not open requirements file: [Errno 22] Invalid argument: '/C:/Users/VssAdministrator/AppData/Local/Temp/pytest-of-VssAdministrator/pytest-1/test_dependency_constraints_fi1/constraints file.txt'
Code of Conduct
The text was updated successfully, but these errors were encountered: