Forum Discussion

fethiys's avatar
fethiys
Frequent Visitor
6 years ago
Solved

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.

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

2 Replies

  • fethiys's avatar
    fethiys
    Frequent Visitor

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

    • v-yingjl's avatar
      v-yingjl
      Community Support

      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