GitHub user 1yuv added a comment to the discussion: Issue in psycopg2 while 
upgrading from 4.x to 5.0

Hi @dosu, 

Here's my bootstrapScript based on your suggestion:

```yaml
bootstrapScript: |
  #!/bin/bash
  apt update && apt install -y gcc libpq-dev python3-dev pkg-config
  echo "installing required libs"
  /app/.venv/bin/uv pip install psycopg2-binary,authlib
  if [ ! -f ~/bootstrap ]; then echo "Running Superset with uid {{ 
.Values.runAsUser }}" > ~/bootstrap; fi
```

And when I apply this, it fails with following error. 

```
installing required libs
/bin/sh: 4: /app/pythonpath/superset_bootstrap.sh: /app/.venv/bin/uv: not found
Upgrading DB schema...
```

As you can see, looks like it's not able to find the path you suggested. 

Also, I wanted to correct this `These steps are required for all 
production/lean images starting from Superset 4.1.x and above, not just 5.0.0`. 
I was able to upgrade from 4.0.2 to 4.1.2 by direclty installing using pip and 
not using virtual env's pip. 

GitHub link: 
https://github.com/apache/superset/discussions/34109#discussioncomment-13702470

----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: 
notifications-unsubscr...@superset.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org
For additional commands, e-mail: notifications-h...@superset.apache.org

Reply via email to