Skip to content

devbio-napari incompatible with tensorflow (M1 mac) #35

Description

@thawn

Tensorflow before devbio-napari

Trying to install devbio-napari into an environment that has tensorflow 2.10 installed gives the following mamba error:

Looking for: ['devbio-napari']

conda-forge/osx-arm64                                       Using cache
conda-forge/noarch                                          Using cache

Pinned packages:
  - python 3.9.*


Encountered problems while solving:
  - nothing provides __linux needed by devbio-napari-0.6.0-linux_h41d4057_1

steps to reproduce:

#create env
mamba create -y -n test-env python=3.9   
conda activate test-env

#install tensorflow 2.10
mamba install -c apple tensorflow-deps
pip install tensorflow-macos==2.10
pip install tensorflow-metal==0.6

#install devbio-napari
mamba install -c conda-forge devbio-napari

Devbio-napari before tensorflow

This works better. I sitll get an error trying to install tensorflow-deps but afterwards it works anyways

If I install devbio-napari first and then try to install tensorflow. I get the following error when I try to run mamba install -c apple tensorflow-deps

Looking for: ['tensorflow-deps']

conda-forge/osx-arm64                                       Using cache
conda-forge/noarch                                          Using cache
apple/noarch                                                  No change
apple/osx-arm64                                               No change

Pinned packages:
  - python 3.9.*


Encountered problems while solving:
  - package libitk-5.3.0-h112da86_0 requires hdf5 >=1.12.2,<1.12.3.0a0, but none of the providers can be installed

I then tried to skip installing tensorflow-deps
pip install tensorflow-macos==2.10 and pip install tensorflow-metal==0.6

steps to reproduce

#create env
mamba create -y -n test-env python=3.9   
conda activate test-env

#install devbio-napari
mamba install -c conda-forge devbio-napari 

#install tensorflow 2.10
mamba install -c apple tensorflow-deps #throws an error given above
pip install tensorflow-macos==2.10
pip install tensorflow-metal==0.6
pip install n2v
pip install napari-n2v
mamba install -c conda-forge napari-aicsimageio
pip install aicsimageio[all]

Now noise2void works in devbio-napari! 🥳

Note, I cannot exclude, that tensorflow works despite the error when installing tensorflow-deps, because I successfully installed tensorflow-deps in a clean environment before, and now tensorflow has still access to the needed system libraries in the devbio-napari environment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions