Error loading open cv python dependencies
... / Error loading open cv pyt...
BMPCreated with Sketch.BMPZIPCreated with Sketch.ZIPXLSCreated with Sketch.XLSTXTCreated with Sketch.TXTPPTCreated with Sketch.PPTPNGCreated with Sketch.PNGPDFCreated with Sketch.PDFJPGCreated with Sketch.JPGGIFCreated with Sketch.GIFDOCCreated with Sketch.DOC Error Created with Sketch.
Question

Error loading open cv python dependencies

by
ThierryP2
Created on 2022-04-25 09:00:08 (edited on 2024-09-04 14:24:50) in AI and Machine Learning

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 !