Forum Discussion
Unable to load required dependencies
I am trying to publish a report to the Power BI service which contains data generated from a Python script. It uses xlrd, pandas, datetime and numpy in the script. I am able to run my script perfectly on my Python IDE and on the Power BI desktop, but whenever I try to refresh the dataset in the Power BI service, I get the following error. It says it is trying to find the numpy file in my Anaconda library, which is not where it should be looking. It should be looking in the "Python38" library, where all the other modules have been downloaded to using the pip command line command.
4 Replies
- GilbertQ
Super User
Hi there
Can you confirm that the following packages are the ones in your PBIX from the list below?
https://powerbi.microsoft.com/en-us/blog/python-visualizations-in-power-bi-service/
If it is not in this list then it is not currently supported in the Power BI Service.- AnonymousNot applicable
Yes, I am trying to use "numpy" and it is included in that list.
- v-easonf-msft
Community Support
Hi , Anonymous
If the problem is still not solved ,it is suggest to open a ticket here for better advice.
https://powerbi.microsoft.com/en-us/support/
Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- v-easonf-msft
Community Support
Hi , Anonymous
Please check whether or not you have multiple versions of Python installed.
And It is suggest to install python without anaconda environment.
If help refer to related articles and post
https://community.powerbi.com/t5/Issues/Microsoft-PowerBI-Scripting-Python-Exceptions/idi-p/851149
Best Regards,
Community Support Team _ Eason