thygate / stable-diffusion-webui-depthmap-script

High Resolution Depth Maps for Stable Diffusion WebUI
MIT License
1.71k stars 160 forks source link

Error in installation #115

Open Tetragramm opened 1 year ago

Tetragramm commented 1 year ago

A pile of installations fail, looking for the package, but missing the first character. I have no idea what's up with that, especially since it says the full name just before the errors.

On Automatic1111 commit: 3715ece0adce7bf7c5e9c5ab3710b2fdc3848f39 Other plugins install correctly, so I don't think it's Auto1111.

Installing collected packages: numpy, pooch, opencv-python-headless, asyncer, scikit-image, pymatting, imagehash, rembg
  Attempting uninstall: numpy
    Found existing installation: numpy 1.23.3
    Uninstalling numpy-1.23.3:
      Successfully uninstalled numpy-1.23.3

stderr: WARNING: Ignoring invalid distribution -ransformers (d:\libraries\stable-diffusion-webui\venv\lib\site-packages)
WARNING: Ignoring invalid distribution -pencv-python-headless (d:\libraries\stable-diffusion-webui\venv\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (d:\libraries\stable-diffusion-webui\venv\lib\site-packages)
WARNING: Ignoring invalid distribution -illow (d:\libraries\stable-diffusion-webui\venv\lib\site-packages)
WARNING: Ignoring invalid distribution -ransformers (d:\libraries\stable-diffusion-webui\venv\lib\site-packages)
WARNING: Ignoring invalid distribution -pencv-python-headless (d:\libraries\stable-diffusion-webui\venv\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (d:\libraries\stable-diffusion-webui\venv\lib\site-packages)
WARNING: Ignoring invalid distribution -illow (d:\libraries\stable-diffusion-webui\venv\lib\site-packages)
WARNING: Ignoring invalid distribution -ransformers (d:\libraries\stable-diffusion-webui\venv\lib\site-packages)
WARNING: Ignoring invalid distribution -pencv-python-headless (d:\libraries\stable-diffusion-webui\venv\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (d:\libraries\stable-diffusion-webui\venv\lib\site-packages)
WARNING: Ignoring invalid distribution -illow (d:\libraries\stable-diffusion-webui\venv\lib\site-packages)
    WARNING: Ignoring invalid distribution -ransformers (d:\libraries\stable-diffusion-webui\venv\lib\site-packages)
    WARNING: Ignoring invalid distribution -pencv-python-headless (d:\libraries\stable-diffusion-webui\venv\lib\site-packages)
    WARNING: Ignoring invalid distribution -ip (d:\libraries\stable-diffusion-webui\venv\lib\site-packages)
    WARNING: Ignoring invalid distribution -illow (d:\libraries\stable-diffusion-webui\venv\lib\site-packages)
ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied: 'D:\\libraries\\stable-diffusion-webui\\venv\\Lib\\site-packages\\~umpy\\.libs\\libopenblas.FB5AE2TYXYH2IJRDKGDGQ3XBKLKTF43H.gfortran-win_amd64.dll'
Check the permissions.

WARNING: Ignoring invalid distribution -ransformers (d:\libraries\stable-diffusion-webui\venv\lib\site-packages)
WARNING: Ignoring invalid distribution -pencv-python-headless (d:\libraries\stable-diffusion-webui\venv\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (d:\libraries\stable-diffusion-webui\venv\lib\site-packages)
WARNING: Ignoring invalid distribution -illow (d:\libraries\stable-diffusion-webui\venv\lib\site-packages)
WARNING: Ignoring invalid distribution -ransformers (d:\libraries\stable-diffusion-webui\venv\lib\site-packages)
WARNING: Ignoring invalid distribution -pencv-python-headless (d:\libraries\stable-diffusion-webui\venv\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (d:\libraries\stable-diffusion-webui\venv\lib\site-packages)
WARNING: Ignoring invalid distribution -illow (d:\libraries\stable-diffusion-webui\venv\lib\site-packages)
WARNING: Ignoring invalid distribution -ransformers (d:\libraries\stable-diffusion-webui\venv\lib\site-packages)
WARNING: Ignoring invalid distribution -pencv-python-headless (d:\libraries\stable-diffusion-webui\venv\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (d:\libraries\stable-diffusion-webui\venv\lib\site-packages)
WARNING: Ignoring invalid distribution -illow (d:\libraries\stable-diffusion-webui\venv\lib\site-packages)

[notice] A new release of pip available: 22.3.1 -> 23.0
[notice] To update, run: D:\libraries\stable-diffusion-webui\venv\Scripts\python.exe -m pip install --upgrade pip
graemeniedermayer commented 1 year ago

The missing letters seems to come from Windows locking python packages while they are being used (I'm not 100% sure). Another example is here with "illow" https://github.com/thygate/stable-diffusion-webui-depthmap-script/issues/89#issue-1529333510 .

A possible workaround would be to manual update the packages before auto1111 starts.

pip install numpy --upgrade

If the error changes to the next package that likely means that's the culprit.

This error seems to come up with Windows and venv. I'm not sure about a more complete solution.

talzahr commented 1 year ago

Had similar issues with the UAC access denied permission errors just after the install script ran cURL and tried creating new directories inside of ../venv/libs/site-packages. When checking the dependencies individually listed in ../stable-diffusion-webui-depthmap-script/install.py config script it appears rembg was missing. My guess is same as the above that installing new deps while SD-webui is loaded can cause issues. You can either use pip install rembg from CMD line or try installing stable-diffusion-webui-rembg from the SD-webui available extension list since it should install it directly and not by 3rd-party script.

Or just clone the repo (same URL) from the extensions directory and run the install.py (python.exe install.py) from ../extensions/stable-diffusion-webui-depthmap-script while SD-webui is not running

After that everything worked fine on my end.