OVHcloud Community

Welcome to your community space. Ask questions, search for information, post content, and interact with other OVHcloud Community members.

Error loading open cv python dependencies


#1

Hi !
I’m trying out the AI Notebook service to train a computer vision model. One of the library I use on my local computer is open-cv. When I try to import open-cv in my notebook environment I get a dependency error

        import cv2

File “/workspace/.local/lib/python3.9/site-packages/cv2/init.py”, line 8, in
from .cv2 import *
ImportError: libGL.so.1: cannot open shared object file: No such file or directory

I’m using the miniconda image (conda - conda-py39-cuda11.2-v0.5-beta). I’ve also tried with other images like ovh image and tensorflow image and got the same issue.

Is there anything I can do to install the dependency myself ?

Thanks !