dosubot[bot] commented on issue #35831: URL: https://github.com/apache/superset/issues/35831#issuecomment-3443495703
<!-- Answer --> This error happens because shillelagh tries to import pip at runtime, but pip is not guaranteed to be present in environments where Superset is installed using uv, especially with lean Docker images. Superset and shillelagh do not declare pip as a dependency, and there is no code in Superset that expects pip to be present for shillelagh to work. This is similar to other recent issues with missing Python modules in Superset's lean/uv-based setups, where users must manually install any runtime dependencies that are not included by default[^1][^2][^3]. A workaround is to manually install pip in your environment (for example, with uv pip install pip). Ideally, shillelagh should declare pip as a dependency if it requires it at runtime, but currently, this is not the case. This pattern is common with other optional dependencies in Superset as well. [^1]: https://github.com/apache/superset/issues/31600 [^2]: https://github.com/apache/superset/issues/32217 [^3]: https://github.com/apache/superset/issues/34839 <!-- 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/3861cb97-2e29-4298-91a8-2e9d62c49f84?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/3861cb97-2e29-4298-91a8-2e9d62c49f84?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/3861cb97-2e29-4298-91a8-2e9d62c49f84?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/3861cb97-2e29-4298-91a8-2e9d62c49f84?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/3861cb97-2e29-4298-91a8-2e9d62c49f84?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/3861cb97-2e29-4298-91a8-2e9d62c49f84?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/3861cb97-2e29-4298-91a8-2e9d62c49f84?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=githu b) [](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/35831) -- 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]
