Closed kwabenantim closed 3 weeks ago
Does this relate to #76 @kwabenantim , can we get latest release to work with numpy 2 ?
Does this relate to #76 @kwabenantim , can we get latest release to work with numpy 2 ?
This resolves #76 by installing numpy>=1.24.4,<2.0
. I don't think cellmlmanip currently supports numpy 2 though - I'll add an issue for it.
It looks like the numpy 2 errors here are pint-related (https://github.com/hgrecco/pint/issues/1974). Probably needs bumping up the pint version in cellmlmanip
requirements.
==================================== ERRORS ====================================
__________________ ERROR collecting files/tests/test_forms.py __________________
client/files/tests/test_forms.py:8: in <module>
from files.forms import CellmlModelForm
client/files/forms.py:5: in <module>
from cellmlmanip import load_model
/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/cellmlmanip/__init__.py:3: in <module>
from .main import load_model # noqa
/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/cellmlmanip/main.py:2: in <module>
from cellmlmanip.parser import Parser
/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/cellmlmanip/parser.py:15: in <module>
from cellmlmanip.model import SYMPY_SYMBOL_DELIMITER, Model
/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/cellmlmanip/model.py:15: in <module>
from cellmlmanip.units import UnitStore
/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/cellmlmanip/units.py:13: in <module>
import pint
/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/pint/__init__.py:28: in <module>
from .measurement import Measurement
/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/pint/measurement.py:12: in <module>
from .quantity import Quantity
/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/pint/quantity.py:69: in <module>
from .numpy_func import (
/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/pint/numpy_func.py:875: in <module>
implement_single_dimensionless_argument_func(func_str)
/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/pint/numpy_func.py:864: in implement_single_dimensionless_argument_func
func = getattr(np, func_str)
/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/numpy/__init__.py:410: in __getattr__
raise AttributeError("module {!r} has no attribute "
E AttributeError: module 'numpy' has no attribute 'cumproduct'. Did you mean: 'cumprod'?
Summary
appredict-docker
ap-nimbus-app-manager
ap-nimbus-client
ap-nimbus