Sample superset_config.py

1,420 views
Skip to first unread message

santanu pathak

unread,
Feb 4, 2017, 1:37:36 PM2/4/17
to airbnb_superset
Can you please help in providing a superset_config for an initiation installation?
I am constantly getting the following error:

Python 3.6.0 |Anaconda 4.3.0 (64-bit)| (default, Dec 23 2016, 12:22:00) 

[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux

Type "help", "copyright", "credits" or "license" for more information.

>>> import superset

/var/opt/softwares/anaconda3/lib/python3.6/site-packages/flask_sqlalchemy/__init__.py:30: ExtDeprecationWarning: Importing flask.ext.sqlalchemy is deprecated, use flask_sqlalchemy instead.

  from flask.ext.sqlalchemy._compat import iteritems, itervalues, xrange, \

Traceback (most recent call last):

  File "/var/opt/softwares/anaconda3/lib/python3.6/site-packages/werkzeug/utils.py", line 434, in import_string

    return getattr(module, obj_name)

AttributeError: module 'superset' has no attribute 'config'


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "/var/opt/softwares/anaconda3/lib/python3.6/site-packages/werkzeug/utils.py", line 436, in import_string

    raise ImportError(e)

ImportError: module 'superset' has no attribute 'config'


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "<stdin>", line 1, in <module>

  File "/var/opt/softwares/anaconda3/lib/python3.6/site-packages/superset/__init__.py", line 25, in <module>

    app.config.from_object(CONFIG_MODULE)

  File "/var/opt/softwares/anaconda3/lib/python3.6/site-packages/flask/config.py", line 168, in from_object

    obj = import_string(obj)

  File "/var/opt/softwares/anaconda3/lib/python3.6/site-packages/werkzeug/utils.py", line 443, in import_string

    sys.exc_info()[2])

  File "/var/opt/softwares/anaconda3/lib/python3.6/site-packages/werkzeug/_compat.py", line 137, in reraise

    raise value.with_traceback(tb)

  File "/var/opt/softwares/anaconda3/lib/python3.6/site-packages/werkzeug/utils.py", line 436, in import_string

    raise ImportError(e)

werkzeug.utils.ImportStringError: import_string() failed for 'superset.config'. Possible reasons are:


- missing __init__.py in a package;

- package or module path not included in sys.path;

- duplicated package or module name taking precedence in sys.path;

- missing module, class, function or variable;


Debugged import:


- 'superset' found in '/var/opt/softwares/anaconda3/lib/python3.6/site-packages/superset/__init__.py'.

- 'superset.config' not found.


Original exception:


ImportError: module 'superset' has no attribute 'config'

>>> 


santanu pathak

unread,
Feb 9, 2017, 2:05:15 PM2/9/17
to airbnb_superset
Still unable to install superset: fabmanager failing:

Was unable to import superset Error: import_string() failed for 'superset.config'. Possible reasons are:


- missing __init__.py in a package;

- package or module path not included in sys.path;

- duplicated package or module name taking precedence in sys.path;

- missing module, class, function or variable;


Debugged import:


- 'superset' found in '/var/opt/softwares/anaconda3/lib/python3.6/site-packages/superset/__init__.py'.

- 'superset.config' not found.


Original exception:



santanu pathak

unread,
Feb 9, 2017, 2:06:02 PM2/9/17
to airbnb_superset
can anyone please help? I am working on a feasibility study on this, so need this to up and running now.

Maxime Beauchemin

unread,
Feb 9, 2017, 7:38:45 PM2/9/17
to airbnb_superset
I'm not sure whether we're py3.6 compatible. Can you try with 2.7 or 3.4?

Max

santanu pathak

unread,
Feb 23, 2017, 3:34:04 AM2/23/17
to airbnb_superset
Thanks for replying Max. But the install guide http://airbnb.io/superset/installation.html#superset-installation-and-initialization - says "

Getting Started

Superset is tested using Python 2.7 and Python 3.4+. Python 3 is the recommended version, Python 2.6 won’t be supported."

Thanks
Santanu

to...@alloy.co

unread,
Feb 27, 2017, 11:29:45 AM2/27/17
to airbnb_superset
It's not 3.6 compatible but there's a patch: https://github.com/airbnb/superset/issues/1890

For any other installation issues, search through the Github issues - that's where the QA typically is done. 
Reply all
Reply to author
Forward
0 new messages