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

Cannot import cv2 in Python tests despite following knowledge base #2188

Open
1 task done
jwodder opened this issue May 20, 2024 · 3 comments
Open
1 task done

Cannot import cv2 in Python tests despite following knowledge base #2188

jwodder opened this issue May 20, 2024 · 3 comments
Labels

Comments

@jwodder
Copy link
Member

jwodder commented May 20, 2024

Conda-forge documentation

  • I could not solve my problem using the conda-forge documentation.

Installed packages

N/A

Environment info

Conda forge feedstock CI

Issue

(I'm filing this issue here largely because I don't know of a better place to file it; feel free to let me know of one.)

I'm a maintainer of https://github.com/conda-forge/dandi-feedstock, which uses opencv in some of its tests, and the recipe/ folder contains a yum_requirements.txt file for the opencv deps as described at https://conda-forge.org/docs/maintainer/knowledge_base/#libgl. However, ever since the feedstock's v0.61.0 PR on March 19 (the previous update PR, which was successful, being on February 29), the opencv-using tests have been failing with "ImportError: libEGL.so.1: cannot open shared object file: No such file or directory".

I asked about this on Gitter on March 21, but the only advice I got was to add mesa-libEGL to yum_requirements.txt; at the time, I failed to rerender after applying this change, and so I didn't get anywhere. Re-attemping it now, when I add mesa-libEGL and rerender, this just results in "libEGL.so.1" in the error message being replaced with "libOpenGL.so.0". I tried blindly adding mesa-libOpenGL to yum_requirements.txt and rerendering, but that didn't help, and now I don't know what to do.

@traversaro
Copy link
Contributor

See conda-forge/opencv-feedstock#401 for a related issue.

@jwodder
Copy link
Member Author

jwodder commented May 21, 2024

Based on that link, I was able to get the tests passing by adding libopencv *=headless* # [linux] to test.requires.

Are there any plans to add any of this information to the Knowledge Base?

@hmaarrfk
Copy link
Contributor

It generally takes a little time for this information to "trickle up" into the knowledge base.

I've been trying to monitor if people have been getting issues or not, and addressing things as they come up.

qt6 is still "new" and many projects still aren't compatible, so I don't want to suggest too broadly (yet).

But it my now be the time to add this documentation.

PRs welcome if you want to summarizing your learnings in the documentation!

@hmaarrfk hmaarrfk added Docs and removed bug labels May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants