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

Join us at FabCon Vienna from September 15-18, 2025, for the ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM. Get registered

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June FBC25 Carousel

Fabric Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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