Skip to content
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 add sqlalchemy error (AttributeError - 'EmptyConstraint' object has no attribute 'allows') #4411

Closed
Maksych opened this issue Aug 19, 2021 · 3 comments
Labels
kind/bug Something isn't working as expected

Comments

@Maksych
Copy link

Maksych commented Aug 19, 2021

When pip install sqlalchemy all it`s ok

But with poetry have error

➜  backend poetry add sqlalchemy
Using version ^1.4.23 for SQLAlchemy

Updating dependencies
Resolving dependencies... (0.1s)

  AttributeError

  'EmptyConstraint' object has no attribute 'allows'

  at ~/.poetry/lib/poetry/_vendor/py3.8/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│
➜  backend
@Maksych Maksych added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Aug 19, 2021
@Maksych Maksych changed the title poetry add sqlalchemy error poetry add sqlalchemy error (AttributeError - 'EmptyConstraint' object has no attribute 'allows') Aug 19, 2021
@Maksych Maksych closed this as completed Aug 19, 2021
@matteosantama
Copy link

What was the resolution to this? I'm having the same problem with sqlalchemy

@finswimmer
Copy link
Member

Updating poetry to 1.1.8. See #4402

@abn abn removed the status/triage This issue needs to be triaged label Mar 3, 2022
Copy link

github-actions bot commented Mar 2, 2024

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Something isn't working as expected
Projects
None yet
Development

No branches or pull requests

4 participants