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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
AmyMisa
Frequent Visitor

Python Personal Gateway Credential Error

Hello, 

 

I'm hoping someone can support me, as I have seen a few people on various forum posts discuss the same issue (however unfortunately without any solutions). Such posts as: https://community.powerbi.com/t5/Issues/Python-personal-gateway-credentials/idi-p/952729/page/2#comm...

 

As far as I can tell, everything is set up correctly, yet Python doesn't want to connect. The error suggests I don't have it installed, which I do and the Python script runs fine in PBI Desktop. The error then suggests I should provide the file path but as you can see it is greyed out - Has anyone struggled with this before and managed to fix it?

 

image (14).pngimage (13).pngimage (12).png

 

 

2 REPLIES 2
Anonymous
Not applicable

Hi  @AmyMisa ,

 

According to research, a similar issue has been reported internally,(ICM#: 315994430).

 

As suggested by ICM, you can try:

Looks into the PythonSettings.xml under C:\Users\<user_name>\AppData\Local\PowerBIScripting to determine the Python process location. The PythonHomeDirectoryOverride can be updated to point to the correct Python install folder :

<?xml version="1.0" encoding="utf-8"?>
<PythonSettings xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <PythonHomeDirectoryOverride>C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\SHARED\PYTHON37_64</PythonHomeDirectoryOverride>
  <PythonOutputDirectoryOverride />
  <PythonEditorPathOverride />
  <PythonEditorTypeOverride>None</PythonEditorTypeOverride>
</PythonSettings>

Note, it's possible to run the gateway as a different user. Make sure the settings file is updated in the app data folder for that user.

 

Best Regards,

Liu Yang

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

Hi @Anonymous Thank you! 🙂  I was really hoping this would be it!! Unfortunately, the location in that file is the true location of my python install so there was nothing for me to change /: 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.