GitHub user dosubot[bot] added a comment to the discussion: Superset Dev Image 
Not Exposing ECharts via API + Issues Connecting to Trino in Superset 5.0

<!-- Greeting -->
Hi @Thustepsforward! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping 
the superset team.

<!-- Answer -->
This is expected behavior with the Superset dev Docker image: when running in 
dev mode, the backend API does not expose modern ECharts chart types—only 
legacy ones—because the frontend build is skipped and ECharts exist only in the 
frontend registry, not the backend. There is currently no backend API that 
exposes the frontend chart registry, so programmatic chart creation via the API 
is limited to legacy chart types in this setup. See [this 
explanation](https://github.com/apache/superset/pull/30021) for details.

For connecting to Trino in Superset 5.0.0, you need to install the 
sqlalchemy-trino driver in the Python virtual environment used by Superset, 
which is located at `/app/.venv`. Running pip install outside this environment 
(e.g., using the system pip) will not work. Instead, run `/app/.venv/bin/pip 
install sqlalchemy-trino` inside the container, or use `uv pip install 
sqlalchemy-trino`. For persistent installs, extend the Superset image with a 
Dockerfile that runs the correct pip install command, or override the container 
command in docker-compose to install the driver before starting Superset. More 
details and examples are available 
[here](https://github.com/apache/superset/issues/33691#issuecomment-2940584591) 
and [here](https://github.com/apache/superset/issues/34557).

Once installed in the correct environment, Superset will recognize the Trino 
driver and it should appear as an option in the UI, unless it is excluded by 
the backend denylist configuration.


<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*

---
<sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/5997cf15-3d8c-4aa1-9e15-9b1686eebbfe?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/5997cf15-3d8c-4aa1-9e15-9b1686eebbfe?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/5997cf15-3d8c-4aa1-9e15-9b1686eebbfe?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/5997cf15-3d8c-4aa1-9e15-9b1686eebbfe?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/5997cf15-3d8c-4aa1-9e15-9b1686eebbfe?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/5997cf15-3d8c-4aa1-9e15-9b1686eebbfe?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/5997cf15-3d8c-4aa1-9e15-9b1686eebbfe?feedback_type=other)</sup>

[![Chat with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&nbsp;[![Open
 in 
Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=This%20is%20expected%20behavior%20with%20the%20Superset%20dev%20Docker%20image%3A%20when%20running%20in%20dev%20mode%2C%20the%20backend%20API%20does%20not%20expose%20modern%20ECharts%20chart%20types%E2%80%94only%20legacy%20ones%E2%80%94because%20the%20frontend%20build%20is%20skipped%20and%20ECharts%20exist%20only%20in%20the%20frontend%20registry%2C%20not%20the%20backend.%20There%20is%20currently%20no%20backend%20API%20that%20exposes%20the%20frontend%20chart%20registry%2C%20so%20programmatic%20chart%20creation%20via%20the%20API%20is%20limited%20to%20legacy%20chart%20types%20in%20this%20setup.%20See%20%5Bthis%20explanation%5D%28https%3A//github.com/apache/superset/pull/30021%29%20for%20details.%0A%0AFor%20connecting%20to%20Trino%20in%20Superset%205.0.0%
 
2C%20you%20need%20to%20install%20the%20sqlalchemy-trino%20driver%20in%20the%20Python%20virtual%20environment%20used%20by%20Superset%2C%20which%20is%20located%20at%20%60/app/.venv%60.%20Running%20pip%20install%20outside%20this%20environment%20%28e.g.%2C%20using%20the%20system%20pip%29%20will%20not%20work.%20Instead%2C%20run%20%60/app/.venv/bin/pip%20install%20sqlalchemy-trino%60%20inside%20the%20container%2C%20or%20use%20%60uv%20pip%20install%20sqlalchemy-trino%60.%20For%20persistent%20installs%2C%20extend%20the%20Superset%20image%20with%20a%20Dockerfile%20that%20runs%20the%20correct%20pip%20install%20command%2C%20or%20override%20the%20container%20command%20in%20docker-compose%20to%20install%20the%20driver%20before%20starting%20Superset.%20More%20details%20and%20examples%20are%20available%20%5Bhere%5D%28https%3A//github.com/apache/superset/issues/33691%23issuecomment-2940584591%29%20and%20%5Bhere%5D%28https%3A//github.com/apache/superset/issues/34557%29.%0A%0AOnce%20installed%20in%20
 
the%20correct%20environment%2C%20Superset%20will%20recognize%20the%20Trino%20driver%20and%20it%20should%20appear%20as%20an%20option%20in%20the%20UI%2C%20unless%20it%20is%20excluded%20by%20the%20backend%20denylist%20configuration.)&nbsp;[![Join
 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share
 on 
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/36434)

GitHub link: 
https://github.com/apache/superset/discussions/36434#discussioncomment-15165739

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to