-
Notifications
You must be signed in to change notification settings - Fork 37
Description
Summary of issue
After installing, import serpentTools throws up some dependency errors that I think arise from numpy2.0.0 removing longfloat in favor of longdouble. If the workaround is as simple as just using an older numpy, that's fine, I just don't know if there would be other dependency things cropping up.
Code for reproducing the issue
Installing in a venv with python 3.9 and attempting to import serpentTools. The package list in the venv is here:
`pip list --local
Package Version
contourpy 1.3.0
cycler 0.12.1
fonttools 4.56.0
importlib_resources 6.5.2
kiwisolver 1.4.7
matplotlib 3.9.4
numpy 2.0.2
packaging 24.2
pillow 11.1.0
pip 23.0.1
pyparsing 3.2.1
python-dateutil 2.9.0.post0
PyYAML 6.0.2
serpentTools 0.11.0
setuptools 58.1.0
six 1.17.0
zipp 3.21.0`
side note: I'm trying to use python 3.9 to avoid the distutils error from #527 but alas it wasn't going to be this simple 😩
Actual outcome including console output and error traceback if applicable
The full error is here:
python -c "import serpentTools" Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/ashe/Serpent/serpent-tools/serpentTools/__init__.py", line 3, in <module> from serpentTools.parsers import * File "/home/ashe/Serpent/serpent-tools/serpentTools/parsers/__init__.py", line 17, in <module> from serpentTools.parsers.depmatrix import DepmtxReader, readDepmtx File "/home/ashe/Serpent/serpent-tools/serpentTools/parsers/depmatrix.py", line 6, in <module> from numpy import empty, empty_like, longfloat, zeros ImportError: cannot import name 'longfloat' from 'numpy' (/home/ashe/.venvs/my_serpent3.9/lib/python3.9/site-packages/numpy/__init__.py)
Expected outcome
It just works 🍎
Versions
Please provide the following:
- Version from
serpentTools.__version__0.9.4 - Python version -
python --version3.9.21 - IPython or Jupyter version if applicable
- If using the development version, the output from
git describe