Lucas-87an commented on issue #31510:
URL: https://github.com/apache/superset/issues/31510#issuecomment-2553735429

   1. Lack of the package that provides the uv command:
   The uv command may be related to the uvicorn package, which is a popular 
ASGI server for Python applications such as Apache Superset.
   If uvicorn is not installed correctly in the environment, the system will 
not be able to find the uv command (which would normally be a shortcut to 
uvicorn itself).
   
   in the docker-bootstrap.sh file it worked like this for me
   set -eo pipefail
   
   # Ensure uvicorn is installed
   pip install uvicorn
   
   # Make python interactive
   if [ "$DEV_MODE" == "true" ]; then
       echo "Reinstalling the app in editable mode"
       pip install -e .
   fi
   
   REQUIREMENTS_LOCAL="/app/docker/requirements-local.txt"
   # If Cypress run – overwrite the password for admin and export env variables
   if [ "$CYPRESS_CONFIG" == "true" ]; then
       export SUPERSET_CONFIG=tests.integration_tests.superset_test_config
       export SUPERSET_TESTENV=true
       export 
SUPERSET__SQLALCHEMY_DATABASE_URI=postgresql+psycopg2://superset:superset@db:5432/superset
   fi
   
   if [[ "$DATABASE_DIALECT" == postgres* ]] ; then
       echo "Installing postgres requirements"
       pip install -e .[postgres]
   fi
   
   # Make sure we have dev requirements installed
   if [ -f "${REQUIREMENTS_LOCAL}" ]; then
     echo "Installing local overrides at ${REQUIREMENTS_LOCAL}"
     pip install --no-cache-dir -r "${REQUIREMENTS_LOCAL}"
   else
     echo "Skipping local overrides"
   fi
   
   case "${1}" in
     worker)
       echo "Starting Celery worker..."
       # setting up only 2 workers by default to contain memory usage in dev 
environments
       celery --app=superset.tasks.celery_app:app worker -O fair -l INFO 
--concurrency=${CELERYD_CONCURRENCY:-2}
       ;;
     beat)
       echo "Starting Celery beat..."
       rm -f /tmp/celerybeat.pid
       celery --app=superset.tasks.celery_app:app beat --pidfile 
/tmp/celerybeat.pid -l INFO -s "${SUPERSET_HOME}"/celerybeat-schedule
       ;;
     app)
       echo "Starting web app (using development server)..."
       flask run -p 8088 --with-threads --reload --debugger --host=0.0.0.0
       ;;
     app-gunicorn)
       echo "Starting web app..."
       /usr/bin/run-server.sh
       ;;
     *)
       echo "Unknown Operation!!!"
       ;;
   esac


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