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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
JessCastellum
New Member

Cannot use a Python script to get a database.

Hello!

 

I've been trying to get data through a Python script, but I keep getting this error:

Details: "ADO.NET: Þγτћŏл §сґĩρţ ęѓгŏř.
Traceback (most recent call last):
  File "PythonScriptWrapper.PY", line 3, in <module>
    matplotlib.use('Agg')
  File "C:\Users\ACER\Anaconda3\envs\soda_covid\lib\site-packages\matplotlib\cbook\deprecation.py", line 296, in wrapper
    return func(*args, **kwargs)
  File "C:\Users\ACER\Anaconda3\envs\soda_covid\lib\site-packages\matplotlib\cbook\deprecation.py", line 358, in wrapper
    return func(*args, **kwargs)
  File "C:\Users\ACER\Anaconda3\envs\soda_covid\lib\site-packages\matplotlib\__init__.py", line 1280, in use
    from matplotlib import pyplot as plt
  File "C:\Users\ACER\Anaconda3\envs\soda_covid\lib\site-packages\matplotlib\pyplot.py", line 2282, in <module>
    switch_backend(rcParams["backend"])
  File "C:\Users\ACER\Anaconda3\envs\soda_covid\lib\site-packages\matplotlib\pyplot.py", line 221, in switch_backend
    backend_mod = importlib.import_module(backend_name)
  File "C:\Users\ACER\Anaconda3\envs\soda_covid\lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "C:\Users\ACER\Anaconda3\envs\soda_covid\lib\site-packages\matplotlib\backends\backend_agg.py", line 50, in <module>
    from PIL import Image
  File "C:\Users\ACER\Anaconda3\envs\soda_covid\lib\site-packages\PIL\Image.py", line 94, in <module>
    from . import _imaging as core
ImportError: DLL load failed: No se puede encontrar el módulo especificado.

 I tried to fix the version of the packages in this site https://docs.microsoft.com/en-us/power-bi/connect-data/service-python-packages-support, but I don't know what else to try. 

 

Thank you.

3 REPLIES 3
v-diye-msft
Community Support
Community Support

Hi @JessCastellum 

 

If the above posts help, please kindly mark it as a answer to help others find it more quickly. thanks!

If not, please kindly elaborate more.

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
amitchandak
Super User
Super User

@JessCastellum , this a problem with database connector. Make sure the database connector is correctly installed.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Greg_Deckler
Community Champion
Community Champion

@JessCastellum - I would triple check that your modules are loaded up into the right directory. It looks like it is not finding the required/specified modules like matplotlib.

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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