napari-deeplabcut icon indicating copy to clipboard operation
napari-deeplabcut copied to clipboard

DLC - clustering

Open ewelinacyrano opened this issue 1 year ago • 2 comments

Hi, I would like to try out clustering plugin in deeplabcut napari. Unfortunately after installing it using "pip install git+https://github.com/DeepLabCutAIResidency/napari-deeplabcut.git@cluster1" command I hit errors, such as:

Anaconda3\envs\DEEPLABCUT\lib\site-packages\napari_deeplabcut_writer.py:6 ModuleNotFoundError: No module named 'napari.plugins._builtins'

Thank you in advance for your help.

ewelinacyrano avatar Mar 08 '23 10:03 ewelinacyrano

Hi @ewelinacyrano, installing pip install napari<0.4.17 fixes it. napari changed that part of the code after that, and the clustering code hasn't been updated yet to reflect that change.

jeylau avatar May 10 '23 10:05 jeylau

Hi, I think I have succesfully installed the plugin, but when I run napari I get the following error:

ERROR napari.manifest -> 'napari_deeplabcut' could not be imported: The name field in the manifest ('napari-deeplabcut') must match the package name ('napari_deeplabcut')

which is based on the following:

RuntimeError: Failed to import command at 'napari_deeplabcut._widgets:KeypointControls': The QtSvgWidgets module was not found. It is not currently implemented in PyQt5.

Although napari opens correclty (apparently), when I try to use "napari-deeplabcut: keypoints controls" I get the error reported by @ewelinacyrano. I therefore tried to pip install napari==0.4.16 as @jeylau suggested but I am now hitting this error:

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.
napari-deeplabcut 0.0.5.dev145+g0c7b383 requires napari==0.4.18, but you have napari 0.4.16 which is incompatible. 

Now, although napari opens up, when I run napari I get the following message:

napari.manifest -> 'napari_deeplabcut' could not be imported: The name field in the manifest ('napari-deeplabcut') must match the package name ('napari_deeplabcut')
napari.manifest -> 'napari' could not be imported: Cannot find module 'napari_builtins' declared in entrypoint: 'napari_builtins:builtins.yaml'

Then, when in napari I try to launch "napari-deeplabcut: keypoints controls" I get this new error:

RuntimeError: Failed to import command at 'napari_deeplabcut._widgets:KeypointControls': No module named 'napari_builtins'

Any idea on what is happening and what I'm missing? Thank you in advance for your help!

RiSpa5 avatar May 17 '24 12:05 RiSpa5