GitHub user dosubot[bot] added a comment to the discussion: uv issues

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

<!-- Answer -->
Superset Docker images (starting with v5.0.0 and the current `latest` tag) now 
use `uv pip` instead of `pip install` for Python dependencies. This change is 
meant to speed up and simplify dependency management, but it can cause issues 
if your scripts or workflows expect `pip` or if you end up with an image that 
doesn't have `uv` installed yet. Discrepancies like this can happen due to 
image caching, mirror delays, or if a build step that installs `uv` fails or is 
skipped 
([details](https://github.com/apache/superset/blob/2e9939baf253e607a54722b1996baaf625e72133/Dockerfile)).

If you need to support both old and new images, update your install scripts to 
check for `uv` and fall back to `pip` if it's missing:

```bash
if command -v uv > /dev/null 2>&1; then
  uv pip install --no-cache-dir -r "${REQUIREMENTS_LOCAL}"
else
  pip install --no-cache-dir -r "${REQUIREMENTS_LOCAL}"
fi
```
([example](https://github.com/apache/superset/issues/32733))

If you’re building your own images or using custom scripts, make sure the base 
image is fresh and includes the `uv` install step. For older images (4.1.x or 
earlier), stick with `pip install` ([migration 
notes](https://github.com/apache/superset/pull/33872)). If you’re running into 
permission issues with `uv pip`, try running the install as root in your 
Dockerfile ([workaround](https://github.com/apache/superset/issues/33241)).

If you’re mounting local scripts into the container, make sure they match the 
version of the image you’re running to avoid mismatches between expected and 
available tools ([compatibility 
advice](https://github.com/apache/superset/issues/31510)).


<!-- 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/c1975014-c156-43c9-a6c4-9ccb93369548?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/c1975014-c156-43c9-a6c4-9ccb93369548?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/c1975014-c156-43c9-a6c4-9ccb93369548?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/c1975014-c156-43c9-a6c4-9ccb93369548?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/c1975014-c156-43c9-a6c4-9ccb93369548?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/c1975014-c156-43c9-a6c4-9ccb93369548?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/c1975014-c156-43c9-a6c4-9ccb93369548?feedback_type=other)</sup>&nbsp;&nbsp;[![Join
 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Sh
 are 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/33973)

GitHub link: 
https://github.com/apache/superset/discussions/33973#discussioncomment-13614212

----
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