Forum Discussion
Errow when scheduling refresh for Python script in Power BI
Hi Anonymous ,
Which version of Python your Anaconda environment is using? Try to create a new conda env with Python.
Then pip installing relevant packages:
conda activate py
py -m pip install matplotlib
py -m pip install pandas
After finishing it, you need to point Power BI Desktop to the new env following steps :File -> Options and Settings -> Options -> Python Scripting. Then add the Path to your new Env, looks like: "C:\ProgramData\Anaconda3\envs\py".
Reference:
Python visualizations in Power BI Service
Configure scheduled refresh - Power BI
I have also found a similar post, please refer to it to see if it helps you.
ADO.NET error trying to run Python Script in PowerBI
- My PowerBI points to my Python distribution installed in C:\Python (yours most likely points to Anaconda).
If I have misunderstood your meaning, please provide a screenshot with the errors.
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.
- Anonymous4 years agoNot applicable
Hi Polly,
I downloaded the latest Anaconda distribution a few days ago so I suppose I am using Python 3.9.
I have created a new env called powerbi_env and have added the path to the new env as shown below. I added the pandas, matplotlib, numpy packages through the Anaconda navigator (also shown below). It could be run using Power BI desktop without issues. However, when I try to use the personal gateway to automate it, an error pops up as shown in the below first screencap. It seems the gateway cannot connect to the most new environment? Any ideas what I should do?
- Anonymous4 years agoNot applicable
Hi Anonymous ,
Please refer to the topics to see if them help.
Python script source error- ADO.net failed to load
- returned the Gateway version to 3000.37.35.
Power BI python script env change worked for PowerBI Desktop but not work for app.powerbi.com
- adding new environment directory as path variable.
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.- Anonymous4 years agoNot applicable
Hi Polly,
I try the first method and download the oldest version I can find in this page 3000.101.16. But it still pops up the same error message.
For adding new environment directory as path variable. Could you please describe what I should exactly do in the process?