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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
bsztaje
Regular Visitor

Python Script Refresh Error via Service/Personal Gateway - Data source credentials

I cant get my python script data source refresh in power bi service via a personal gateway.

I'm already frustrated looking for a solution by myself. Does anyone know how to solve this? I found similar posts but no solution

 

I am using:

  • A seperate native python 3.10 with all the required packages (C:\Users\Python) (no venv!)
  • Dataset/dataframe loads and works in desktop
  • After publishing to the service I try to configure the datasource credentials but get the following error:

"Failed to update data source credentials: ADO.NET: Python installation not found. A Python installation wasn’t found in this location. Please follow the instructions provided in the “How to install Python” link to install Python. If Python is installed and this message persists, provide the installation path in the dialog."

 

but... I can't edit path here, so where?

 

bsztaje_0-1656068795263.png

 

Other:

bsztaje_1-1656069464780.png

 

bsztaje_2-1656069508362.png

 

bsztaje_3-1656069546818.png

 

bsztaje_4-1656069586123.png

 

 

3 REPLIES 3
hithere422
New Member

did you find solution for this issue? I have the same issue.. resetting laptop, path variable set correctly. uninstalled/re-install python didnt solve the issue. ANy help appreciated

Failed to update data source credentials: ADO.NET: python.exe not found. python.exe was not found in the specified directory. Please make sure you have a complete Python installation.

Anonymous
Not applicable

Hi @bsztaje ,

For the Python scripts to work properly in the Power BI service, all data sources need to be set to public. For more information about privacy settings and their implications, see Privacy Levels.

vpollymsft_0-1656308956819.png

Once you've uploaded the .pbix file to the Power BI service, a couple more steps are necessary to enable data refresh (in the service) and to enable visuals to be updated in the service (the data needs access to Python for visuals to be updated). The additional steps are the following:

  • Enable scheduled refresh for the dataset - to enable scheduled refresh for the workbook that contains your dataset with Python scripts, see Configuring scheduled refresh, which also includes information about Personal Gateway.
  • Install the Personal Gateway - you need a Personal Gateway installed on the machine where the file is located, and where Python is installed; the Power BI service must access that workbook and re-render any updated visuals. You can get more information on how to install and configure Personal Gateway.

More details: Use Python in Power Query Editor 

Configure scheduled refresh 

 

Best Regards

Community Support Team _ Polly

 

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

Hi,

 

I went through all the steps described earlier, but to be sure, I checked the above again and all is like should be - privacy settings to public, personal gateway installed and running on the machine where the file is located, and where Python is installed, but 

 

bsztaje_0-1656437367969.png

 

 

in addition, I left only one python installation (3.8 native / no venv) on the machine where the personal gateway is installed. (previously I had 3 python instances (2.7, 3.8 and 3.10) 

 

and nothing has changed:

bsztaje_1-1656437404942.png

 

Locally no issue with python and executing script as a data source:

 

import pandas as pd
from jira import JIRA

jira = JIRA(options={'server': 'xxx'}, basic_auth=('xxx', 'xxx'))

data = []
for singleIssue in jira.search_issues(jql_str='issuetype = Story AND Team = 1340 AND (status ="Ready for Assignment" or (status = Backlog and substatus = ready )) AND "Acceptance Criteria" IS NOT EMPTY AND description IS NOT EMPTY and "epic link" IS NOT EMPTY AND "Story Points" !=0 AND ("Story Flags" !=Planned OR Labels !=planned) ORDER by Rank DESC'):
data.append([singleIssue.key, singleIssue.fields.summary, singleIssue.fields.status, singleIssue.fields.customfield_10023, singleIssue.fields.customfield_10001, singleIssue.fields.customfield_10014])

StoryReady2Assigment = pd.DataFrame(data, columns=['key', 'summary','status', 'story points', 'team', 'EpicLink'])

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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