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

'dict' object does not support indexing when adding redshift database #2428

Closed
nicokras opened this issue Mar 16, 2017 · 7 comments
Closed
Labels
#bug:cant-reproduce Bugs that cannot be reproduced

Comments

@nicokras
Copy link

Trying to add a redshift database, I get the 'dict' object does not support indexing error. What could be happening?

Superset version 0.17.1
Python version: 2.7
Ubuntu server.

Thanks

@xrmx
Copy link
Contributor

xrmx commented Mar 17, 2017

Please use the template issue and report all the needed informations like a stack trace.

@mistercrunch mistercrunch added the #bug:cant-reproduce Bugs that cannot be reproduced label Mar 17, 2017
@ndeslandes
Copy link

@mistercrunch

I have the same issue. No stacktrace in the log.

'dict' object does not support indexing when clicking Save in the /databaseview/add page with a redshift config

Database : db_name
SQLAlchemy URI : redshift+psycopg2://user:password@redhsit_host:5439/db_name
Cache Timeout :
Extra : {
"metadata_params": {},
"engine_params": {
"connect_args":{
"sslmode": "prefer"
}
}
}

@alexdebrie
Copy link
Contributor

I had the same issue. To fix, change your SQL Alchemy URI from redshift+psycopg2://... to postgresql+psycopg2://...

Solution found here.

@nicokras
Copy link
Author

@alexdebrie That worked for me. Thanks for your help!

@xrmx
Copy link
Contributor

xrmx commented Mar 21, 2017

So documentation is wrong? If so anyone care to do a patch please? http://airbnb.io/superset/installation.html#database-dependencies

@alexdebrie
Copy link
Contributor

See 2447.

@mistercrunch
Copy link
Member

Merged, closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
#bug:cant-reproduce Bugs that cannot be reproduced
Projects
None yet
Development

No branches or pull requests

5 participants