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

ImportError: libpng15-7864b8f1.so.15.13.0: cannot open shared object file: No such file or directory #1

Open
zoldaten opened this issue Aug 29, 2022 · 1 comment

Comments

@zoldaten
Copy link

hi,
i tried rebuild opencv after clean remove on raspberry pi 4 aarch64.
Everything build succesfully but i got this trying import:

Python 3.9.2 (default, Feb 28 2021, 17:03:44) 
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/pi/.local/lib/python3.9/site-packages/cv2/__init__.py", line 8, in <module>
    from .cv2 import *
ImportError: libpng15-7864b8f1.so.15.13.0: cannot open shared object file: No such file or directory

i built opencv not using virtual env.
how to fix that ?
may be something with sym links ?

@Qengineering
Copy link
Owner

@zoldaten,

Strange error.
libpng15 isn't installed and used by OpenCV initially.

Please try the following solutions:
https://askubuntu.com/questions/343184/libpng15-so-15-cannot-open-shared-object-file
or if not working
https://stackoverflow.com/questions/62811239/how-correct-the-import-error-of-libpng15-for-cv2resolve

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

2 participants