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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
fethiys
Frequent Visitor

Power BI python script env change worked for PowerBI Desktop but not work for app.powerbi.com

Hi, I used python script as data source. At first, it gave errors, i researched and find that it is beacuse of python version. So I loaded older version of python then set the new directory as home directory and it worked on my local.

After that, I uploaded my report to app.powerbi.com, then I wanted to schedule refresh. However, during editing credentials it gives error because of it does not use my new home directory, it still tries to run the code on the previous home directory and gives the same error when I get before setting new environment. 

 

the error starts with "Failed to update data source credentials: ADO.NET: Python script error. C:\Users\Ertu\anaconda3\lib\site-packages\numpy\__init__.py:140:" . Address mentioned in the error is old home directory. 

 

How can I solve this? 

 

Thank you.

1 ACCEPTED SOLUTION
fethiys
Frequent Visitor

Hi again, I have solved problem by adding new environment directory as path variable. 

View solution in original post

2 REPLIES 2
fethiys
Frequent Visitor

Hi again, I have solved problem by adding new environment directory as path variable. 

Hi @fethiys ,

Glad to hear the issue is solved. You can accept your reply as solution, that way, other community members could easily find the answer when they get same issues.


Best Regards,
Yingjie Li

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors