Closed rossidae closed 2 months ago
A clean install of PyCO2SYS fails to import due to (I think) the new numpy.
Steps to replicate:
mkdir pyco2sys_import_test cd pyco2sys_import_test python3.11 -m venv .environment source .environment/bin/activate pip install pyco2sys python import PyCO2SYS as pyco2
Error: module 'numpy' has no attribute 'msort'. Also applicable to other python versions (e.g. python3.10)
I think an immediate resolution is to change line 14 of pyproject.toml to "numpy<2.0.0". Can confirm it's fixed if I install numpy<2.0.0 instead.
Thanks - have updated! Should be working on pip now, conda-forge will take a little while longer.
A more significantly updated version that will work with Numpy v2 is in progress.
A clean install of PyCO2SYS fails to import due to (I think) the new numpy.
Steps to replicate:
Error: module 'numpy' has no attribute 'msort'. Also applicable to other python versions (e.g. python3.10)
I think an immediate resolution is to change line 14 of pyproject.toml to "numpy<2.0.0". Can confirm it's fixed if I install numpy<2.0.0 instead.