helong001 commented on issue #33691:
URL: https://github.com/apache/superset/issues/33691#issuecomment-2940573088

   > Hi [@helong001](https://github.com/helong001)! I'm 
[Dosu](https://go.dosu.dev/dosubot) and I’m helping the superset team.
   > 
   > Your issue is likely caused by two factors: the use of the uv command and 
the way Superset now manages its Python environment in recent versions.
   > 
   > First, the uv command is not present in the official Superset Docker 
images by default, which means any script using uv pip will fail silently or 
log an error that may not be visible unless you check the container logs 
directly. This is a known issue for users trying to install additional Python 
packages at runtime in containers built from the official image. The 
recommended workaround is to use the pip executable from the virtual 
environment Superset uses, which is located at /app/.venv/bin/pip in recent 
images. For example:
   > 
   > bootstrapScript: |
   >   #!/bin/bash
   >   /app/.venv/bin/pip install .[trino] &&
   >   if [ ! -f ~/bootstrap ]; then
   >     echo "Running Superset with uid {{ .Values.runAsUser }}" > ~/bootstrap
   >   fi
   > This approach is confirmed to work for installing additional drivers and 
dependencies in the current containerized setup, as Superset now runs inside a 
virtual environment at /app/.venv, and packages installed with the system pip 
will not be visible to Superset itself. If you need to ensure pip is available, 
you can also run /app/.venv/bin/python -m ensurepip before the install step if 
you encounter pip not found errors. 
[Reference](https://github.com/apache/superset/issues/32186)
   > 
   > Second, the bootstrapScript is executed at pod startup as part of the 
default Helm Chart configuration. Unless you have overridden the container 
command or removed the script mount, it should always run. If ~/bootstrap is 
missing, it strongly suggests the script failed (likely due to the uv command 
error) and exited before reaching that line. 
[Reference](https://github.com/apache/superset/blob/20519158d2ab6325f7564b16615a99fe0ebe7a38/helm/superset/values.yaml)
   > 
   > After making this change, redeploy your Helm release and check the logs of 
the Superset pods for any errors during startup. Once the Trino connector is 
installed in the correct environment, it should appear in the "+ Data" UI 
dialog.
   > 
   > If you continue to have issues, ensure your container user (runAsUser) has 
sufficient permissions to install Python packages and write to the home 
directory, and that you have not overridden the default container command or 
volume mounts in your Helm values.
   > 
   > Let me know if you need more details or troubleshooting steps.
   > 
   > _To reply, just mention my name [@dosu](https://go.dosu.dev/dosubot)._
   > 
   > How did I do? 
[Good](https://app.dosu.dev/response-feedback/14be77c4-b6af-4542-994e-cb08ce000cdc?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/14be77c4-b6af-4542-994e-cb08ce000cdc?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/14be77c4-b6af-4542-994e-cb08ce000cdc?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/14be77c4-b6af-4542-994e-cb08ce000cdc?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/14be77c4-b6af-4542-994e-cb08ce000cdc?feedback_type=hallucination)
 | [Report 
šŸ›](https://app.dosu.dev/response-feedback/14be77c4-b6af-4542-994e-cb08ce000cdc?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/14be77c4-b6af-4542-994e-cb08ce000cdc?feedback_type=other)
Ā Ā [![Join 
Discord](https://camo.githubusercontent.com/d562c2df5e4567ea41d37f1d91a4da0839d8341037045b103b2da268998de17f/68747470733a2f2f696d672e736869656c64
 
732e696f2f62616467652f6a6f696e2d3538363546323f6c6f676f3d646973636f7264266c6f676f436f6c6f723d7768697465266c6162656c3d)](https://go.dosu.dev/discord-bot)
Ā [![Share on 
X](https://camo.githubusercontent.com/4649f705e2396d6f328dbc8e800a0509c9c17b3b20253b36706c393df124b93d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f582d73686172652d626c61636b)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/33691)
   
   @dosu Despite following your recommended method to install the Trino 
connector, it still does not appear as a data source option in the Superset UI.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to