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

OpenCV ImportError: libIlmImf-2_2.so.23: cannot open shared object file: No such file or directory error #97

Open
MWimbish1988 opened this issue Jan 30, 2022 · 3 comments

Comments

@MWimbish1988
Copy link

ImportError: libIlmImf-2_2.so.23: cannot open shared object file: No such file or directory

Hello,

I am using python3.7 Raspberry Pi 3 B+ and I an trying install opencv to start a project that is a Self-Driving Robotic Car by Use of Computer Vision. The only library I am having trouble with is OpenCV. I first attempt sudo apt-get install python3-opencv. It worked. However, I need it for python3.7. It installs to python 3.9. I then remove it and try pip3.7 install opencv-python. That didn't work. For some reason the version 4.5.5.62 is not installing. So, I was specific by typing pip3.7 install opencv-python==4.5.3.56 because I read it is compatible with python 3.7. This version installs; however, I recieved the following message:

(driving_cv) pi@raspberrypi:~ $ python3
Python 3.7.4 (default, Jan 29 2022, 23:25:05) 
[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.7/site-packages/cv2/__init__.py", line 5, in <module>
    from .cv2 import *
ImportError: libIlmImf-2_2.so.23: cannot open shared object file: No such file or directory
>>> 

I did some research and read I should try the follow command. sudo apt install libopenexr23. However, when executing, it says to replace with libopenexr25 which I do. I recheck python3.7 -c "import cv2" again and get the same error.

Can someoneassist with this issue, please?

@AmiirGh
Copy link

AmiirGh commented Jul 24, 2022

I have the same error.

@drelvenkee
Copy link

try this fix "pip install mediapipe" - it works for me

@skeephonyeah
Copy link

this doesn't work for me. any other work around available?

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

4 participants