Ask coding questions

← Back to all posts
'EmptyConstraint' object has no 'allows' Attribute error fix?
Korbindev

' Updating dependencies
Resolving dependencies...

Writing lock file

AttributeError

'EmptyConstraint' object has no attribute 'allows'

at /opt/virtualenvs/python3/lib/python3.8/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│
exit status 1 '

Voters
Korbindev