superset/config.py creates directory before can be overridden
See original GitHub issueVersion: 0.18.5
Platform: Ubuntu 16.04 Linux with Apache 2.4
About 27 lines into superset/config.py is:
DATA_DIR = os.path.join(os.path.expanduser('~'), '.superset')
if not os.path.exists(DATA_DIR):
os.makedirs(DATA_DIR)
which will try to create the directory before it can be overridden by a new value in superset_config.py. If the program does not have permission to create the directory, superset will crash.
Example: when superset is run from Apache via mod_wsgi, it attempts to create /var/www/.superset and crashes.
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
superset/config.py creates directory before can be overridden
Example: when superset is run from Apache via mod_wsgi, it attempts to create /var/www/.superset and crashes.
Read more >Configuring Superset
To configure your application, you need to create a file superset_config.py and add it to your PYTHONPATH . If your application was installed...
Read more >Apache Superset config.py on - Stack Overflow
The pythonpath is mainly defined by: execution directory; pythonpath environemnt variable; default install dir for modules. (Also it can be ...
Read more >Installation & Configuration - apache-superset - Read the Docs
Once you're in the directory, run the following command: ... Since superset_config.py acts as a Flask configuration module, it can be used to...
Read more >Custom Security Manager for Apache Superset - Medium
At first, create a new file my_security_manager.py, and put it in your PYTHONPATH directory. There will be a base for your future Superset ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Done: #4143
Yes, the logic that creates the folder if it does not exist could live in
superset/__init__.py
, after config has been overridden. Please send a PR.