Shkurupii commented on issue #11765:
URL: 
https://github.com/apache/incubator-superset/issues/11765#issuecomment-735255510


   There can be plenty of possible issues. Your PATH is incorrect, 
superset_config.py shoudn't be inside your environment dir, environment cache 
could be broken, maybe you had forgot to create admin account before executed 
`init`. I'll suggest you:
   - to move superset_config.py to dedicated config directory
   - to make new superset virtual environment
   Your superset_config.py looks very good. It's a good start. The following 
set of commands should be enough to make new clear environment. 
   ```
   umask 022
   mkdir -p ~/superset/config
   mv 
~/python-environments/env/lib/python3.7/site-packages/superset/superset_config.py
 ~/superset/config
   chmod 644 ~/superset/config/superset_config.py
   cd ~/superset
   python3 -m venv venv
   source venv/bin/activate
   pip install apache-superset
   superset db upgrade
   export FLASK_APP=superset
   export SUPERSET_CONFIG_PATH=/home/matteo/superset/config/superset_config.py
   flask fab create-admin --username admin --firstname Superset --lastname 
Admin --email [email protected] --password {{ your_admin_password 
}}"
   superset init
   superset run -p 8088 --with-threads --reload --debugger
   ```
   Just follow this steps.
   In case you wonder what's wrong with your PATH.
   Your current 
`PATH=/home/matteo/env/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/matteo/python-environments/env/lib/python3.7/site-packages/superset`
 doesn't match directory structure you have. 
`/home/matteo/python-environments/env` is your environment, that means 
`/home/matteo/python-environments/env/bin` should be inside your PATH, but it 
doesn't. 
`/home/matteo/python-environments/env/lib/python3.7/site-packages/superset` 
does nothing. Your main problem is inattention to details.


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

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