trimat1 commented on issue #20723: URL: https://github.com/apache/superset/issues/20723#issuecomment-1264351690
> @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 > ``` Hi @EMCP , i finally managed to run it. ``` pip uninstall -y markupsafe pip install markupsafe==2.0.1 pip uninstall -y Werkzeug pip install Werkzeug==2.0.3 pip uninstall WTForms pip install WTForms==2.3.0 ``` this is whats was needed (hopefully). installed and uninstalled a dozen of packages, but these might be the relevant ones. -- 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]
