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

Installing stardist-napari downgrades numpy - any ideas why? #3

Open
haesleinhuepf opened this issue Oct 22, 2021 · 12 comments
Open

Installing stardist-napari downgrades numpy - any ideas why? #3

haesleinhuepf opened this issue Oct 22, 2021 · 12 comments

Comments

@haesleinhuepf
Copy link

Hi Uwe and Martin @uschmidt83 @maweigert ,

I had repeatedly issues with installing stardist-napari because it downgraded numpy and then breaks environments. I'm not 100%ly sure if the breaking-environment issue is related to numpy, but I'm quite sure that it happens when installing stardist-napari.

Do you have any idea which dependency pins numpy to 1.19.5 and would it maybe be possible to upgrade that dependency and/or create an issue there? Closing this issue because it's not related directly to stardist-napari would also be fine. Anyway, any hint is welcome!

Thanks!
Robert

Here's the log of a recent installation in a new environment. All I did after setting up a fresh conda environment was 'pip install napari[all]' and then the following output is produced by 'pip install stardist-napari':

(bio_38) C:\Users\rober>pip install stardist-napari
Collecting stardist-napari
  Using cached stardist_napari-2021.6.28-py3-none-any.whl (28 kB)
Collecting stardist>=0.7.0
  Using cached stardist-0.7.3-cp38-cp38-win_amd64.whl (757 kB)
Requirement already satisfied: napari>=0.4.8 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from stardist-napari) (0.4.12)
Requirement already satisfied: magicgui>=0.2.9 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from stardist-napari) (0.3.2)
Collecting tensorflow
  Using cached tensorflow-2.6.0-cp38-cp38-win_amd64.whl (423.2 MB)
Requirement already satisfied: qtpy>=1.7.0 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from magicgui>=0.2.9->stardist-napari) (1.11.2)
Requirement already satisfied: psygnal>=0.1.3 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from magicgui>=0.2.9->stardist-napari) (0.1.4)
Requirement already satisfied: docstring-parser in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from magicgui>=0.2.9->stardist-napari) (0.12)
Requirement already satisfied: typing-extensions in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from magicgui>=0.2.9->stardist-napari) (3.10.0.2)
Requirement already satisfied: tifffile>=2020.2.16 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from napari>=0.4.8->stardist-napari) (2021.10.12)
Requirement already satisfied: appdirs>=1.4.4 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from napari>=0.4.8->stardist-napari) (1.4.4)
Requirement already satisfied: pydantic>=1.8.1 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from napari>=0.4.8->stardist-napari) (1.8.2)
Requirement already satisfied: napari-console>=0.0.4 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from napari>=0.4.8->stardist-napari) (0.0.4)
Requirement already satisfied: toolz>=0.10.0 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from napari>=0.4.8->stardist-napari) (0.11.1)
Requirement already satisfied: vispy!=0.8.0,>=0.6.4 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from napari>=0.4.8->stardist-napari) (0.9.2)
Requirement already satisfied: wrapt>=1.11.1 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from napari>=0.4.8->stardist-napari) (1.13.2)
Requirement already satisfied: psutil>=5.0 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from napari>=0.4.8->stardist-napari) (5.8.0)
Requirement already satisfied: jsonschema>=3.2.0 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from napari>=0.4.8->stardist-napari) (4.1.2)
Requirement already satisfied: Pillow!=7.1.0,!=7.1.1 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from napari>=0.4.8->stardist-napari) (8.4.0)
Requirement already satisfied: scipy>=1.2.0 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from napari>=0.4.8->stardist-napari) (1.7.1)
Requirement already satisfied: imageio>=2.5.0 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from napari>=0.4.8->stardist-napari) (2.9.0)
Requirement already satisfied: dask[array]!=2.28.0,>=2.15.0 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from napari>=0.4.8->stardist-napari) (2021.9.1)
Requirement already satisfied: tqdm>=4.56.0 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from napari>=0.4.8->stardist-napari) (4.62.3)
Requirement already satisfied: cachey>=0.2.1 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from napari>=0.4.8->stardist-napari) (0.2.1)
Requirement already satisfied: numpydoc>=0.9.2 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from napari>=0.4.8->stardist-napari) (1.1.0)
Requirement already satisfied: PyYAML>=5.1 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from napari>=0.4.8->stardist-napari) (6.0)
Requirement already satisfied: numpy>=1.18.5 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from napari>=0.4.8->stardist-napari) (1.21.3)
Requirement already satisfied: pint>=0.17 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from napari>=0.4.8->stardist-napari) (0.17)
Requirement already satisfied: certifi>=2018.1.18 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from napari>=0.4.8->stardist-napari) (2021.10.8)
Requirement already satisfied: PyOpenGL>=3.1.0 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from napari>=0.4.8->stardist-napari) (3.1.5)
Requirement already satisfied: superqt>=0.2.4 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from napari>=0.4.8->stardist-napari) (0.2.4)
Requirement already satisfied: napari-svg>=0.1.4 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from napari>=0.4.8->stardist-napari) (0.1.5)
Requirement already satisfied: napari-plugin-engine>=0.1.9 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from napari>=0.4.8->stardist-napari) (0.2.0)
Requirement already satisfied: scikit-image in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from stardist>=0.7.0->stardist-napari) (0.18.3)
Collecting numba
  Using cached numba-0.54.1-cp38-cp38-win_amd64.whl (2.3 MB)
Collecting csbdeep>=0.6.3
  Using cached csbdeep-0.6.3-py2.py3-none-any.whl (73 kB)
Requirement already satisfied: wheel~=0.35 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from tensorflow->stardist-napari) (0.37.0)
Collecting tensorboard~=2.6
  Using cached tensorboard-2.7.0-py3-none-any.whl (5.8 MB)
Collecting numpy>=1.18.5
  Using cached numpy-1.19.5-cp38-cp38-win_amd64.whl (13.3 MB)
Collecting google-pasta~=0.2
  Using cached google_pasta-0.2.0-py3-none-any.whl (57 kB)
Collecting flatbuffers~=1.12.0
  Using cached flatbuffers-1.12-py2.py3-none-any.whl (15 kB)
Collecting termcolor~=1.1.0
  Using cached termcolor-1.1.0-py3-none-any.whl
Collecting h5py~=3.1.0
  Using cached h5py-3.1.0-cp38-cp38-win_amd64.whl (2.7 MB)
Collecting gast==0.4.0
  Using cached gast-0.4.0-py3-none-any.whl (9.8 kB)
Collecting clang~=5.0
  Using cached clang-5.0.tar.gz (30 kB)
  Preparing metadata (setup.py) ... done
Collecting tensorflow-estimator~=2.6
  Using cached tensorflow_estimator-2.6.0-py2.py3-none-any.whl (462 kB)
Collecting wrapt>=1.11.1
  Using cached wrapt-1.12.1-py3-none-any.whl
Collecting typing-extensions
  Using cached typing_extensions-3.7.4.3-py3-none-any.whl (22 kB)
Collecting protobuf>=3.9.2
  Downloading protobuf-3.19.0-cp38-cp38-win_amd64.whl (895 kB)
     |████████████████████████████████| 895 kB 726 kB/s
Collecting keras~=2.6
  Using cached keras-2.6.0-py2.py3-none-any.whl (1.3 MB)
Collecting absl-py~=0.10
  Using cached absl_py-0.15.0-py3-none-any.whl (132 kB)
Collecting astunparse~=1.6.3
  Using cached astunparse-1.6.3-py2.py3-none-any.whl (12 kB)
Collecting opt-einsum~=3.3.0
  Using cached opt_einsum-3.3.0-py3-none-any.whl (65 kB)
Collecting grpcio<2.0,>=1.37.0
  Downloading grpcio-1.41.0-cp38-cp38-win_amd64.whl (3.2 MB)
     |████████████████████████████████| 3.2 MB ...
Collecting six~=1.15.0
  Using cached six-1.15.0-py2.py3-none-any.whl (10 kB)
Collecting keras-preprocessing~=1.1.2
  Using cached Keras_Preprocessing-1.1.2-py2.py3-none-any.whl (42 kB)
Requirement already satisfied: heapdict in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from cachey>=0.2.1->napari>=0.4.8->stardist-napari) (1.0.1)
INFO: pip is looking at multiple versions of clang to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of certifi to determine which version is compatible with other requirements. This could take a while.
Collecting certifi>=2018.1.18
  Using cached certifi-2021.10.8-py2.py3-none-any.whl (149 kB)
INFO: pip is looking at multiple versions of cachey to determine which version is compatible with other requirements. This could take a while.
Collecting cachey>=0.2.1
  Using cached cachey-0.2.1-py3-none-any.whl (6.4 kB)
INFO: pip is looking at multiple versions of astunparse to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of appdirs to determine which version is compatible with other requirements. This could take a while.
Collecting appdirs>=1.4.4
  Using cached appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)
INFO: pip is looking at multiple versions of absl-py to determine which version is compatible with other requirements. This could take a while.
Collecting absl-py~=0.10
  Using cached absl_py-0.14.1-py3-none-any.whl (131 kB)
INFO: pip is looking at multiple versions of gast to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of tensorflow to determine which version is compatible with other requirements. This could take a while.
Collecting tensorflow
  Using cached tensorflow-2.5.1-cp38-cp38-win_amd64.whl (422.6 MB)
Collecting keras-nightly~=2.5.0.dev
  Using cached keras_nightly-2.5.0.dev2021032900-py2.py3-none-any.whl (1.2 MB)
Collecting grpcio~=1.34.0
  Using cached grpcio-1.34.1-cp38-cp38-win_amd64.whl (2.9 MB)
Collecting tensorflow-estimator<2.6.0,>=2.5.0
  Using cached tensorflow_estimator-2.5.0-py2.py3-none-any.whl (462 kB)
Collecting tensorflow
  Using cached tensorflow-2.5.0-cp38-cp38-win_amd64.whl (422.6 MB)
  Using cached tensorflow-2.4.3-cp38-cp38-win_amd64.whl (370.9 MB)
Collecting tensorflow-estimator<2.5.0,>=2.4.0
  Using cached tensorflow_estimator-2.4.0-py2.py3-none-any.whl (462 kB)
Collecting h5py~=2.10.0
  Using cached h5py-2.10.0-cp38-cp38-win_amd64.whl (2.5 MB)
Collecting gast==0.3.3
  Using cached gast-0.3.3-py2.py3-none-any.whl (9.7 kB)
Collecting grpcio~=1.32.0
  Using cached grpcio-1.32.0-cp38-cp38-win_amd64.whl (2.6 MB)
Requirement already satisfied: matplotlib in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from csbdeep>=0.6.3->stardist>=0.7.0->stardist-napari) (3.4.3)
Requirement already satisfied: cloudpickle>=1.1.1 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from dask[array]!=2.28.0,>=2.15.0->napari>=0.4.8->stardist-napari) (2.0.0)
Requirement already satisfied: partd>=0.3.10 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from dask[array]!=2.28.0,>=2.15.0->napari>=0.4.8->stardist-napari) (1.2.0)
Requirement already satisfied: packaging>=20.0 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from dask[array]!=2.28.0,>=2.15.0->napari>=0.4.8->stardist-napari) (21.0)
Requirement already satisfied: fsspec>=0.6.0 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from dask[array]!=2.28.0,>=2.15.0->napari>=0.4.8->stardist-napari) (2021.10.1)
Requirement already satisfied: attrs>=17.4.0 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from jsonschema>=3.2.0->napari>=0.4.8->stardist-napari) (21.2.0)
Requirement already satisfied: pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from jsonschema>=3.2.0->napari>=0.4.8->stardist-napari) (0.18.0)
Requirement already satisfied: ipykernel>=5.2.0 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from napari-console>=0.0.4->napari>=0.4.8->stardist-napari) (6.4.2)
Requirement already satisfied: qtconsole!=4.7.6,>=4.5.1 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from napari-console>=0.0.4->napari>=0.4.8->stardist-napari) (5.1.1)
Requirement already satisfied: IPython>=7.7.0 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from napari-console>=0.0.4->napari>=0.4.8->stardist-napari) (7.28.0)
Requirement already satisfied: Jinja2>=2.3 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from numpydoc>=0.9.2->napari>=0.4.8->stardist-napari) (3.0.2)
Requirement already satisfied: sphinx>=1.6.5 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from numpydoc>=0.9.2->napari>=0.4.8->stardist-napari) (4.2.0)
Collecting google-auth<3,>=1.6.3
  Using cached google_auth-2.3.0-py2.py3-none-any.whl (154 kB)
Requirement already satisfied: requests<3,>=2.21.0 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from tensorboard~=2.6->tensorflow->stardist-napari) (2.26.0)
Collecting markdown>=2.6.8
  Using cached Markdown-3.3.4-py3-none-any.whl (97 kB)
Requirement already satisfied: setuptools>=41.0.0 in c:\users\rober\appdata\roaming\python\python38\site-packages (from tensorboard~=2.6->tensorflow->stardist-napari) (57.1.0)
Collecting google-auth-oauthlib<0.5,>=0.4.1
  Using cached google_auth_oauthlib-0.4.6-py2.py3-none-any.whl (18 kB)
Collecting tensorboard-data-server<0.7.0,>=0.6.0
  Using cached tensorboard_data_server-0.6.1-py3-none-any.whl (2.4 kB)
Collecting tensorboard-plugin-wit>=1.6.0
  Using cached tensorboard_plugin_wit-1.8.0-py3-none-any.whl (781 kB)
Collecting werkzeug>=0.11.15
  Using cached Werkzeug-2.0.2-py3-none-any.whl (288 kB)
Requirement already satisfied: colorama in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from tqdm>=4.56.0->napari>=0.4.8->stardist-napari) (0.4.4)
Requirement already satisfied: hsluv in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from vispy!=0.8.0,>=0.6.4->napari>=0.4.8->stardist-napari) (5.0.2)
Requirement already satisfied: kiwisolver in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from vispy!=0.8.0,>=0.6.4->napari>=0.4.8->stardist-napari) (1.3.2)
Requirement already satisfied: freetype-py in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from vispy!=0.8.0,>=0.6.4->napari>=0.4.8->stardist-napari) (2.2.0)
Collecting llvmlite<0.38,>=0.37.0rc1
  Using cached llvmlite-0.37.0-cp38-cp38-win_amd64.whl (17.0 MB)
Requirement already satisfied: networkx>=2.0 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from scikit-image->stardist>=0.7.0->stardist-napari) (2.6.3)
Requirement already satisfied: PyWavelets>=1.1.1 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from scikit-image->stardist>=0.7.0->stardist-napari) (1.1.1)
Collecting rsa<5,>=3.1.4
  Using cached rsa-4.7.2-py3-none-any.whl (34 kB)
Collecting pyasn1-modules>=0.2.1
  Using cached pyasn1_modules-0.2.8-py2.py3-none-any.whl (155 kB)
Collecting cachetools<5.0,>=2.0.0
  Using cached cachetools-4.2.4-py3-none-any.whl (10 kB)
Collecting requests-oauthlib>=0.7.0
  Using cached requests_oauthlib-1.3.0-py2.py3-none-any.whl (23 kB)
Requirement already satisfied: jupyter-client<8.0 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from ipykernel>=5.2.0->napari-console>=0.0.4->napari>=0.4.8->stardist-napari) (7.0.6)
Requirement already satisfied: tornado<7.0,>=4.2 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from ipykernel>=5.2.0->napari-console>=0.0.4->napari>=0.4.8->stardist-napari) (6.1)
Requirement already satisfied: traitlets<6.0,>=4.1.0 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from ipykernel>=5.2.0->napari-console>=0.0.4->napari>=0.4.8->stardist-napari) (5.1.0)
Requirement already satisfied: ipython-genutils in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from ipykernel>=5.2.0->napari-console>=0.0.4->napari>=0.4.8->stardist-napari) (0.2.0)
Requirement already satisfied: debugpy<2.0,>=1.0.0 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from ipykernel>=5.2.0->napari-console>=0.0.4->napari>=0.4.8->stardist-napari) (1.5.1)
Requirement already satisfied: matplotlib-inline<0.2.0,>=0.1.0 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from ipykernel>=5.2.0->napari-console>=0.0.4->napari>=0.4.8->stardist-napari) (0.1.3)
Requirement already satisfied: backcall in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from IPython>=7.7.0->napari-console>=0.0.4->napari>=0.4.8->stardist-napari) (0.2.0)
Requirement already satisfied: pickleshare in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from IPython>=7.7.0->napari-console>=0.0.4->napari>=0.4.8->stardist-napari) (0.7.5)
Requirement already satisfied: decorator in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from IPython>=7.7.0->napari-console>=0.0.4->napari>=0.4.8->stardist-napari) (5.1.0)
Requirement already satisfied: jedi>=0.16 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from IPython>=7.7.0->napari-console>=0.0.4->napari>=0.4.8->stardist-napari) (0.18.0)
Requirement already satisfied: prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from IPython>=7.7.0->napari-console>=0.0.4->napari>=0.4.8->stardist-napari) (3.0.21)
Requirement already satisfied: pygments in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from IPython>=7.7.0->napari-console>=0.0.4->napari>=0.4.8->stardist-napari) (2.10.0)
Requirement already satisfied: MarkupSafe>=2.0 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from Jinja2>=2.3->numpydoc>=0.9.2->napari>=0.4.8->stardist-napari) (2.0.1)
Requirement already satisfied: pyparsing>=2.2.1 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from matplotlib->csbdeep>=0.6.3->stardist>=0.7.0->stardist-napari) (2.4.7)
Requirement already satisfied: python-dateutil>=2.7 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from matplotlib->csbdeep>=0.6.3->stardist>=0.7.0->stardist-napari) (2.8.2)
Requirement already satisfied: cycler>=0.10 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from matplotlib->csbdeep>=0.6.3->stardist>=0.7.0->stardist-napari) (0.10.0)
Requirement already satisfied: locket in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from partd>=0.3.10->dask[array]!=2.28.0,>=2.15.0->napari>=0.4.8->stardist-napari) (0.2.1)
Requirement already satisfied: jupyter-core in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from qtconsole!=4.7.6,>=4.5.1->napari-console>=0.0.4->napari>=0.4.8->stardist-napari) (4.8.1)
Requirement already satisfied: pyzmq>=17.1 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from qtconsole!=4.7.6,>=4.5.1->napari-console>=0.0.4->napari>=0.4.8->stardist-napari) (22.3.0)
Requirement already satisfied: charset-normalizer~=2.0.0 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from requests<3,>=2.21.0->tensorboard~=2.6->tensorflow->stardist-napari) (2.0.7)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from requests<3,>=2.21.0->tensorboard~=2.6->tensorflow->stardist-napari) (1.26.7)
Requirement already satisfied: idna<4,>=2.5 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from requests<3,>=2.21.0->tensorboard~=2.6->tensorflow->stardist-napari) (3.3)
Requirement already satisfied: sphinxcontrib-jsmath in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from sphinx>=1.6.5->numpydoc>=0.9.2->napari>=0.4.8->stardist-napari) (1.0.1)
Requirement already satisfied: sphinxcontrib-applehelp in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from sphinx>=1.6.5->numpydoc>=0.9.2->napari>=0.4.8->stardist-napari) (1.0.2)
Requirement already satisfied: sphinxcontrib-serializinghtml>=1.1.5 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from sphinx>=1.6.5->numpydoc>=0.9.2->napari>=0.4.8->stardist-napari) (1.1.5)
Requirement already satisfied: sphinxcontrib-htmlhelp>=2.0.0 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from sphinx>=1.6.5->numpydoc>=0.9.2->napari>=0.4.8->stardist-napari) (2.0.0)
Requirement already satisfied: sphinxcontrib-devhelp in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from sphinx>=1.6.5->numpydoc>=0.9.2->napari>=0.4.8->stardist-napari) (1.0.2)
Requirement already satisfied: docutils<0.18,>=0.14 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from sphinx>=1.6.5->numpydoc>=0.9.2->napari>=0.4.8->stardist-napari) (0.17.1)
Requirement already satisfied: alabaster<0.8,>=0.7 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from sphinx>=1.6.5->numpydoc>=0.9.2->napari>=0.4.8->stardist-napari) (0.7.12)
Requirement already satisfied: sphinxcontrib-qthelp in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from sphinx>=1.6.5->numpydoc>=0.9.2->napari>=0.4.8->stardist-napari) (1.0.3)
Requirement already satisfied: snowballstemmer>=1.1 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from sphinx>=1.6.5->numpydoc>=0.9.2->napari>=0.4.8->stardist-napari) (2.1.0)
Requirement already satisfied: babel>=1.3 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from sphinx>=1.6.5->numpydoc>=0.9.2->napari>=0.4.8->stardist-napari) (2.9.1)
Requirement already satisfied: imagesize in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from sphinx>=1.6.5->numpydoc>=0.9.2->napari>=0.4.8->stardist-napari) (1.2.0)
Requirement already satisfied: pytz>=2015.7 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from babel>=1.3->sphinx>=1.6.5->numpydoc>=0.9.2->napari>=0.4.8->stardist-napari) (2021.3)
Requirement already satisfied: parso<0.9.0,>=0.8.0 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from jedi>=0.16->IPython>=7.7.0->napari-console>=0.0.4->napari>=0.4.8->stardist-napari) (0.8.2)
Requirement already satisfied: nest-asyncio>=1.5 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from jupyter-client<8.0->ipykernel>=5.2.0->napari-console>=0.0.4->napari>=0.4.8->stardist-napari) (1.5.1)
Requirement already satisfied: entrypoints in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from jupyter-client<8.0->ipykernel>=5.2.0->napari-console>=0.0.4->napari>=0.4.8->stardist-napari) (0.3)
Requirement already satisfied: pywin32>=1.0 in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from jupyter-core->qtconsole!=4.7.6,>=4.5.1->napari-console>=0.0.4->napari>=0.4.8->stardist-napari) (302)
Requirement already satisfied: wcwidth in c:\users\rober\miniconda3\envs\bio_38\lib\site-packages (from prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0->IPython>=7.7.0->napari-console>=0.0.4->napari>=0.4.8->stardist-napari) (0.2.5)
Collecting pyasn1<0.5.0,>=0.4.6
  Using cached pyasn1-0.4.8-py2.py3-none-any.whl (77 kB)
Collecting oauthlib>=3.0.0
  Using cached oauthlib-3.1.1-py2.py3-none-any.whl (146 kB)
Installing collected packages: six, pyasn1, rsa, pyasn1-modules, oauthlib, cachetools, typing-extensions, requests-oauthlib, numpy, google-auth, werkzeug, tensorboard-plugin-wit, tensorboard-data-server, protobuf, markdown, llvmlite, h5py, grpcio, google-auth-oauthlib, absl-py, wrapt, termcolor, tensorflow-estimator, tensorboard, opt-einsum, numba, keras-preprocessing, google-pasta, gast, flatbuffers, csbdeep, astunparse, tensorflow, stardist, stardist-napari
  Attempting uninstall: six
    Found existing installation: six 1.16.0
    Uninstalling six-1.16.0:
      Successfully uninstalled six-1.16.0
  Attempting uninstall: typing-extensions
    Found existing installation: typing-extensions 3.10.0.2
    Uninstalling typing-extensions-3.10.0.2:
      Successfully uninstalled typing-extensions-3.10.0.2
  Attempting uninstall: numpy
    Found existing installation: numpy 1.21.3
    Uninstalling numpy-1.21.3:
      Successfully uninstalled numpy-1.21.3
  Attempting uninstall: wrapt
    Found existing installation: wrapt 1.13.2
    Uninstalling wrapt-1.13.2:
      Successfully uninstalled wrapt-1.13.2
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
readme-renderer 29.0 requires bleach>=2.1.0, which is not installed.
Successfully installed absl-py-0.15.0 astunparse-1.6.3 cachetools-4.2.4 csbdeep-0.6.3 flatbuffers-1.12 gast-0.3.3 google-auth-2.3.0 google-auth-oauthlib-0.4.6 google-pasta-0.2.0 grpcio-1.32.0 h5py-2.10.0 keras-preprocessing-1.1.2 llvmlite-0.37.0 markdown-3.3.4 numba-0.54.1 numpy-1.19.5 oauthlib-3.1.1 opt-einsum-3.3.0 protobuf-3.19.0 pyasn1-0.4.8 pyasn1-modules-0.2.8 requests-oauthlib-1.3.0 rsa-4.7.2 six-1.15.0 stardist-0.7.3 stardist-napari-2021.6.28 tensorboard-2.7.0 tensorboard-data-server-0.6.1 tensorboard-plugin-wit-1.8.0 tensorflow-2.4.3 tensorflow-estimator-2.4.0 termcolor-1.1.0 typing-extensions-3.7.4.3 werkzeug-2.0.2 wrapt-1.12.1
@maweigert
Copy link
Member

Hi,

Yes, I these numpy version issues are quite annoying. Almost always they are related to version pins by either tensorflow or numba, see

tensorflow/tensorflow#50204
numba/numba#7176

I normally simply upgrade numpy directly after installing tensorflow, numba, stardist etc and keep my fingers crossed :)

@psobolewskiPhD
Copy link
Contributor

psobolewskiPhD commented Jan 29, 2022

What's really wierd is that stardist installs fine and doesn't do the numpy shenanigans.
edit:
The difference is stardist doesn't depend on tensorflow directly in requirements, so i guess pip doesn't recurse the requirements and downgrade numpy?
If I comment out tensorflow from the plugin setup.py, then pip install . works without messing with numpy.
Likewise, if I manually install stardist and then add tensorflow-macos to the requires, I can install with --no-deps and it also works, because the requirements for stardist-napari are there, and pip doesn't recurse through their mix of requirements.

Edit2: but cellfinder-core which also uses tensorflow and has it in the requirements doesn't have this issue, so 🤷

@uschmidt83
Copy link
Member

Edit2: but cellfinder-core which also uses tensorflow and has it in the requirements doesn't have this issue, so 🤷

Maybe tensorflow was already installed at that point?

@psobolewskiPhD
Copy link
Contributor

Yes, in both cases I've got TF installed first, when setting up the environment following Apple instructions.
And because I neglected to mention, this is a branch of cellfinder that has tensorflow-macos and the same for stardist-napari so pip sees the TF. So it must be deeper in.
I'll try the strategy shown here at some point and see if I can find the culprit:
napari/napari#3223 (comment)

@uschmidt83
Copy link
Member

Good luck and thanks for working through all of this. I currently keep up with all of it...

@psobolewskiPhD
Copy link
Contributor

Good news!
Apple has bumped the tensorflow-deps conda package and now it has numpy 1.21 etc.
With

        'tensorflow;  platform_system!="Darwin" or platform_machine!="arm64"',
        'tensorflow-macos;  platform_system=="Darwin" and platform_machine=="arm64"',

in setup.py the plugin just installs directly with no issue.

(note stardist required llvmlite from conda, because I (apparently) have llvm 13 which is not yet supported by llvmlite—but will be in the next release numba/llvmlite#802 (comment) )

@kapoorlab
Copy link

In mathching.py file there is numba import: from numba import jit and in numba there is a strict numpy requirement pinning it down File ~\anaconda3\envs\vollseg\lib\site-packages\numba\__init__.py:140, 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") 142 try: 143 import scipy
So there is no way out of this requirement then or?

@maweigert
Copy link
Member

So there is no way out of this requirement then or?

Currently not as we are not in control over numba's numpy dependency. It looks like this will be solved in the next numba release though.

@psobolewskiPhD
Copy link
Contributor

Experimental numba M1 releases work with numpy 1.21.*
StarDist installs fine in the apple TF-metal conda miniforge env.
See: https://numba.discourse.group/t/wheels-for-apple-silicon-m1/1282?u=psobolewskiphd

@maweigert
Copy link
Member

Experimental numba M1 releases work with numpy 1.21.*

Sounds good! So the next numba release should at least the current numpy dependency regression problems...

@psobolewskiPhD
Copy link
Contributor

FYI:
numba 0.55.2 has been released, along with llvmlite 0.38.1 which both support numpy 1.22 and have arm64 macOS wheels on pypi.
So at least on macOS and M1 this issue is resolved.

@maweigert
Copy link
Member

Nice, thanks for the heads up! :)

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

5 participants