royerlab / napari-chatgpt

A napari plugin to process and analyse images with chatGPT!
BSD 3-Clause "New" or "Revised" License
250 stars 26 forks source link

Unable to run Napari after installing napari-chatgpt #44

Closed rajpiyush18 closed 7 months ago

rajpiyush18 commented 7 months ago

Hello,

I am unable to run Napari after installing napari-chatgpt.

I am getting the following error:

Traceback (most recent call last): File "C:\Users\plato\anaconda3\envs\napari_env\lib\runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\plato\anaconda3\envs\napari_env\lib\runpy.py", line 86, in _run_code exec(code, run_globals) File "C:\Users\plato\anaconda3\envs\napari_env\Scripts\napari.exe__main.py", line 4, in File "C:\Users\plato\anaconda3\envs\napari_env\lib\site-packages\napari__main__.py", line 17, in from napari.utils.translations import trans File "C:\Users\plato\anaconda3\envs\napari_env\lib\site-packages\napari\utils\init__.py", line 8, in from napari.utils.notebook_display import nbscreenshot File "C:\Users\plato\anaconda3\envs\napari_env\lib\site-packages\napari\utils\notebook_display.py", line 9, in from lxml.html.clean import Cleaner File "C:\Users\plato\anaconda3\envs\napari_env\lib\site-packages\lxml\html\clean.py", line 18, in raise ImportError( ImportError: lxml.html.clean module is now a separate project lxml_html_clean. Install lxml[html_clean] or lxml_html_clean directly.

I tried making new environment and reinstalling, but that is not solving the issue

rajpiyush18 commented 7 months ago

The following installation solved my issue:

pip install --upgrade lxml_html_clean