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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
norazmanz
New Member

Python script error

Hi all

 

I am trying to run a simple Python Script (tested in python environment) in PBI desktop Get Data:

import pandas as pd
import matplotlib as plt

df = pd.DataFrame({'Name':['Joe','Susan'],'Age':[24,25]})
print(df)

 

But get the following error:

Unable to connect

Details: "ADO.NET: A problem occurred while processing your Python script.
Here are the technical details: Access is denied"

 

I installed python in WindowApp folder which is restriced except for company admin. Wondering whether this is the issue? Anyone faced similar error and have a workaround? Aprpeciate it, thanks

1 ACCEPTED SOLUTION

Update: I have uninstalled and reinstalled Python in a new folder (which does not have restricted access) and also enable saving installation path in environment. Now it works!

View solution in original post

3 REPLIES 3
norazmanz
New Member

hi @Gengar 

 

Thanks for replying. I would need to reinstall which is quite a pain since I have downloaded loads of libraries. Will update here after doing so. 

Gengar
Resolver I
Resolver I

Hi @norazmanz ,

 

I installed python in WindowApp folder which is restriced except for company admin

According to my knowledge, It has a high probability of causing this problem.

Please try testing with an account that has access to this folder or move it to a folder that you have access to.

 

Hope this could help you!

Gengar

Update: I have uninstalled and reinstalled Python in a new folder (which does not have restricted access) and also enable saving installation path in environment. Now it works!

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Kudoed Authors