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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
henryco88
Helper II
Helper II

Error gateway python in power bi service

Hi,

I saved a python script in power bi desktop which reads a table from sql server and creates a pandas dataframe. Everything works correctly. When I publish the report on power bi service, I have an error with the python gateway and therefore I don't see the data:

Extension {"extensionDataSourceKind": "Python", "extensionDataSourcePath": "Python"}

gateway.PNG

I installed "On-premises data gateway (personal mode)" in my pc but I still see the error in power bi service. 

How can I solve it?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @henryco88,

AFAIK, the current python script data source only works on gateway personal mode, you cant manage it in the on-premise gateway. 

If you want to enable the refresh on the power bi service side, you need to configure all the data sources used in your report.
I'd like to suggest you switch to a personal gateway if other types of data source supported in this gateway.(live mode data sources do not work on personal mode)

Use personal gateways in Power BI 

Regards,

Xiaoxin Sheng

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi Guys, 

 

I have the exact same issue now . My question is I already have an enterprise gateway installed and if i install personal gateway for the python to work will I have issues ?

 

Please help!!

 

vito123_0-1691566812766.png

 

Hi I'm having a similar issue as well, did you find a solution?

Anonymous
Not applicable

Hi @henryco88,

AFAIK, the current python script data source only works on gateway personal mode, you cant manage it in the on-premise gateway. 

If you want to enable the refresh on the power bi service side, you need to configure all the data sources used in your report.
I'd like to suggest you switch to a personal gateway if other types of data source supported in this gateway.(live mode data sources do not work on personal mode)

Use personal gateways in Power BI 

Regards,

Xiaoxin Sheng

I have the same issue and have the on-premises data gateway (Personal mode).

Any idea why this might be the case???

GilbertQ
Super User
Super User

Hi there

Can you confirm that the version of Python that you are using is supported by the Power BI Gateway?

Here are more details to check: https://powerbi.microsoft.com/en-us/blog/python-visualizations-in-power-bi-service/#:~:text=Python%2....

https://sqlitybi.com/how-to-auto-schedule-data-export-from-power-with-pythn/




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

Top Solution Authors
Top Kudoed Authors