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 zigzag failed #35

Open
sfmqrb opened this issue Mar 30, 2023 · 2 comments
Open

poetry add zigzag failed #35

sfmqrb opened this issue Mar 30, 2023 · 2 comments

Comments

@sfmqrb
Copy link

sfmqrb commented Mar 30, 2023

Hello

Thanks for the great package.

When I use poetry to add zigzag to my project it fails with this message:

  • Installing zigzag (0.3.2): Failed

  ParseConstraintError

  Could not parse version constraint: >=^0.29

I guess there is something wrong with cython >=0.29 cython dependencey.

Full Log:

Updating dependencies                                                                                                                                                                                         
Resolving dependencies... (0.8s)                                                                                                                                                                              
                                                                                                                                                                                                              
Writing lock file                                                                                                                                                                                             
                                                                                                                                                                                                              
Package operations: 3 installs, 0 updates, 0 removals                                                                                                                                                         
                                                                                                                                                                                                              
  • Installing cython (0.29.33): Pending...                                                                                                                                                                   
  • Installing numpy (1.24.2): Pending...
  • Installing numpy (1.24.2): Installing...
  • Installing cython (0.29.33)
  • Installing numpy (1.24.2)
  • 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

by the way:
output of poetry debug info

Poetry
Version: 1.4.1
Python: 3.10.6
Platform: linux
OS: posix
Python: 3.10.6
Path: /usr
Executable: /usr/bin/python3.10

@binny-mathew
Copy link

I am facing the same issue

@zillionare
Copy link

I have released zigzag-reloaded to fix this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants