Open ljlamarche opened 5 months ago
Came here because I also ran into this issue today. Until fixed, it's also possible to just uninstall numpy whilst apexpy is installed, and then reinstall the previous version before 2.0:
pip uninstall numpy
pip install numpy==1.26.4
When fixed, update docs/installation.rst
.
Describe the bug
Recent installations of apexpy in a clean environment appears to succeed, but then fails on import with the traditional fortranapex error.
Based on the traceback (provided below), the problem looks like it may be related to the recent release of numpy 2.0. When installing in a clean environment, pip will automatically try to install the latest version of the numpy as a dependency. If instead I manually install an older version of numpy BEFORE trying to install apexpy, everything works as expected and there are no problems.
There is a numpy migration guide that will likely be useful in adapting apexpy to work with numpy 2.0.
To Reproduce
pip install apexpy
import apexpy
Expected behavior
Apexpy should successfully install and be usable from pip.
Traceback
Computer