EMCP commented on issue #20914:
URL: https://github.com/apache/superset/issues/20914#issuecomment-1251176640
I was able to workaround ALL the issues with ApacheSuperset by backing OFF
of 22.04 (python 3.10 is the version in that ubuntu and it's too new for some
of the debpendencies of the project)
So with python 3.8 within Ubuntu 20.04 LTS.. I do the following and all is
working
```
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
juju-log -l "WARNING" "Apt dependencies installed"
status-set maintenance "Apt dependencies installed $(date +"%H:%M")"
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
status-set maintenance "About to pip install apache-superset $(date
+"%H:%M")"
juju-log -l "WARNING" "About to pip install apache-superset"
sudo -u ubuntu pip install apache-superset --no-warn-script-location
status-set maintenance "apache-superset installed, beginning db upgrade
$(date +"%H:%M")"
juju-log -l "WARNING" "apache-superset installed, beginning db upgrade"
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 09876
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]