Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi,
When trying to use python code in power bi and running the script i get the following error message. I have already checked that matplotlib is installed (in programe files) and checked my python version (3.8.5) so i'm not sure how to fix this. Any help appreciated!
Feedback Type:
Frown (Error)
Error Message:
Python script error.
<pi>Traceback (most recent call last):
File "PythonScriptWrapper.PY", line 2, in <module>
import os, uuid, matplotlib
File "C:\PROGRAM FILES\ANACONDA\lib\site-packages\matplotlib\__init__.py", line 174, in <module>
_check_versions()
File "C:\PROGRAM FILES\ANACONDA\lib\site-packages\matplotlib\__init__.py", line 159, in _check_versions
from . import ft2font
ImportError: DLL load failed while importing ft2font: The specified module could not be found.
</pi>
Stack Trace:
Host:Microsoft.PowerBI.Scripting.Python.Exceptions.PythonScriptRuntimeException
Traceback (most recent call last):
File "PythonScriptWrapper.PY", line 2, in <module>
import os, uuid, matplotlib
File "C:\PROGRAM FILES\ANACONDA\lib\site-packages\matplotlib\__init__.py", line 174, in <module>
_check_versions()
File "C:\PROGRAM FILES\ANACONDA\lib\site-packages\matplotlib\__init__.py", line 159, in _check_versions
from . import ft2font
ImportError: DLL load failed while importing ft2font: The specified module could not be found.
Have you reinstalled the ft2font module?
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 35 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 132 | |
| 90 | |
| 78 | |
| 66 | |
| 65 |