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
creis12
Frequent Visitor

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.

 

pbi_error.PNG

4 REPLIES 4
v-easonf-msft
Community Support
Community Support

Hi , @creis12 

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

GilbertQ
Super User
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.




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Yes, I am trying to use "numpy" and it is included in that list.

Hi , @creis12 

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.

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