question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'napari._vispy.layers.image' is not a package

See original GitHub issue

Activating experimental rendering features causes persistent ModuleNotFoundError

Recently, I discovered the two “experimental” features designed to enhance viewer performance with asynchronous rendering. After checking both options in Preferences (under Experimental), the GUI prompted a restart. When attempting to relaunch Napari, the following error is thrown: ModuleNotFoundError: No module named 'napari._vispy.layers.image.experimental'; 'napari._vispy.layers.image' is not a package. I tried recreating my virtual environment, installing a different version of Napari, using the --no-cache-dir flag with pip to ensure that the installation process did not use cached files…but every new installation of Napari now throws this error.

To Reproduce

Steps to reproduce the behavior:

  1. Check both experimental rendering options under File/Preferences/Experimental
  2. Restart Napari

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
lukasvasadicommented, Mar 15, 2022

Wow that was a quick fix! Thanks for the tip.

Yes not sure about the import. I think the program is looking for the “octree_image.py” file in the wrong “image” directory, as the the “_vispy” directory does not contain an “image/experimental/” sub-directory…May be worth some investigation 🙂

0reactions
imagesc-botcommented, Aug 12, 2022

This issue has been mentioned on Image.sc Forum. There might be relevant details there:

https://forum.image.sc/t/3d-images-read-as-2d-time-series/70630/6

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using the image layer - napari
In this document, you will learn how to use the napari image layer, including the types of images that can be displayed, and...
Read more >
Napari Track Layer astonishing error - Image.sc Forum
Hi, I am having a very very weird behavior with Napari tracks layer. I tried a very simple example on this page :...
Read more >
How to use the napari.layers.Image function in napari - Snyk
To help you get started, we've selected a few napari.layers.Image examples, based on popular ways it is used in public projects.
Read more >
napari: a multi-dimensional image viewer for Python - Zenodo
To specify a plugin in a Python script: import napari viewer = napari. ... Correctly order vispy layers on insertion (#4433); napari --info: ......
Read more >
Introducing napari: a fast n-dimensional image viewer in Python
VisPy is yet another example of open source software being ... I used napari instead of matplotlib, and found napari's layers model insanely ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found