napari: Cannot open .tif files after #1061
🐛 Bug
I believe after delaying the loading of image reading library(ies) in #1061, you can no longer drag and drop .tifs into napari
, when launching the GUI from the command line. It also doesn’t seem to work loading the image from “Open image(s):” and get error:
No plugin found capable of reading XXX.tif.
To Reproduce
Steps to reproduce the behavior:
- Drag
.tif
intoNapari
- Open
.tif
in File menu
Expected behavior
Switching back to commit 434d54e
fixes the problem
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 18 (13 by maintainers)
Ah, sorry everyone. I’m on
391cfd572
, but the issue is that I did not update the dependencies after updating to the latest commit, namelytifffile
wasn’t actually installed. All good now! I hate when that happens when installed in developer mode.It worked like a charm! Thank you all for the fast fix!
Just to leave a note for people like me:
conda update --all
doesn’t seem to bring the latest build, doconda remove napari && conda install -y -c conda-forge napari
instead.The latest napari build on conda-forge depends on tifffile. Hopefully that is enough to fix your problem @hywu0110! btw, if your tiffs aren’t supported by that version, you can either:
pip install imagecodecs
, orconda install -c conda-forge tiffffile=2019.7.26.2
, ie get an earlier version of tifffile, see https://github.com/conda-forge/tifffile-feedstock/issues/39. The earlier version should still have built-in support for most common codecs.Thanks @hywu0110 - looks like @tlambert03 might have identified the issue here https://github.com/napari/napari/issues/1129#issuecomment-633772534 which we can work to fix
@sofroniewn Here’s what I got when running
napari --info
:This likely relates to https://github.com/napari/napari/pull/1061#issuecomment-612061394