-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Closed
Labels
C: error messagesImproving error messagesImproving error messagesOS: windowsWindows specificWindows specificgood first issueA good item for first time contributors to work onA good item for first time contributors to work ontype: bugA confirmed bug or unintended behaviorA confirmed bug or unintended behavior
Description
Re: https://discuss.python.org/t/pep-773-a-python-installation-manager-for-windows/77900/160
pip/src/pip/_internal/commands/install.py
Lines 777 to 791 in 24f4600
| # Suggest the user to enable Long Paths if path length is | |
| # more than 260 | |
| if ( | |
| WINDOWS | |
| and error.errno == errno.ENOENT | |
| and error.filename | |
| and len(error.filename) > 260 | |
| ): | |
| parts.append( | |
| "HINT: This error might have occurred since " | |
| "this system does not have Windows Long Path " | |
| "support enabled. You can find information on " | |
| "how to enable this at " | |
| "https://pip.pypa.io/warnings/enable-long-paths\n" | |
| ) |
try:
Path('a' * 300 + '.txt').touch()
except OSError as e:
exc = eThis gives exc as OSError(22, 'Invalid argument'), where exc.errno == errno.EINVAL, rather than ENOENT.
Python 3.13.2; Windows 11
A
Metadata
Metadata
Assignees
Labels
C: error messagesImproving error messagesImproving error messagesOS: windowsWindows specificWindows specificgood first issueA good item for first time contributors to work onA good item for first time contributors to work ontype: bugA confirmed bug or unintended behaviorA confirmed bug or unintended behavior