Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hi,
i'm trying to integrate my scritp python in power BI, an easy one just to start, but i'm encountering difficulties
having this setting in powerbi
i'm trying to connect python 3.8 but it seems not able to load some libraries: when I run this basic script
I always have this message back with this error which i'm not able to solve
"Stack Trace:
Microsoft.PowerBI.ExploreServiceCommon.ScriptHandlerException: Python script error.
File "PythonScriptWrapper.PY", line 20
pip install matplotlib
^
SyntaxError: invalid syntax"
Thanks for any help on this,
regards
G
Solved! Go to Solution.
Hi,
no actually this wasn't the solution, i've been able to find a solution by myself.
I had to run python (not an IDE) and load the libraries
Gianluca
Hi,
no actually this wasn't the solution, i've been able to find a solution by myself.
I had to run python (not an IDE) and load the libraries
Gianluca
Hi @Anonymous ,
Please have a check.
If necessary, specify your local Python installation path in Detected Python home directories.
In the above image, the Python's installation local path is C:\Python. Make sure the path is for the local Python installation you want Power BI Desktop to use.
When preparing and running a Python script in Power BI Desktop, there are a few limitations:
Run Python Scripts in Power BI Desktop - Power BI | Microsoft Learn
I hvae also found a similar post, please refer to it to see if it helps you.
Solved: Power BI Python ADO.NET: Python Script Error - Microsoft Power BI Community
Solved: Python integration error - Microsoft Power BI Community
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 51 | |
| 37 | |
| 35 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 70 | |
| 65 | |
| 39 | |
| 33 | |
| 23 |