EMCP commented on issue #20723:
URL: https://github.com/apache/superset/issues/20723#issuecomment-1264349589

   @trimat1 , I couldn't get 22.04 to work whatsoever.. python 3.10 has some 
breaking changes in the dependencies superset uses.. 
   
   I backed down to 20.04 and did this routine to get setup, remove the `sudo 
-u ubuntu` .. I use Juju and that runs as Root by default which I do not want 
for Superset
   
   ```
   apt-get update
   apt-get -y upgrade
   apt-get -y install build-essential libssl-dev libffi-dev python3-dev 
python3-pip libsasl2-dev libldap2-dev default-libmysqlclient-dev libpq-dev 
python-is-python3
   
   pip install --upgrade pip
   sudo -u ubuntu pip install --upgrade pip --no-warn-script-location
   sudo -u ubuntu pip install werkzeug==2.0.3 --no-warn-script-location
   sudo -u ubuntu pip install flask==2.1.3 --no-warn-script-location
   sudo -u ubuntu pip install wtforms==2.3.0 --no-warn-script-location
   sudo -u ubuntu pip install --upgrade pyopenssl --no-warn-script-location
   sudo -u ubuntu pip install psycopg2-binary pillow gunicorn gevent 
--no-warn-script-location
   
   sudo -u ubuntu pip install sqlalchemy-trino pyhive --no-warn-script-location
   sudo -u ubuntu pip install apache-superset --no-warn-script-location
   
   sudo touch /etc/profile.d/superset.sh
   echo -e 'export FLASK_APP=superset' >> /etc/profile.d/superset.sh
     
   export FLASK_APP=superset
   sudo -u ubuntu FLASK_APP=superset /home/ubuntu/.local/bin/superset db upgrade
   sudo -u ubuntu FLASK_APP=superset /home/ubuntu/.local/bin/superset fab 
create-admin --username admin --firstname admin --lastname user --email 
[email protected] --password YOURFAVORITEPASSWORDHERE 
   
   install_example_data="$(config-get install_example_data)"
   if $install_example_data; then
     sudo -u ubuntu FLASK_APP=superset /home/ubuntu/.local/bin/superset 
load_examples
   else
     juju-log -l "WARNING" "Forgoing superset load_examples"
     status-set maintenance "Forgoing superset load_examples $(date +"%H:%M")"
   fi
   sudo -u ubuntu FLASK_APP=superset /home/ubuntu/.local/bin/superset init
   
   ```


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