rupeshs / fastsdcpu

Fast stable diffusion on CPU
MIT License
1.01k stars 87 forks source link

ModuleNotFoundError: No module named 'PIL' #195

Closed ProtoBelisarius closed 1 week ago

ProtoBelisarius commented 1 month ago

I get the following output from start.sh or start-webui.sh:

Starting FastSD CPU please wait...
Found python command
Python version : 3.10.14
/home/USER/Git/fastsdcpu/src/app.py:223: SyntaxWarning: invalid escape sequence '\l'
  help="LoRA model full path e.g D:\lora_models\CuteCartoon15V-LiberteRedmodModel-Cartoon-CuteCartoonAF.safetensors",
Traceback (most recent call last):
  File "/home/USER/Git/fastsdcpu/src/app.py", line 5, in <module>
    from backend.controlnet import controlnet_settings_from_dict
  File "/home/USER/Git/fastsdcpu/src/backend/controlnet.py", line 2, in <module>
    from PIL import Image
ModuleNotFoundError: No module named 'PIL'

Im on linux and Ive cloned it, made a python 3.10 venv and installed the requirements.

ivan-robic commented 1 month ago

Got this error on Linux Mint with Python 3.10.12. After removing virtual environment and rebooting system, then creating new venv it worked.

rupeshs commented 3 weeks ago

@ProtoBelisarius Please do a reinstall.

ruberkel commented 2 weeks ago

Win11 here. I get the same error after installation. installation says "ERROR: Could not find a version that satisfies the requirement openvino==2024.0.0 (from versions: 2024.1.0) ERROR: No matching distribution found for openvino==2024.0.0" and then start.bat throws the error on this thread. using python 3.12.4.

rupeshs commented 2 weeks ago

Win11 here. I get the same error after installation. installation says "ERROR: Could not find a version that satisfies the requirement openvino==2024.0.0 (from versions: 2024.1.0) ERROR: No matching distribution found for openvino==2024.0.0" and then start.bat throws the error on this thread. using python 3.12.4.

@ruberkel Please use Python 3.11.6

ruberkel commented 2 weeks ago

@ruberkel Please use Python 3.11.6

It works! Thanks!