Forum Discussion
python visual question
- 12 days ago
Hi Developer1128,
I would check the data/model side before assuming this is a Python installation problem.
The error in your screenshot is:
ServiceError_ExecuteSemanticQueryTransformErrorand because you said you have not written any Python code yet, the failure may be happening while Power BI is preparing the dataset for the Python visual.
Microsoft documents that Python visuals can fail if the fields used in the visual come from different tables without a valid relationship between them.
I would test in this order:
- Create a completely new Python visual.
- Add only one simple numeric column from a single table.
- Do not add fields from multiple tables yet.
- Try rendering the visual again.
If that works, then add the remaining fields one at a time.If even a single-column visual fails, then check the Python configuration:
File -> Options and settings -> Options -> Python scriptingand make sure Power BI points to a valid local Python installation.
Microsoft also requires pandas and matplotlib for Python visuals. The setup is documented in the Python scripting guidance.
The Python visual documentation also confirms that model relationships can cause errors before the Python script itself is evaluated.
So I would separate the test into:
single table / single field fails -> check Python installation and packages single field works, adding other fields fails -> check model relationships and field typesSince this happens before you have written any Python code, I would not blame the Titanic dataset itself yet.
AI-assisted drafting: AI was used to help structure and phrase this response. I reviewed and validated the technical content before posting.
Hi Developer1128,
May I check if this issue has been resolved? If not, Please feel free to contact us if you have any further questions.
Thank you