Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
satishupadhyay
New Member

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 1
Anonymous
Not applicable

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

alxdean_0-1708097414374.png

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

Helpful resources

Announcements
Fabric July 2025 Monthly Update Carousel

Fabric Monthly Update - July 2025

Check out the July 2025 Fabric update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.