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

I got an error when importing the zigzag lib #27

Open lvvdat opened 2 years ago

lvvdat commented 2 years ago

I got an error when importing the zigzag lib:

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

TENGBINN commented 2 years ago

It seems that under Windows, I also got this error.

wojtekjakubo commented 2 years ago

Yup, same here

zoakes commented 2 years ago

same -- only way I can get it to work is in it's own library, but then it breaks basically everything else I try installing.

ozanzgur commented 2 years ago

I had the same issue after installing seaborn by conda, which downgraded numpy to 1.21.5. After upgrading numpy back to 1.23.1, didn't get the error.

azamkamranian commented 1 year ago

I uninstalled numpy=1.23 and I tried numpy==1.21.5 and 1.21.6 .. not working then upgraded NumPy to the latest version (1.23.4). it worked thanks @ozanzgur

zoakes commented 1 year ago

Honestly, I found it easier to just pull the source and rewrite it myself. Not ideal — but whatever.

Get Outlook for iOShttps://aka.ms/o0ukef


From: Azam @.> Sent: Tuesday, November 8, 2022 11:51:55 AM To: jbn/ZigZag @.> Cc: Zach Mazz @.>; Comment @.> Subject: Re: [jbn/ZigZag] I got an error when importing the zigzag lib (Issue #27)

I uninstalled numpy=1.23 and I tried numpy==1.21.5 and 1.21.6 .. not working then upgraded NumPy to the latest version (1.23.4). it worked thanks @ozanzgurhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fozanzgur&data=05%7C01%7C%7C8c5bd4e32a7e4e3afd4608dac1b1ed4c%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638035267178946390%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=UKnnHRjW0KYhfIEHo4Y%2BLbaYiXSW25j0g3Jpo0IVWvE%3D&reserved=0

— Reply to this email directly, view it on GitHubhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fjbn%2FZigZag%2Fissues%2F27%23issuecomment-1307609558&data=05%7C01%7C%7C8c5bd4e32a7e4e3afd4608dac1b1ed4c%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638035267178946390%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=v4Xdjp%2B3AZhP0%2Ffj%2Box7cUOBFA1sWIZl2SSnGTY5Tvo%3D&reserved=0, or unsubscribehttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FALPUCID7PRUOAR3VUVEYS6LWHKHLXANCNFSM554RZ3AQ&data=05%7C01%7C%7C8c5bd4e32a7e4e3afd4608dac1b1ed4c%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638035267178946390%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=2t6TKrH3%2FReoTXEqJdir92a64%2BXyX4KSjiFXwRF0Bsc%3D&reserved=0. You are receiving this because you commented.Message ID: @.***>