intel / openvino-ai-plugins-gimp

GIMP AI plugins with OpenVINO Backend
Apache License 2.0
447 stars 49 forks source link

ModuleNotFoundError: No module named 'diffusers' #44

Closed bobdobbs closed 8 months ago

bobdobbs commented 1 year ago

Installing on Ubuntu 22.04.

Install script fails with the following quoted output. This failure happens after I'm prompted to select which models I want to install. As soon as I make a selection, I get the following output:


Traceback (most recent call last):
  File "/home/mantis/opt/openvino-ai-plugins-gimp/sd_model_conversion.py", line 11, in <module>
    from diffusers import StableDiffusionPipeline, StableDiffusionInpaintPipeline
ModuleNotFoundError: No module named 'diffusers'
Traceback (most recent call last):
  File "/home/mantis/opt/openvino-ai-plugins-gimp/sd_model_conversion.py", line 11, in <module>
    from diffusers import StableDiffusionPipeline, StableDiffusionInpaintPipeline
ModuleNotFoundError: No module named 'diffusers'
Traceback (most recent call last):
  File "/home/mantis/opt/openvino-ai-plugins-gimp/sd_model_conversion.py", line 11, in <module>
    from diffusers import StableDiffusionPipeline, StableDiffusionInpaintPipeline
ModuleNotFoundError: No module named 'diffusers'
Traceback (most recent call last):
  File "/home/mantis/opt/openvino-ai-plugins-gimp/sd_model_conversion.py", line 11, in <module>
    from diffusers import StableDiffusionPipeline, StableDiffusionInpaintPipeline
ModuleNotFoundError: No module named 'diffusers'
Traceback (most recent call last):
  File "/home/mantis/opt/openvino-ai-plugins-gimp/sd_model_conversion.py", line 11, in <module>
    from diffusers import StableDiffusionPipeline, StableDiffusionInpaintPipeline
ModuleNotFoundError: No module named 'diffusers'
Traceback (most recent call last):
  File "/home/mantis/opt/openvino-ai-plugins-gimp/sd_model_conversion.py", line 11, in <module>
    from diffusers import StableDiffusionPipeline, StableDiffusionInpaintPipeline
ModuleNotFoundError: No module named 'diffusers'
**** OPENVINO STABLE DIFFUSION 1.5 MODELS COMPLETE ****

After this, I pass in "pip install diffusers", and get the following:

Requirement already satisfied: diffusers in /home/mantis/.pyenv/versions/3.10.6/lib/python3.10/site-packages (0.10.2)
Requirement already satisfied: importlib-metadata in /home/mantis/.pyenv/versions/3.10.6/lib/python3.10/site-packages (from diffusers) (6.6.0)
Requirement already satisfied: filelock in /home/mantis/.local/lib/python3.10/site-packages (from diffusers) (3.7.1)
Requirement already satisfied: huggingface-hub>=0.10.0 in /home/mantis/.pyenv/versions/3.10.6/lib/python3.10/site-packages (from diffusers) (0.13.3)
Requirement already satisfied: numpy in /home/mantis/.pyenv/versions/3.10.6/lib/python3.10/site-packages (from diffusers) (1.24.3)
Requirement already satisfied: regex!=2019.12.17 in /home/mantis/.local/lib/python3.10/site-packages (from diffusers) (2022.3.2)
Requirement already satisfied: requests in /home/mantis/.pyenv/versions/3.10.6/lib/python3.10/site-packages (from diffusers) (2.28.2)
Requirement already satisfied: Pillow in /home/mantis/.pyenv/versions/3.10.6/lib/python3.10/site-packages (from diffusers) (9.5.0)
Requirement already satisfied: tqdm>=4.42.1 in /home/mantis/.pyenv/versions/3.10.6/lib/python3.10/site-packages (from huggingface-hub>=0.10.0->diffusers) (4.65.0)
Requirement already satisfied: pyyaml>=5.1 in /home/mantis/.pyenv/versions/3.10.6/lib/python3.10/site-packages (from huggingface-hub>=0.10.0->diffusers) (6.0)
Requirement already satisfied: typing-extensions>=3.7.4.3 in /home/mantis/.pyenv/versions/3.10.6/lib/python3.10/site-packages (from huggingface-hub>=0.10.0->diffusers) (4.6.2)
Requirement already satisfied: packaging>=20.9 in /home/mantis/.pyenv/versions/3.10.6/lib/python3.10/site-packages (from huggingface-hub>=0.10.0->diffusers) (23.1)
Requirement already satisfied: zipp>=0.5 in /home/mantis/.pyenv/versions/3.10.6/lib/python3.10/site-packages (from importlib-metadata->diffusers) (3.15.0)
Requirement already satisfied: charset-normalizer<4,>=2 in /home/mantis/.pyenv/versions/3.10.6/lib/python3.10/site-packages (from requests->diffusers) (3.1.0)
Requirement already satisfied: idna<4,>=2.5 in /home/mantis/.pyenv/versions/3.10.6/lib/python3.10/site-packages (from requests->diffusers) (3.4)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /home/mantis/.pyenv/versions/3.10.6/lib/python3.10/site-packages (from requests->diffusers) (1.26.16)
Requirement already satisfied: certifi>=2017.4.17 in /home/mantis/.pyenv/versions/3.10.6/lib/python3.10/site-packages (from requests->diffusers) (2023.5.7)
RyanMetcalfeInt8 commented 1 year ago

Hi @bobdobbs, in model-requirements.txt, can you try changing line 2: openvino-dev==2022.2.0 to openvino-dev==2022.3.0

Remove model_conv folder, and re-run install.sh.

And see if that works?

jyeohamilton commented 1 year ago

@RyanMetcalfeInt8 That works.

blackPantherOS commented 1 year ago

Same errors was on blackPanther OS as well, i modify more versions definition for succesful install, try this fork: https://github.com/blackPantherOS/openvino-ai-plugins-gimp-source

I think so, this plugin is very useful professional, and a gap filling plugin, but sooner or later you will need a static version like Gmic!

RyanMetcalfeInt8 commented 1 year ago

@bobdobbs, did you try the suggestion?

jettmidknight commented 1 year ago

I am having a similar issue to the OP. I get to the same step in the process except I am missing a different module.

ModuleNotFoundError: No module named 'openvino._pyopenvino'

I tried the suggestion that @RyanMetcalfeInt8 posted but that didn't change anything for me. Any ideas?

gblong1 commented 8 months ago

@jettmidknight / @bobdobbs - please update to the latest release. We have published many updates which should resolve these issues. If you are still having problems, please let me know..