jbn / ZigZag

Python library for identifying the peaks and valleys of a time series.
BSD 3-Clause "New" or "Revised" License
434 stars 174 forks source link

FAILURE ON IMPORTING #30

Open fede72bari opened 1 year ago

fede72bari commented 1 year ago

I have a bug on importing zigzag. After a successful pip installation I get this

from zigzag import *

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
Input In [15], in <cell line: 1>()
----> 1 from zigzag import *

File ~\anaconda3\lib\site-packages\zigzag\__init__.py:1, in <module>
----> 1 from zigzag.core import *
      3 PEAK = 1
      4 VALLEY = -1

File ~\anaconda3\lib\site-packages\zigzag\core.pyx:1, in init zigzag.core()

ImportError: numpy.core.multiarray failed to import (auto-generated because you didn't call 'numpy.import_array()' after cimporting numpy; use '<void>numpy._import_array' to disable if you are certain you don't need it).
pepeto commented 1 year ago

downgrade numpy version to 1.21.6