GitHub user dosubot[bot] added a comment to the discussion: Issue in psycopg2
while upgrading from 4.x to 5.0
<!-- Answer -->
The reason `/app/.venv/bin/uv` isn't found is that in Superset 5.0.0, `uv` is
installed system-wide, not inside the virtual environment. You should just call
`uv` directly, not with a path. So your bootstrapScript should look like:
```yaml
bootstrapScript: |
#!/bin/bash
apt update && apt install -y gcc libpq-dev python3-dev pkg-config
echo "installing required libs"
uv pip install psycopg2-binary authlib
if [ ! -f ~/bootstrap ]; then echo "Running Superset with uid {{
.Values.runAsUser }}" > ~/bootstrap; fi
```
This change happened after 4.1.x—Superset 5.0.0 and above use `uv` instead of
`pip` for Python package management, and `uv` is available on the system path,
not in `.venv` [citation](https://github.com/apache/superset/issues/32364)
[citation](https://github.com/apache/superset/pull/33872). That's why `pip`
worked for you in 4.1.2, but not in 5.0.0.
Let me know if you still see issues after this change!
<!-- 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/165f0416-3c9a-4543-8bf8-dbccaf9a1915?feedback_type=great_response)
|
[Irrelevant](https://app.dosu.dev/response-feedback/165f0416-3c9a-4543-8bf8-dbccaf9a1915?feedback_type=irrelevant_answer)
|
[Incorrect](https://app.dosu.dev/response-feedback/165f0416-3c9a-4543-8bf8-dbccaf9a1915?feedback_type=incorrect_sources)
|
[Verbose](https://app.dosu.dev/response-feedback/165f0416-3c9a-4543-8bf8-dbccaf9a1915?feedback_type=too_verbose)
|
[Hallucination](https://app.dosu.dev/response-feedback/165f0416-3c9a-4543-8bf8-dbccaf9a1915?feedback_type=hallucination)
| [Report
🐛](https://app.dosu.dev/response-feedback/165f0416-3c9a-4543-8bf8-dbccaf9a1915?feedback_type=bug_report)
|
[Other](https://app.dosu.dev/response-feedback/165f0416-3c9a-4543-8bf8-dbccaf9a1915?feedback_type=other)</sup> [](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/discussions/34109)
GitHub link:
https://github.com/apache/superset/discussions/34109#discussioncomment-13702478
----
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]