-
Notifications
You must be signed in to change notification settings - Fork 3k
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
"WARNING: Error parsing dependencies of console" on m1 mac after update to pip 24.1.1 #12824
Comments
The warning is legitimate (note that warnings are not errors!). The latest feature release of pip, aka pip 24.1, removed support for legacy versions and legacy specifiers. This extends to environment markers. I'm not really sure where Anyway, whatever version of It is known that enforcing PEP 440 syntax for system environment markers is not really workable, but that's already tracked in other issues (I don't have a link to them at hand, sorry). |
Believe the error it's coming from this in setup.py: install_requires = (
'colorama; os_name == "nt" and platform_version < "10.0.10586" ',
)
(The job being to install colorama if using an older Windows 10 that doesn't support ANSI escape chars.)
|
@mixmastamyk Marker evaluation is implemented by the pypa/packaging project which pip vendors. I've filed a PR to fix this issue as this is actually a violation of the specification: pypa/packaging#816. I didn't realize this until after the fact so that's why this context was missing in my original response here. Sorry for making you do redundant work! |
That's all right... helped me understand the situation. |
Description
when I update pip to 24.1.1 I get this error message every time pip runs
this is on my m1 mac (OSX Sonoma 14.5 (23F79))
here's some possibly useful output
brew reinstall python
fixed the problem as long as I don't update pipExpected behavior
pip check
should just say everything is o.k. with no warningspip version
24.1.1
Python version
3.12.14
OS
OSX Sonoma 14.5 (23F79)
How to Reproduce
Output
WARNING: Error parsing dependencies of console: Invalid version: 'Darwin Kernel Version 23.5.0: Wed May 1 20:12:58 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6000'
Code of Conduct
The text was updated successfully, but these errors were encountered: