You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
/tmp/ipykernel_103/2257432204.py in <module>
----> 1 import numba
/env/lib/python3.8/site-packages/numba/__init__.py in <module>
198
199 _ensure_llvm()
--> 200 _ensure_critical_deps()
201
202 # we know llvmlite is working as the above tests passed, import it now as SVML
/env/lib/python3.8/site-packages/numba/__init__.py in _ensure_critical_deps()
138 raise ImportError("Numba needs NumPy 1.18 or greater")
139 elif numpy_version > (1, 21):
--> 140 raise ImportError("Numba needs NumPy 1.21 or less")
141
142 try:
ImportError: Numba needs NumPy 1.21 or less
Running pip check reports issues:
numba 0.55.1 has requirement numpy<1.22,>=1.18, but you have numpy 1.22.2.
datacube-ows 1.8.26 has requirement pyparsing<3,>=2.2.1, but you have pyparsing 3.0.7.
awscli 1.19.106 has requirement PyYAML<5.5,>=3.10, but you have pyyaml 6.0.
but that's not the version that is installed. A newer version of numpy is installed and, it's installed using root user, so normal user can not override it even temporarily. scipy, astropy, hdstats are also installed as root, so I'm guessing there is somewhere pip install that runs afterwards, runs as root and updates numpy while breaking numba dependency.
Describe the bug
Running the following image in the sandbox:
543785577597.dkr.ecr.af-south-1.amazonaws.com/geoscienceaustralia/sandbox:1.0.7
raises the following:
Running
pip check
reports issues:I see that you have this pin:
https://github.com/digitalearthafrica/dea-sandbox/blob/604aa17470dc7decb942d855c3abe2f70b82dc2a/docker/requirements.txt#L905
but that's not the version that is installed. A newer version of
numpy
is installed and, it's installed usingroot
user, so normal user can not override it even temporarily.scipy, astropy, hdstats
are also installed as root, so I'm guessing there is somewhere pip install that runs afterwards, runs as root and updates numpy while breakingnumba
dependency.other libraries depend on numba and won't work because of that issue:
To Reproduce
Steps to reproduce the behavior.
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: