-
Notifications
You must be signed in to change notification settings - Fork 26.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: (Macos) - ImportError: dlopen(/Users/mac/stable-diffusion-webui/venv/lib/python3.10/site-packages/cv2/cv2.abi3.so, 2): Symbol not found: #8168
Comments
me too. |
1 similar comment
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. not exactly know what would be occurred, but so far so good. UPDATE: |
@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
|
i think you guys sucks. 我觉得你们这些 比人 不值得别人的帮助, |
Ha ha! Peaceful communication, don't run away! I see your solution! Verified, feasible! Thank you for your reply! 呵呵!和平交流,不要暴走!我看到你的解决方案!验证了,可行!感谢你的回复! |
thanks very much, its works in mac os |
Thank you very much, this method works successfully |
Thanks very much |
thank you very much~ |
it works in 11.7.10! thank you! |
thank you so much |
Is there an existing issue for this?
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: 0cc0ee1
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
start()
File "/Users/mac/stable-diffusion-webui/launch.py", line 352, in start
import webui
File "/Users/mac/stable-diffusion-webui/webui.py", line 15, in
from modules import import_hook, errors, extra_networks, ui_extra_networks_checkpoints
File "/Users/mac/stable-diffusion-webui/modules/ui_extra_networks_checkpoints.py", line 6, in
from modules import shared, ui_extra_networks, sd_models
File "/Users/mac/stable-diffusion-webui/modules/shared.py", line 12, in
import modules.interrogate
File "/Users/mac/stable-diffusion-webui/modules/interrogate.py", line 15, in
from modules import devices, paths, shared, lowvram, modelloader, errors
File "/Users/mac/stable-diffusion-webui/modules/modelloader.py", line 7, in
from basicsr.utils.download_util import load_file_from_url
File "/Users/mac/stable-diffusion-webui/venv/lib/python3.10/site-packages/basicsr/init.py", line 3, in
from .archs import *
File "/Users/mac/stable-diffusion-webui/venv/lib/python3.10/site-packages/basicsr/archs/init.py", line 5, in
from basicsr.utils import get_root_logger, scandir
File "/Users/mac/stable-diffusion-webui/venv/lib/python3.10/site-packages/basicsr/utils/init.py", line 4, in
from .img_process_util import USMSharp, usm_sharp
File "/Users/mac/stable-diffusion-webui/venv/lib/python3.10/site-packages/basicsr/utils/img_process_util.py", line 1, in
import cv2
File "/Users/mac/stable-diffusion-webui/venv/lib/python3.10/site-packages/cv2/init.py", line 181, in
bootstrap()
File "/Users/mac/stable-diffusion-webui/venv/lib/python3.10/site-packages/cv2/init.py", line 153, in bootstrap
native_module = importlib.import_module("cv2")
File "/usr/local/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: dlopen(/Users/mac/stable-diffusion-webui/venv/lib/python3.10/site-packages/cv2/cv2.abi3.so, 2): Symbol not found: _VTRegisterSupplementalVideoDecoderIfAvailable
Referenced from: /Users/mac/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)
Expected in: /System/Library/Frameworks/VideoToolbox.framework/Versions/A/VideoToolbox
in /Users/mac/stable-diffusion-webui/venv/lib/python3.10/site-packages/cv2/.dylibs/libavcodec.59.37.100.dylib
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: 0cc0ee1
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
start()
File "/Users/mac/stable-diffusion-webui/launch.py", line 352, in start
import webui
File "/Users/mac/stable-diffusion-webui/webui.py", line 15, in
from modules import import_hook, errors, extra_networks, ui_extra_networks_checkpoints
File "/Users/mac/stable-diffusion-webui/modules/ui_extra_networks_checkpoints.py", line 6, in
from modules import shared, ui_extra_networks, sd_models
File "/Users/mac/stable-diffusion-webui/modules/shared.py", line 12, in
import modules.interrogate
File "/Users/mac/stable-diffusion-webui/modules/interrogate.py", line 15, in
from modules import devices, paths, shared, lowvram, modelloader, errors
File "/Users/mac/stable-diffusion-webui/modules/modelloader.py", line 7, in
from basicsr.utils.download_util import load_file_from_url
File "/Users/mac/stable-diffusion-webui/venv/lib/python3.10/site-packages/basicsr/init.py", line 3, in
from .archs import *
File "/Users/mac/stable-diffusion-webui/venv/lib/python3.10/site-packages/basicsr/archs/init.py", line 5, in
from basicsr.utils import get_root_logger, scandir
File "/Users/mac/stable-diffusion-webui/venv/lib/python3.10/site-packages/basicsr/utils/init.py", line 4, in
from .img_process_util import USMSharp, usm_sharp
File "/Users/mac/stable-diffusion-webui/venv/lib/python3.10/site-packages/basicsr/utils/img_process_util.py", line 1, in
import cv2
File "/Users/mac/stable-diffusion-webui/venv/lib/python3.10/site-packages/cv2/init.py", line 181, in
bootstrap()
File "/Users/mac/stable-diffusion-webui/venv/lib/python3.10/site-packages/cv2/init.py", line 153, in bootstrap
native_module = importlib.import_module("cv2")
File "/usr/local/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: dlopen(/Users/mac/stable-diffusion-webui/venv/lib/python3.10/site-packages/cv2/cv2.abi3.so, 2): Symbol not found: _VTRegisterSupplementalVideoDecoderIfAvailable
Referenced from: /Users/mac/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)
Expected in: /System/Library/Frameworks/VideoToolbox.framework/Versions/A/VideoToolbox
in /Users/mac/stable-diffusion-webui/venv/lib/python3.10/site-packages/cv2/.dylibs/libavcodec.59.37.100.dylib
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
The text was updated successfully, but these errors were encountered: