Install-OpenCV-Raspberry-Pi-64-bits icon indicating copy to clipboard operation
Install-OpenCV-Raspberry-Pi-64-bits copied to clipboard

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

Open zoldaten opened this issue 3 years ago • 1 comments

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 ?

zoldaten avatar Aug 29 '22 16:08 zoldaten

@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

Qengineering avatar Aug 30 '22 08:08 Qengineering