AUTOMATIC1111 / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
140.67k stars 26.61k forks source link

[Bug]: Adetailer #16082

Open MODOMison opened 3 months ago

MODOMison commented 3 months ago

Checklist

What happened?

thon, ml-dtypes, mdurl, absl-py, markdown-it-py, jaxlib, CFFI, ultralytics-thop, sounddevice, seaborn, rich, jax, ultralytics, mediapipe Attempting uninstall: protobuf Found existing installation: protobuf 3.20.0 Uninstalling protobuf-3.20.0: Successfully uninstalled protobuf-3.20.0


stderr: ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied: 'D:\Users\matto\Recovered decent stuff\Desktop\stable-diffusion-webui\venv\Lib\site-packages\cv2\cv2.pyd' Check the permissions.



[notice] A new release of pip available: 22.2.1 -> 24.1 [notice] To update, run: D:\Users\matto\Recovered decent stuff\Desktop\stable-diffusion-webui\venv\Scripts\python.exe -m pip install --upgrade pip Traceback (most recent call last): File "D:\Users\matto\Recovered decent stuff\Desktop\stable-diffusion-webui\extensions\adetailer\install.py", line 77, in install() File "D:\Users\matto\Recovered decent stuff\Desktop\stable-diffusion-webui\extensions\adetailer\install.py", line 66, in install run_pip(pkgs) ** File "D:\Users\matto\Recovered decent stuff\Desktop\stable-diffusion-webui\extensions\adetailer\install.py", line 41, in run_pip subprocess.run([sys.executable, "-m", "pip", "install", *args], check=True) File "C:\Users\matto\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 524, in run raise CalledProcessError(retcode, process.args, *** subprocess.CalledProcessError: Command '['D:\Users\matto\Recovered decent stuff\Desktop\stable-diffusion-webui\venv\Scripts\python.exe', '-m', 'pip', 'install', 'ultralytics>=8.2.0', 'mediapipe>=0.10.13', 'rich>=13.0.0']' returned non-zero exit status 1.

Steps to reproduce the problem

download Adetailer

What should have happened?

no error

What browsers do you use to access the UI ?

No response

Sysinfo

ui\venv\lib\site-packages (from jinja2->torch>=1.8.0->ultralytics>=8.2.0) (2.1.5) Requirement already satisfied: mpmath<1.4.0,>=1.1.0 in d:\users\matto\recovered decent stuff\desktop\stable-diffusion-webui\venv\lib\site-packages (from sympy->torch>=1.8.0->ultralytics>=8.2.0) (1.3.0) Installing collected packages: py-cpuinfo, flatbuffers, pygments, pycparser, protobuf, opt-einsum, opencv-contrib-python, ml-dtypes, mdurl, absl-py, markdown-it-py, jaxlib, CFFI, ultralytics-thop, sounddevice, seaborn, rich, jax, ultralytics, mediapipe Attempting uninstall: protobuf Found existing installation: protobuf 3.20.0 Uninstalling protobuf-3.20.0: Successfully uninstalled protobuf-3.20.0


stderr: ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied: 'D:\Users\matto\Recovered decent stuff\Desktop\stable-diffusion-webui\venv\Lib\site-packages\cv2\cv2.pyd' Check the permissions.



[notice] A new release of pip available: 22.2.1 -> 24.1 [notice] To update, run: D:\Users\matto\Recovered decent stuff\Desktop\stable-diffusion-webui\venv\Scripts\python.exe -m pip install --upgrade pip Traceback (most recent call last): File "D:\Users\matto\Recovered decent stuff\Desktop\stable-diffusion-webui\extensions\adetailer\install.py", line 77, in install() File "D:\Users\matto\Recovered decent stuff\Desktop\stable-diffusion-webui\extensions\adetailer\install.py", line 66, in install run_pip(pkgs) ** File "D:\Users\matto\Recovered decent stuff\Desktop\stable-diffusion-webui\extensions\adetailer\install.py", line 41, in run_pip subprocess.run([sys.executable, "-m", "pip", "install", *args], check=True) File "C:\Users\matto\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 524, in run raise CalledProcessError(retcode, process.args, *** subprocess.CalledProcessError: Command '['D:\Users\matto\Recovered decent stuff\Desktop\stable-diffusion-webui\venv\Scripts\python.exe', '-m', 'pip', 'install', 'ultralytics>=8.2.0', 'mediapipe>=0.10.13', 'rich>=13.0.0']' returned non-zero exit status 1.

Console logs

ui\venv\lib\site-packages (from jinja2->torch>=1.8.0->ultralytics>=8.2.0) (2.1.5)
*** Requirement already satisfied: mpmath<1.4.0,>=1.1.0 in d:\users\matto\recovered decent stuff\desktop\stable-diffusion-webui\venv\lib\site-packages (from sympy->torch>=1.8.0->ultralytics>=8.2.0) (1.3.0)
*** Installing collected packages: py-cpuinfo, flatbuffers, pygments, pycparser, protobuf, opt-einsum, opencv-contrib-python, ml-dtypes, mdurl, absl-py, markdown-it-py, jaxlib, CFFI, ultralytics-thop, sounddevice, seaborn, rich, jax, ultralytics, mediapipe
***   Attempting uninstall: protobuf
***     Found existing installation: protobuf 3.20.0
***     Uninstalling protobuf-3.20.0:
***       Successfully uninstalled protobuf-3.20.0
***
*** stderr: ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied: 'D:\\Users\\matto\\Recovered decent stuff\\Desktop\\stable-diffusion-webui\\venv\\Lib\\site-packages\\cv2\\cv2.pyd'
*** Check the permissions.
***
***
*** [notice] A new release of pip available: 22.2.1 -> 24.1
*** [notice] To update, run: D:\Users\matto\Recovered decent stuff\Desktop\stable-diffusion-webui\venv\Scripts\python.exe -m pip install --upgrade pip
*** Traceback (most recent call last):
***   File "D:\Users\matto\Recovered decent stuff\Desktop\stable-diffusion-webui\extensions\adetailer\install.py", line 77, in <module>
***     install()
***   File "D:\Users\matto\Recovered decent stuff\Desktop\stable-diffusion-webui\extensions\adetailer\install.py", line 66, in install
***     run_pip(*pkgs)
***   File "D:\Users\matto\Recovered decent stuff\Desktop\stable-diffusion-webui\extensions\adetailer\install.py", line 41, in run_pip
***     subprocess.run([sys.executable, "-m", "pip", "install", *args], check=True)
***   File "C:\Users\matto\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 524, in run
***     raise CalledProcessError(retcode, process.args,
*** subprocess.CalledProcessError: Command '['D:\\Users\\matto\\Recovered decent stuff\\Desktop\\stable-diffusion-webui\\venv\\Scripts\\python.exe', '-m', 'pip', 'install', 'ultralytics>=8.2.0', 'mediapipe>=0.10.13', 'rich>=13.0.0']' returned non-zero exit status 1.

Additional information

ui\venv\lib\site-packages (from jinja2->torch>=1.8.0->ultralytics>=8.2.0) (2.1.5) Requirement already satisfied: mpmath<1.4.0,>=1.1.0 in d:\users\matto\recovered decent stuff\desktop\stable-diffusion-webui\venv\lib\site-packages (from sympy->torch>=1.8.0->ultralytics>=8.2.0) (1.3.0) Installing collected packages: py-cpuinfo, flatbuffers, pygments, pycparser, protobuf, opt-einsum, opencv-contrib-python, ml-dtypes, mdurl, absl-py, markdown-it-py, jaxlib, CFFI, ultralytics-thop, sounddevice, seaborn, rich, jax, ultralytics, mediapipe Attempting uninstall: protobuf Found existing installation: protobuf 3.20.0 Uninstalling protobuf-3.20.0: Successfully uninstalled protobuf-3.20.0


stderr: ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied: 'D:\Users\matto\Recovered decent stuff\Desktop\stable-diffusion-webui\venv\Lib\site-packages\cv2\cv2.pyd' Check the permissions.



[notice] A new release of pip available: 22.2.1 -> 24.1 [notice] To update, run: D:\Users\matto\Recovered decent stuff\Desktop\stable-diffusion-webui\venv\Scripts\python.exe -m pip install --upgrade pip Traceback (most recent call last): File "D:\Users\matto\Recovered decent stuff\Desktop\stable-diffusion-webui\extensions\adetailer\install.py", line 77, in install() File "D:\Users\matto\Recovered decent stuff\Desktop\stable-diffusion-webui\extensions\adetailer\install.py", line 66, in install run_pip(pkgs) ** File "D:\Users\matto\Recovered decent stuff\Desktop\stable-diffusion-webui\extensions\adetailer\install.py", line 41, in run_pip subprocess.run([sys.executable, "-m", "pip", "install", *args], check=True) File "C:\Users\matto\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 524, in run raise CalledProcessError(retcode, process.args, *** subprocess.CalledProcessError: Command '['D:\Users\matto\Recovered decent stuff\Desktop\stable-diffusion-webui\venv\Scripts\python.exe', '-m', 'pip', 'install', 'ultralytics>=8.2.0', 'mediapipe>=0.10.13', 'rich>=13.0.0']' returned non-zero exit status 1.

w-e-w commented 3 months ago

the extension installer is executed in two places

  1. immediately after the extension is installed "when using the UI to install extention"
  2. during every launching of the webui
OSError: [WinError 5] Access is denied: 'D:\Users\matto\Recovered decent stuff\Desktop\stable-diffusion-webui\venv\Lib\site-packages\cv2\cv2.pyd'

that seems like it's trying to install / update some files that are currently in use thus it's not able to in most cases that should resolve itself the next time you launch web UI this is caused when the extension installer is executed during (1.) for certain extensions the above error is expected

but the next time you restart web UI it should executly installed again during (2.) the issue should auto resolve itself and the error should not appear however if you're still experiencing the issue after multiple relaunches

then in this case you should report the issue too the extension developer whitch is adetailer