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: libopencv_core.so.4.2: cannot open shared object file no such file or directory #499

Open
mazik1496 opened this issue Nov 1, 2022 · 2 comments

Comments

@mazik1496
Copy link

mazik1496 commented Nov 1, 2022

스크린샷, 2022-10-28 01-26-46

ImportError: libopencv_core.so.4.2: cannot open shared object file no such file or directory`

I am using Ubuntu 20.04 noetic!
Now, I tried importing the camera in the gazebo virtual environment that I made myself in the past with opencv, and I saw that ImportError: libopencv_core.so.4.2: was displayed.
At first, to use yolo github, I kept installing and deleting other versions of opencv.

Now, I checked libopencv_core in the admin folder, and there are files related to libopencv_core 4.4. Is there any way to open it with 4.4 instead of lipopencv_core 4.2…???

@meghbhalerao
Copy link

did you figure this out? I am getting a similar error - ImportError: libopencv_imgproc.so.407: cannot open shared object file: No such file or directory

@ngifary
Copy link

ngifary commented Jun 1, 2023

As a workaround you can create a symlink for each shared library file from the opencv version that you have libopencv*.so.4.4 with the corresponding expected file name libopencv*.so.4.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

3 participants