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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Issues reading Python code

Hi there,

 

I am trying to connect Power BI to a Python dataset using this code in Get Data

import seaborn as sns
tips = sns.load_dataset("tips")

 

However, I'm getting this error.  

Details: "ADO.NET: Python script error.
<pi>Traceback (most recent call last):
File "PythonScriptWrapper.PY", line 4, in <module>
import matplotlib.pyplot
File "C:\Users\name\anaconda3\envs\py36\lib\site-packages\matplotlib\pyplot.py", line 36, in <module>
import matplotlib.colorbar
File "C:\Users\name\anaconda3\envs\py36\lib\site-packages\matplotlib\colorbar.py", line 44, in <module>
import matplotlib.contour as contour
File "C:\Users\name\anaconda3\envs\py36\lib\site-packages\matplotlib\contour.py", line 17, in <module>
import matplotlib.text as text
File "C:\Users\name\anaconda3\envs\py36\lib\site-packages\matplotlib\text.py", line 16, in <module>
from .textpath import TextPath # Unused, but imported by others.
File "C:\Users\name\anaconda3\envs\py36\lib\site-packages\matplotlib\textpath.py", line 11, in <module>
from matplotlib.mathtext import MathTextParser
File "C:\Users\name\anaconda3\envs\py36\lib\site-packages\matplotlib\mathtext.py", line 27, in <module>
from PIL import Image
File "C:\Users\name\anaconda3\envs\py36\lib\site-packages\PIL\Image.py", line 94, in <module>
from . import _imaging as core
ImportError: DLL load failed: The specified module could not be found.
</pi>"


Any suggestions to solve this is appreciated!

Status: Investigating
Comments
Anonymous
Not applicable

Hi @glowglowglow ,

 

Please check this.

Learn which Python packages are supported - Power BI | Microsoft Learn

 

vcaitlynmstf_0-1672041210837.png

 

 

Best regards.
Community Support Team_ Caitlyn