GitHub user GajendraAchar created a discussion: Superset 5.x Upgradation fails to start
I’m upgrading Apache Superset from 4.1.3 to 5.0.0 using Docker, and I’m running into a config import error when the container starts. Error Traceback: `Failed to import config for SUPERSET_CONFIG_PATH=/app/superset_config.py Traceback (most recent call last): File "/app/.venv/lib/python3.10/site-packages/superset/config.py", line 1941, in <module> spec.loader.exec_module(override_conf) File "<frozen importlib._bootstrap_external>", line 883, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "/app/superset_config.py", line 41, in <module> import pkg_resources ModuleNotFoundError: No module named 'pkg_resources' ` What I’ve tried: 1. Set PYTHONPATH and SUPERSET_CONFIG_PATH as per [Superset config docs] https://superset.apache.org/docs/configuration/configuring-superset/). 2. Installed dependencies in command: > pip install --no-cache-dir --upgrade pip setuptools > pip install --no-cache-dir prophet > pip install --no-cache-dir authlib > pip install --no-cache-dir psycopg2-binary > pip install --no-cache-dir flask_cors 3. Verified my config mounts correctly to /app/superset_config.py. I have attached my docker-compose for the reference, ``` version: '3.7' networks: contabo-swarm: external: true driver: overlay attachable: true services: superset-new: image: apache/superset:5.0.0 user: root container_name: superset-5 environment: SUPERSET_SECRET_KEY: CS5d0wf69nGigVQ24 SERVER_WORKER_AMOUNT: 12 SERVER_THREADS_AMOUNT: 24 PYTHONPATH: /app/pythonpath SUPERSET_CONFIG_PATH: /app/superset_config.py command: - sh - -c - | pip install --no-cache-dir --upgrade pip setuptools && pip install --no-cache-dir prophet && pip install --no-cache-dir authlib && pip install --no-cache-dir psycopg2-binary && pip install --no-cache-dir flask_cors && superset db upgrade && superset init && superset run -h 0.0.0.0 -p 8088 --with-threads --reload networks: - contabo-swarm volumes: - ./superset_data:/app/superset_home - ./superset_config/superset_config.py:/app/superset_config.py ``` Can someone please help me resolve this issue? GitHub link: https://github.com/apache/superset/discussions/34635 ---- 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