jbn / ZigZag

Python library for identifying the peaks and valleys of a time series.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`poetry add zigzag` failed

sfmqrb opened this issue · comments

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

I am facing the same issue