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. doesn't work

See original GitHub issue

Make sure these boxes are checked before submitting your issue - thank you!

  • I have checked the superset logs for python stacktraces and included it here as text if any
  • I have reproduced the issue with at least the latest released version of superset
  • I have checked the issue tracker for the same issue and I haven’t found one similar

Superset version


Expected results

the parameters in should work.

Actual results

the parameters in don’t work.

Steps to reproduce

  1. vim SQLALCHEMY_DATABASE_URI = 'sqlite:////path/to/superset.db' DRUID_IS_ACTIVE = False and mv /usr/local/superset

  2. add PYTHONPATH in /etc/profile export PYTHONPATH=/usr/local/superset:$PYTHONPATH or export PYTHONPATH=/usr/local/superset source /etc/profile

  3. run superset I set wrong SQLALCHEMY_DATABASE_URI but superset still works

so the doesn’t works, something wrong?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

pawan-kvcommented, Feb 6, 2017

Maybe Im not getting you quite right.

But this is how we can override “” default settings:

  1. create a new file “” in some directory say “/home/local_settings/”. Add line: SQLALCHEMY_DATABASE_URI = 'sqlite:////home/data/superset.db' (or any path u have write permissions to)

  2. Now you can do either: export PYTHONPATH=/home/local_settings/:$PYTHONPATH OR export SUPERSET_CONFIG_PATH=/home/local_settings/

Thats it.

astawiarskicommented, May 16, 2017

Didn’t work for me in superset 0.18.0 . When setting SUPERSET_CONFIG_PATH=/code/superset/ it was throwing this:

Traceback (most recent call last):
  File "/usr/local/bin/superset", line 12, in <module>
    from superset.cli import manager
  File "/usr/local/lib/python3.5/dist-packages/superset/", line 21, in <module>
    from superset import utils, config  # noqa
  File "/usr/local/lib/python3.5/dist-packages/superset/", line 305, in <module>
    imp.load_source('superset_config', os.environ[CONFIG_PATH_ENV_VAR])
  File "/usr/lib/python3.5/", line 172, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 693, in _load
  File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 669, in exec_module
  File "<frozen importlib._bootstrap_external>", line 774, in get_code
  File "/usr/lib/python3.5/", line 158, in get_data
    return super().get_data(path)
  File "<frozen importlib._bootstrap_external>", line 826, in get_data
IsADirectoryError: [Errno 21] Is a directory: '/code/superset/'

What did work is setting the full path to the file, not just directory. SUPERSET_CONFIG_PATH=/code/superset/

Read more comments on GitHub >

github_iconTop Results From Across the Web

Apache Superset on - Stack Overflow
Run this command: export SUPERSET_CONFIG_PATH=/path/to/your/ Restart your superset to take the changes. Source: ...
Read more >
Configuring Superset
To configure your application, you need to create a file and add it to your PYTHONPATH . If your application was installed...
Read more >
superset/ - Google Git
# Function accepts database object, user object, schema name and sql that will be run. SQLLAB_CTAS_SCHEMA_NAME_FUNC: Optional[. Callable[[ ...
Read more >
Installation & Configuration - apache-superset - Read the Docs
Since acts as a Flask configuration module, it can be used to alter the settings Flask itself, as well as Flask extensions...
Read more >
Sample - Google Groups
Still unable to install superset: fabmanager failing: Was unable to import superset Error: import_string() failed for 'superset.config'. Possible reasons are:.
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 Post

No results found

github_iconTop Related Hashnode Post

No results found