danielhrisca / asammdf

Fast Python reader and editor for ASAM MDF / MF4 (Measurement Data Format) files
GNU Lesser General Public License v3.0
655 stars 226 forks source link

ImportError: numpy.core.multiarray failed to import with numpy 2.0.2 #1074

Open zdxerr opened 2 months ago

zdxerr commented 2 months ago

Python version

3.12

Traceback

from asammdf import MDF File "C:\TS\BM_TS.env\Lib\site-packages\asammdf__init__.py", line 20, in from .mdf import MDF, SUPPORTED_VERSIONS File "C:\TS\BM_TS.env\Lib\site-packages\asammdf\mdf.py", line 40, in from .blocks.mdf_v2 import MDF2 File "C:\TS\BM_TS.env\Lib\site-packages\asammdf\blocks\mdf_v2.py", line 8, in from .mdf_v3 import MDF3 File "C:\TS\BM_TS.env\Lib\site-packages\asammdf\blocks\mdf_v3.py", line 51, in from .cutils import get_channel_raw_bytes ImportError: numpy.core.multiarray failed to import

Description

I get import errors when using asammdf with numpy 2.0.2

Simsalabim1234 commented 3 weeks ago

I have the same issue when trying to install asammdf 8.0.1 and numpy 2.1.2 in the same Dockerimage. Is there any progress on this issue?

53.54 ERROR: Cannot install -r /root/python/requirements.txt (line 3) and numpy==2.1.2 because these package versions have conflicting dependencies. 53.54 53.54 The conflict is caused by: 53.54 The user requested numpy==2.1.2 53.54 asammdf 8.0.1 depends on numpy<2.0.0 and >=1.23.0 53.54 53.54 To fix this you could try to: 53.54 1. loosen the range of package versions you've specified 53.54 2. remove package versions to allow pip attempt to solve the dependency conflict 53.54 53.54 ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts