Forum Discussion

satishupadhyay's avatar
satishupadhyay
New Member
2 years ago

Import cv2 error in the notebook

Hi,

I am trying to read images using OpenCV resize and save them back to lakehouse.

I have installed `%pip install opencv-python imutils` in the notebook but when I try to import cv2, it gives the error as below.

 

ImportError: libGL.so.1: cannot open shared object file: No such file or directory

 

 

Has anyone else faced the same issue?

1 Reply

  • Anonymous's avatar
    Anonymous
    Not applicable

    looks like it's having trouble with a dependency. Try creating a new environment with the needed libraries pre-installed. 

    it will slow down your spark boot up time, but might solve the issue.