Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update requirements.txt #65

Open
vodp opened this issue Aug 20, 2023 · 0 comments
Open

Update requirements.txt #65

vodp opened this issue Aug 20, 2023 · 0 comments

Comments

@vodp
Copy link

vodp commented Aug 20, 2023

The numpy version needs to be upgraded numpy==1.24 otherwise make setup won't compile because of the following error (on Python 3.8):

docker-compose exec -T jupyter datacube -v system init
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/dask/array/__init__.py", line 2, in <module>
    from dask.array import backends, fft, lib, linalg, ma, overlap, random
  File "/usr/local/lib/python3.8/dist-packages/dask/array/backends.py", line 6, in <module>
    from dask.array.core import Array
  File "/usr/local/lib/python3.8/dist-packages/dask/array/core.py", line 30, in <module>
    from numpy.typing import ArrayLike
ModuleNotFoundError: No module named 'numpy.typing'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/bin/datacube", line 5, in <module>
    from datacube.scripts.cli_app import cli
  File "/usr/local/lib/python3.8/dist-packages/datacube/__init__.py", line 29, in <module>
    from .api import Datacube
  File "/usr/local/lib/python3.8/dist-packages/datacube/api/__init__.py", line 9, in <module>
    from .core import Datacube, TerminateCurrentLoad
  File "/usr/local/lib/python3.8/dist-packages/datacube/api/core.py", line 13, in <module>
    from dask import array as da
  File "/usr/local/lib/python3.8/dist-packages/dask/array/__init__.py", line 271, in <module>
    raise ImportError(str(e) + "\n\n" + msg) from e
ImportError: No module named 'numpy.typing'

Dask array requirements are not installed.

Please either conda or pip install as follows:

  conda install dask                 # either conda install
  python -m pip install "dask[array]" --upgrade  # or python -m pip install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant