-
Notifications
You must be signed in to change notification settings - Fork 2.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
poetry update
AttributeError: 'EmptyConstraint' object has no attribute 'allows'
#4410
Comments
Upgrading poetry to 1.1.8 may solve the issue. |
Thanks -- looks like this is a dupe, then. |
I have the same issue with the current preview build, poetry Will there be another preview build that fixes it? |
Been getting the same problem. |
I'm doing $ poetry update
Updating dependencies
Resolving dependencies... (1.3s)
AttributeError
'EmptyConstraint' object has no attribute 'allows'
at /usr/lib/python3.9/site-packages/poetry/core/version/markers.py:291 in validate
287│
288│ if self._name not in environment:
289│ return True
290│
→ 291│ return self._constraint.allows(self._parser(environment[self._name]))
292│
293│ def without_extras(self): # type: () -> MarkerTypes
294│ return self.exclude("extra")
295│ Link to pyproject.toml. |
I get the same error as others, 'EmptyConstraint' object has no attribute 'allows' and through some trail and error it looks like the issue is with sqlalchemy version 1.4.23. If I pin it to 1.4.22 everything works as expected. Note: i'm using poetry 1.2.0a1 |
Yeah, happens with sqlalchemy [[package]]
name = "sqlalchemy"
version = "1.4.23"
description = "Database Abstraction Library"
category = "main"
optional = false
python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,>=2.7"
[package.dependencies]
greenlet = {version = "!=0.4.17", markers = "python_version >= \"3\" and platform_machine in \"x86_64 X86_64 aarch64 AARCH64 ppc64le PPC64LE amd64 AMD64 win32 WIN32\""}
|
@errsolve7 this is not solved with Poetry 1.1.8 or current master, as several commenters and I have noted. |
Please do not follow this link, this user is attempting a phishing scam. Comment is reported. As an aside, updating to Poetry 1.1.8 fixed the |
Yeah, fixed for me too in 1.1.8, was getting it with 1.1.7 |
Also fixed for me too in 1.1.8, was getting it with 1.1.6 |
Pinning sqlalchemy to |
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).Gist of output is: https://gist.github.com/mdengler/7be12f9c481567c7872bc2ea712464b6
Issue
I have received this error message:
I made this change as a workaround:
I gathered some extra debugging information that points to
greenlet
andsqlalchemy
as being involved in the issue: https://gist.github.com/mdengler/7be12f9c481567c7872bc2ea712464b6The text was updated successfully, but these errors were encountered: