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
Rohan231
Regular Visitor

Script Runtime Error: ModuleNotFoundError: No module named 'shap'

I am trying to plot a shap plot using "SHAP" library in Power BI. In Power BI desktop it working perfectly fine, but in Power BI Service it is giving me following error message.
Script Runtime Error
ModuleNotFoundError: No module named 'shap'.

 

Screenshot_20221102_100818.png

 

Details about the error:

Activity ID: b5c8f9ab-3bc7-47cc-8bcd-832ed5ef7ed0
Request ID: 1fdb1a0c-4777-425a-930f-cfe8e887ec11
Correlation ID: f5fe634f-4b1e-e375-4859-48255c898194
Time: Wed Nov 02 2022 09:57:58 GMT+0530 (India Standard Time)
Service version: 13.0.19357.55
Client version: 2210.4.10658-train
Cluster URI: https://wabi-canada-central-b-primary-redirect.analysis.windows.net/

1 ACCEPTED SOLUTION
v-yinliw-msft
Community Support
Community Support

Hi @Rohan231 ,

 

It looks like you're planning to create visuals in Python.

But the SHAP library is not supported in the Power BI Service.

vyinliwmsft_0-1667451853112.png

 

For more information, you can refer these documentations:

Learn which Python packages are supported - Power BI | Microsoft Learn

Python visualizations in Power BI Service | Microsoft Power BI Blog | Microsoft Power BI

 

Hope this helps you.

 

Best Regards,

Community Support Team _Yinliw

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yinliw-msft
Community Support
Community Support

Hi @Rohan231 ,

 

It looks like you're planning to create visuals in Python.

But the SHAP library is not supported in the Power BI Service.

vyinliwmsft_0-1667451853112.png

 

For more information, you can refer these documentations:

Learn which Python packages are supported - Power BI | Microsoft Learn

Python visualizations in Power BI Service | Microsoft Power BI Blog | Microsoft Power BI

 

Hope this helps you.

 

Best Regards,

Community Support Team _Yinliw

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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.