Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sqllab bug: 'unicode' has no attribute 'get_table_names' #2678

Closed
3 tasks done
tejaser opened this issue Apr 26, 2017 · 1 comment
Closed
3 tasks done

sqllab bug: 'unicode' has no attribute 'get_table_names' #2678

tejaser opened this issue Apr 26, 2017 · 1 comment

Comments

@tejaser
Copy link

tejaser commented Apr 26, 2017

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

0.17.5 running on python 2.7 in ubuntu 16

Expected results

Table should get listed in the dropdown

Actual results

spinner keeps on rotating waiting for data to come

Steps to reproduce

step 1:- Go to sqllab
step 2:- select the database and schema
step 3:- wait for the spinner to start rotating

Error log

File "/usr/local/lib/python2.7/dist-packages/superset/views/base.py", line 48, in wraps
return f(self, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/flask_appbuilder/security/decorators.py", line 52, in wraps
return f(self, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/superset/views/core.py", line 1212, in tables
database, database.all_table_names(schema), schema)
File "/usr/local/lib/python2.7/dist-packages/superset/models/core.py", line 631, in all_table_names
self.db_engine_spec.get_table_names(schema, self.inspector))
File "/usr/local/lib/python2.7/dist-packages/superset/db_engine_specs.py", line 307, in get_table_names
return sorted(inspector.get_table_names())
AttributeError: 'unicode' object has no attribute 'get_table_names'

@xrmx
Copy link
Contributor

xrmx commented Apr 26, 2017

Is this a sqlite database? Looks like a dup of #2664

@xrmx xrmx closed this as completed Apr 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants