stable-diffusion-webui
stable-diffusion-webui copied to clipboard
[Bug]: (Macos) - ImportError: dlopen(/Users/mac/stable-diffusion-webui/venv/lib/python3.10/site-packages/cv2/cv2.abi3.so, 2): Symbol not found:
Is there an existing issue for this?
- [X] I have searched the existing issues and checked the recent builds/commits
What happened?
./ webui.sh There is a problem installing to the following step
Python 3.10.9 (main, Jan 25 2023, 14:19:22) [Clang 12.0.0 (clang-1200.0.32.29)]
Commit hash: 0cc0ee1bcb4c24a8c9715f66cede06601bfc00c8
Installing requirements for Web UI
Launching Web UI with arguments: --upcast-sampling --no-half-vae --use-cpu interrogate
Traceback (most recent call last):
File "/Users/mac/stable-diffusion-webui/launch.py", line 361, in
Steps to reproduce the problem
./webui.sh
################################################################ Install script for stable-diffusion + Web UI Tested on Debian 11 (Bullseye) ################################################################
################################################################ Running on mac user ################################################################
################################################################ Repo already cloned, using it as install directory ################################################################
################################################################ Create and activate python venv ################################################################
################################################################
Launching launch.py...
################################################################
Python 3.10.9 (main, Jan 25 2023, 14:19:22) [Clang 12.0.0 (clang-1200.0.32.29)]
Commit hash: 0cc0ee1bcb4c24a8c9715f66cede06601bfc00c8
Installing requirements for Web UI
Launching Web UI with arguments: --upcast-sampling --no-half-vae --use-cpu interrogate
Traceback (most recent call last):
File "/Users/mac/stable-diffusion-webui/launch.py", line 361, in
What should have happened?
hello
Commit where the problem happens
hello
What platforms do you use to access the UI ?
MacOS
What browsers do you use to access the UI ?
Google Chrome
Command Line Arguments
## hello
List of extensions
hello
Console logs
## hello
Additional information
hello
me too.
me too.
me too . I also encountered this error, but I found that it is caused by the Mac system version not being compatible. This error message: Referenced from: /Users/xxxxx/Downloads/stable-diffusion-webui/venv/lib/python3.10/site-packages/cv2/.dylibs/libavcodec.59.37.100.dylib (which was built for Mac OS X 11.0)
My system is 10.15, does it not meet the installation requirements? Thank you for your attention.
me too
any solutions?
me too
Hi,everyone. I've been encounted the same issue. and then i downgrade the opencv_python version from 4.7.0.68(which used in this repo now) to 4.5.5.64. and this issue is fixed.
not exactly know what would be occurred, but so far so good. Wish you guys all as well.
UPDATE: it is running perfectly.
@wangmings @Hanzvii @yunming-lpf @TCnet @Tesla-roger
@adoontheway I am running mac OS 10.15.7 and I am getting the same error message. How do I degrade the opencv_python version?
@ruoruostar my mac os is 10.15.6
- active the venv: source ./venv/bin/activate
- run pip uninstall opencv_python , it will remind you uninstall both opencv_python and cv2, chose yes
- pip install opencv_python==4.5.5.64
i think you guys sucks. not deserve my help after use my solution without any feedback and thanks.
我觉得你们这些 比人 不值得别人的帮助, 用了别人的解决方案,没有反馈,没有谢谢。
Ha ha! Peaceful communication, don't run away! I see your solution! Verified, feasible! Thank you for your reply!
呵呵!和平交流,不要暴走!我看到你的解决方案!验证了,可行!感谢你的回复!
@ruoruostar my mac os is 10.15.6
- active the venv: source ./venv/bin/activate
- run pip uninstall opencv_python , it will remind you uninstall both opencv_python and cv2, chose yes
- pip install opencv_python==4.5.5.64
thanks very much, its works in mac os
@ruoruostar my mac os is 10.15.6
- active the venv: source ./venv/bin/activate
- run pip uninstall opencv_python , it will remind you uninstall both opencv_python and cv2, chose yes
- pip install opencv_python==4.5.5.64
Thank you very much, this method works successfully
@ruoruostar my mac os is 10.15.6
- active the venv: source ./venv/bin/activate
- run pip uninstall opencv_python , it will remind you uninstall both opencv_python and cv2, chose yes
- pip install opencv_python==4.5.5.64
Thanks very much
@ruoruostar my mac os is 10.15.6
- active the venv: source ./venv/bin/activate
- run pip uninstall opencv_python , it will remind you uninstall both opencv_python and cv2, chose yes
- pip install opencv_python==4.5.5.64
thank you very much~
@ruoruostar my mac os is 10.15.6
- active the venv: source ./venv/bin/activate
- run pip uninstall opencv_python , it will remind you uninstall both opencv_python and cv2, chose yes
- pip install opencv_python==4.5.5.64
it works in 11.7.10! thank you!
@ruoruostar my mac os is 10.15.6
- active the venv: source ./venv/bin/activate
- run pip uninstall opencv_python , it will remind you uninstall both opencv_python and cv2, chose yes
- pip install opencv_python==4.5.5.64
thank you so much