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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
rais
New Member

Python Visual Error in Power BI Service

Report with Python Visual is working fine in Power BI Desktop. But after publishing in Power BI Service, it is giving the below error.

 

rais_0-1687173106805.png

Please help to fix this issue.

Thanks

2 REPLIES 2
v-zhangti
Community Support
Community Support

Hi, @rais 

 

There are a handful of requirements and limitations for Python packages:

  • Current Python runtime: Python 3.7.7.
  • Power BI, for the most part, supports Python packages with free and open-source software licenses such as GPL-2, GPL-3, MIT+, and so on.
  • Power BI supports packages published in PyPI. The service doesn't support private or custom Python packages. Users are encouraged to make their private packages available on PyPI prior to requesting the package be available in Power BI.
  • For Python visuals in Power BI Desktop, you can install any package, including custom Python packages.
  • For security and privacy reasons, Python packages that provide client-server queries over the web in the service, aren't supported. Networking is blocked for such attempts.
  • The approval process for including a new Python package has a tree of dependencies. Some dependencies required to be installed in the service can't be supported.

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

 

Best Regards,

Community Support Team _Charlotte

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

Thanks for the reply. I am using the below packages.

import urllib.request
import json
import os
import ssl
import math
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib.patheffects as path_effects
 
Calling the below url:
url = 'http://------.westeurope.azurecontainer.io/----'
 
Is the issue because of any of the above package not supported or because of the network issue?
 
Thanks
rais

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.