-
Notifications
You must be signed in to change notification settings - Fork 64
Open
Description
Bug
Tests fail due to numpy version specific imports
_________ ERROR collecting tests/utils/structures/test_key_line_2d.py __________
ImportError while importing test module '/home/DGP/dgp/tests/utils/structures/test_key_line_2d.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../../../miniconda3/envs/envDGP/lib/python3.10/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/utils/structures/test_key_line_2d.py:3: in <module>
from numpy.lib.ufunclike import fix
E ModuleNotFoundError: No module named 'numpy.lib.ufunclike'
Same issue with dgp/tests/utils/structures/test_key_line_3d.py and dgp/tests/utils/test_camera.py
To Reproduce
Steps to reproduce the behavior:
- Install numpy version 2.2
Minimum reproducible code example:
Just create a virtual environment using pyenv or conda. Activate it and then try this on the command-line
make test
Also, you can do
python -c "import numpy; print(numpy.__version__); from numpy.lib import ufunclike"
Expected behavior
If the problem is corrected, the tests should pass. The imports should no longer fail
Additional context
RHEL machine, so cannot install numpy 1.20.3 using pip for some weird gcc compatibility reasons
Reactions are currently unavailable
Metadata
Metadata
Labels
No labels