superset icon indicating copy to clipboard operation
superset copied to clipboard

argument of type 'NoneType' is not iterable

Open RajkumarKadari opened this issue 9 years ago • 7 comments

I am very new to Caravel. I would like to explore the Caravel and its features for enterprise use. Can any one gives info/article links to get clarity on the below.

currently am facing issue : argument of type 'NoneType' is not iterable

It would be great if you can share any link where I can explore more.

RajkumarKadari avatar Jan 05 '17 11:01 RajkumarKadari

This is called superset so i assume you are using a very old version of this. Please add all the needed information per template issue.

xrmx avatar Jan 05 '17 13:01 xrmx

Thnx i have updated.

RajkumarKadari avatar Jan 10 '17 10:01 RajkumarKadari

@RajkumarKadari so we can close this?

xrmx avatar Jan 10 '17 10:01 xrmx

Yes thanks for the support...

And one more : its support Hive Views?

(Hive----> presto------> superset)

RajkumarKadari avatar Jan 10 '17 10:01 RajkumarKadari

Got the same issue with superset 0.17.4 (via Docker):

Running a query via "SQL Labs", on Presto:

superset_1  | 2017-04-10 10:28:20,583:ERROR:root:argument of type 'NoneType' is not iterable
superset_1  | Traceback (most recent call last):
superset_1  |   File "/usr/lib/python3.5/site-packages/superset/views/core.py", line 1994, in sql_json
superset_1  |     query_id=query_id, return_results=True)
superset_1  |   File "/usr/lib/python3.5/site-packages/celery/local.py", line 188, in __call__
superset_1  |     return self._get_current_object()(*a, **kw)
superset_1  |   File "/usr/lib/python3.5/site-packages/celery/app/task.py", line 420, in __call__
superset_1  |     return self.run(*args, **kwargs)
superset_1  |   File "/usr/lib/python3.5/site-packages/superset/sql_lab.py", line 123, in get_sql_results
superset_1  |     engine = database.get_sqla_engine(schema=query.schema)
superset_1  |   File "/usr/lib/python3.5/site-packages/superset/models/core.py", line 565, in get_sqla_engine
superset_1  |     url.database = self.get_database_for_various_backend(url, schema)
superset_1  |   File "/usr/lib/python3.5/site-packages/superset/models/core.py", line 571, in get_database_for_various_backend
superset_1  |     if '/' in database:

but I can use this data-source on dashboard without any problem.

Actually, not selecting a schema fix the error (second dropdown).

ebuildy avatar Apr 10 '17 10:04 ebuildy

+1 !!! Thanks ebuildy ... not using the menu on the left solves it in deed !

desavera avatar Apr 26 '17 20:04 desavera

Could someone confirm this was fixed on new releases ???

desavera avatar Aug 04 '17 19:08 desavera