Skip to content
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

cv2/cv2.abi3.so, 2): Library not loaded: /usr/local/opt/libunistring/lib/libunistring.2.dylib Referenced from: /usr/local/opt/gnutls/lib/libgnutls.30.dylib #996

Closed
4 tasks
1769782410 opened this issue Jun 4, 2024 · 1 comment

Comments

@1769782410
Copy link

1769782410 commented Jun 4, 2024

Expected behaviour

I am using yolov8 pip install ultralytics then running

Actual behaviour

Traceback (most recent call last): File "/Users/cs/project/yolov8-cs/1.py", line 1, in <module> import cv2 File "/Users/cs/.pyenv/versions/yolo_venv/lib/python3.10/site-packages/cv2/__init__.py", line 181, in <module> bootstrap() File "/Users/cs/.pyenv/versions/yolo_venv/lib/python3.10/site-packages/cv2/__init__.py", line 153, in bootstrap native_module = importlib.import_module("cv2") File "/Users/cs/.pyenv/versions/3.10.4/lib/python3.10/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ImportError: dlopen(/Users/cs/.pyenv/versions/3.10.4/envs/yolo_venv/lib/python3.10/site-packages/cv2/cv2.abi3.so, 2): Library not loaded: /usr/local/opt/libunistring/lib/libunistring.2.dylib Referenced from: /usr/local/opt/gnutls/lib/libgnutls.30.dylib Reason: image not found

Steps to reproduce

  • example code:import cv2
  • operating system macos 10.15.7 (19H1615)
  • architecture (x64)
  • opencv-python version :Probably up to date, as it uses pip install ultralytics directly
Issue submission checklist
  • This is not a generic OpenCV usage question (looking for help for coding, other usage questions, homework etc.)
  • I have read the README of this repository and understand that this repository provides only an automated build toolchain for OpenCV Python packages (there is no actual OpenCV code here)
  • The issue is related to the build scripts in this repository, to the pre-built binaries or is a feature request (such as "please enable this additional dependency")
  • I'm using the latest version of opencv-python
@1769782410
Copy link
Author

1769782410 commented Jun 4, 2024

AUTOMATIC1111/stable-diffusion-webui#8168 (comment)

I used the above link to solve the problem because the version is too high

  1. ultralytics
    opencv-python == 4.6.0.66

  2. pip install --upgrade "protobuf<=3.20.2"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant