kenyodenes opened a new issue, #32364:
URL: https://github.com/apache/superset/issues/32364

   ### Bug description
   
   During upgrading to new 5.0.0rc1 version is not possible due to No module 
named 'psycopg2'.
   
   Error:
   superset  |   File 
"/app/.venv/lib/python3.10/site-packages/sqlalchemy/dialects/postgresql/psycopg2.py",
 line 811, in dbapi
   superset  |     import psycopg2
   superset  | ModuleNotFoundError: No module named 'psycopg2'
   
   
   docker-compose.yml:                                    
   version: '3.8'
   services:
     superset:
       image: apache/superset:5.0.0rc1
       container_name: superset
       ports:
         - "8088:8088"
       environment:
         - SECRET_KEY=123
         - SUPERSET_CONFIG_PATH=/app/superset_config.py
         - EXTRA_PIP_PACKAGES=psycopg2-binary
       volumes:
         - ./superset_config.py:/app/superset_config.py
       command: >
         sh -c "
           pip install psycopg2-binary &&
           superset db upgrade &&
           superset init &&
           gunicorn -w 2 --timeout 60 -b 0.0.0.0:8088 
'superset.app:create_app()'
         "
       extra_hosts:
         - "host.docker.internal:host-gateway"
   
   I installed the package in my venv and also outside (on system level) but 
error still present.
   
   ### Screenshots/recordings
   
   _No response_
   
   ### Superset version
   
   master / latest-dev
   
   ### Python version
   
   3.11
   
   ### Node version
   
   16
   
   ### Browser
   
   Not applicable
   
   ### Additional context
   
   _No response_
   
   ### Checklist
   
   - [x] I have searched Superset docs and Slack and didn't find a solution to 
my problem.
   - [x] I have searched the GitHub issue tracker and didn't find a similar bug 
report.
   - [x] I have checked Superset's logs for errors and if I found a relevant 
Python stacktrace, I included it here as text in the "additional context" 
section.


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