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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register 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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.

Top Solution Authors