question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

superset/config.py creates directory before can be overridden

See original GitHub issue

Version: 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:closed
  • Created 6 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
leorochaelcommented, Jan 3, 2018

Please send a PR.

Done: #4143

0reactions
mistercrunchcommented, Jan 2, 2018

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.

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found