-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Could not parse version constraint #7729
Comments
I think we consider it a bugfix. Is this python-poetry/poetry-core#461 meaning this has already changed in 1.2.x? |
maybe makes sense for the marker parsing to reraise this as |
The exact same issue happened to me. Installing dependencies from lock file
Package operations: 1 install, 0 updates, 0 removals
• Installing zigzag (0.3.2): Failed
ParseConstraintError
Could not parse version constraint: >=^0.29
at ~/.local/share/pypoetry/venv/lib/python3.10/site-packages/poetry/core/constraints/version/parser.py:169 in parse_single_constraint
165│ if op == "!=":
166│ return VersionUnion(VersionRange(max=version), VersionRange(min=version))
167│ return version
168│
→ 169│ raise ParseConstraintError(f"Could not parse version constraint: {constraint}")
170│
The following error occurred when trying to handle this error:
InvalidRequirement
The requirement is invalid: invalid version constraint ">=^0.29"
at ~/.local/share/pypoetry/venv/lib/python3.10/site-packages/poetry/core/version/requirements.py:75 in __init__
71│
72│ try:
73│ self.constraint = parse_constraint(constraint)
74│ except ParseConstraintError:
→ 75│ raise InvalidRequirement(
76│ f'The requirement is invalid: invalid version constraint "{constraint}"'
77│ )
78│
79│ self.pretty_constraint = constraint
sajad@SFM-D:~/gstargets$ poetry --version
Poetry (version 1.4.1)
using version 1.1.13 there is no error and some information about my system env using
|
I have the same error with looks like And I can't find a way to know which package this is. Also I can't re-produce it in my computer, it only failed in windows ci... https://github.com/trim21/install-poetry-project/actions/runs/4659844430/jobs/8247224583 |
this is already fixed in poetry-core, this issue can be closed |
No it's not. I just try poetry@main with poetry-core@main it still fail.
|
that stack is quite different from the one reported in this issue, please raise new problems in new issues (this issue can still be closed!) |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
-vvv
option) and have included the output below.Issue
And the exception:
It used to just warn:
Do we consider this a regression or not ?
The text was updated successfully, but these errors were encountered: