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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Access Error while running Python Script

Hi there, 

I was trying to connect python scripts with power BI but unfortuntly I got the below error. I have done all pre requiseite from installing python to upgading the libaries (pandas and matplotlib). 

 

Approciatre your support 

 

Capture.PNG

 

 

 
 
7 REPLIES 7
BurgerGenocide
Regular Visitor

I'm still having the same issue 😞 are there no solution for this problem?

Anonymous
Not applicable

Hi @Anonymous,

It seems like a permission issue, did these code works if you execute them out of power bi desktop? Any special processing steps or functions you invoked in these python scripts? (e.g. access to a specific path and edit its contents, download resource and execute them...)

In addition, what account are you test on this device? Have you tried to test with the admin account?

Regards,

Xiaoxin Sheng

nandukrishnavs
Community Champion
Community Champion

@Anonymous 

 

From the Data Source Settings dialog, select the data source(s) and then select Edit Permissions... and ensure that the Privacy Level is set to Public.

python-in-query-editor-10



Did I answer your question? Mark my post as a solution!
Appreciate with a kudos
🙂


Regards,
Nandu Krishna

Anonymous
Not applicable

I made it public for global and current file permission. however, the error still appearing. 

 

Capture.PNG

@Anonymous Move that file into desktop and try the steps again.


Regards,
Nandu Krishna

Anonymous
Not applicable

did this but unforturntly didnt work. 

@Anonymous 

Are you able to access the file using other Power BI connector? Also, are you able to access the file using python script (not via Power BI)?


Regards,
Nandu Krishna

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.