bauerdavid / napari-nD-annotator

BSD 3-Clause "New" or "Revised" License
28 stars 1 forks source link

Runtime error #18

Closed jo-mueller closed 2 years ago

jo-mueller commented 2 years ago

Describe the bug I tried to install the plugin in Napari and got the following runtime error thrown:

File ~\Anaconda3\envs\napari-clusters\lib\site-packages\napari_nd_annotator\__init__.py:4, in <module>
      2 __version__ = "0.0.5"
----> 4 from ._widgets import AnnotatorWidget, InterpolationWidget, ListWidgetBB

File ~\Anaconda3\envs\napari-clusters\lib\site-packages\napari_nd_annotator\_widgets\__init__.py:1, in <module>
----> 1 from .interpolation_widget import InterpolationWidget
      2 from .object_list import ListWidgetBB

File ~\Anaconda3\envs\napari-clusters\lib\site-packages\napari_nd_annotator\_widgets\interpolation_widget.py:2, in <module>
      1 import numpy as np
----> 2 from cv2 import cv2
      3 from napari import Viewer

ImportError: Bindings generation error. Submodule name should always start with a parent module name. Parent name: cv2.cv2. Submodule name: cv2

RuntimeError: Failed to import command at 'napari_nd_annotator:AnnotatorWidget': Bindings generation error. Submodule name should always start with a parent module name. Parent name: cv2.cv2. Submodule name: cv2

To Reproduce Install the nd-annotator through pip and open the plugin from Napari

Screenshots If applicable, add screenshots to help explain your problem.

Versions(please complete the following information):

bauerdavid commented 2 years ago

resolved in #19

jo-mueller commented 2 years ago

Can confirm, works