Closed michaelweinold closed 6 days ago
...related to a NumPy issue. The test import in bw2calc
:
import scikits.umfpack
returns
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
Cell In[7], [line 1](vscode-notebook-cell:?execution_count=7&line=1)
----> [1](vscode-notebook-cell:?execution_count=7&line=1) import scikits.umfpack
File /opt/homebrew/Caskroom/miniconda/base/envs/bw25arm/lib/python3.11/site-packages/scikits/umfpack/__init__.py:25
[22](https://file+.vscode-resource.vscode-cdn.net/opt/homebrew/Caskroom/miniconda/base/envs/bw25arm/lib/python3.11/site-packages/scikits/umfpack/__init__.py:22) del _umfpack_doc, _interface_doc
[24](https://file+.vscode-resource.vscode-cdn.net/opt/homebrew/Caskroom/miniconda/base/envs/bw25arm/lib/python3.11/site-packages/scikits/umfpack/__init__.py:24) __all__ = [s for s in dir() if not s.startswith('_')]
---> [25](https://file+.vscode-resource.vscode-cdn.net/opt/homebrew/Caskroom/miniconda/base/envs/bw25arm/lib/python3.11/site-packages/scikits/umfpack/__init__.py:25) from numpy.testing import Tester
[26](https://file+.vscode-resource.vscode-cdn.net/opt/homebrew/Caskroom/miniconda/base/envs/bw25arm/lib/python3.11/site-packages/scikits/umfpack/__init__.py:26) test = Tester().test
ImportError: cannot import name 'Tester' from 'numpy.testing' (/opt/homebrew/Caskroom/miniconda/base/envs/bw25arm/lib/python3.11/site-packages/numpy/testing/__init__.py)
Which can be resolved by pinning NumPy to <1.24
.
[!NOTE]
The current workaround is to use:conda create -n bw25arm -c conda-forge -c cmutel numpy=1.24.4 brightway25_nosolver scikit-umfpack
Following the installation instructions
and running
returns
The version of
bw2calc
installed by thebrightway25_nosolver
is2.0.DEV23
.