PolarizedLightFieldMicroscopy / napari-LF

Light field imaging plugin for napari
BSD 3-Clause "New" or "Revised" License
9 stars 3 forks source link

Error warning when opening napari #20

Closed gschlafly closed 1 year ago

gschlafly commented 1 year ago

When opening napari, I get the following error message even after a new installation. Some information seems to be saving in to the environment. I am going to try opening napari into a new virtual environment.

image

gschlafly commented 1 year ago

Note: These attempts are made on a Windows OS.

I created a new conda environment. I used the following command to install napari along with the napari-LF plugin.

pip install git+https://github.com/PolarizedLightFieldMicroscopy/napari-LF.git@NeuralNets_integration2

napari successfully opens with only the warning message of image However, the napari-LF plugin fails to open when selected from the dropdown menu. Below is the output in the napari debugger.

2023-01-13 napari debugger ulens_pitch

Potential cause: Another package might need to be included in the setup.cfg file

amitabhverma commented 1 year ago

I'm a little confused with this issue. If this was a new napari installation, didn't it install the latest QT lib which should be >=5.12.3 and not 5.9.7 ? Does updating the QT lib to the recommended version change any messages ?

amitabhverma commented 1 year ago

BTW, the last error message probably is numpy related. I had to downgrade numpy to 1.21 since the latest (1.23) was giving issues.

amitabhverma commented 1 year ago

Tried a clean conda installation and was still getting our plugin disabled at startup and no way to enable it. Finally, the following did the trick:

In napari console:

from napari.settings import SETTINGS
SETTINGS.reset()

Restart napari

PS: still need to downgrade numpy==1.23.5 (https://github.com/PolarizedLightFieldMicroscopy/LFAnalyze-fundamentals/issues/3)

gschlafly commented 1 year ago

Numpy issues have (most likely) been resolved. The non-Neural Net files in the lfa folder can be replaced by those in the numpy branch.