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.

unhashable type: 'dict'

See original GitHub issue

A clear and concise description of what the bug is.

Expected results

Display a simple table of my data. (Ultimately I want to plot a time series line graph of values).

I have the following csv

2019-04-07 17:30:00,0.401
2019-04-07 17:45:00,0.402
2019-04-07 18:00:00,0.402
2019-04-07 18:15:00,0.402
2019-04-07 18:30:00,0.402

When you display the data or a line graph, you get an unhashable type ‘dict’ for numeric column.

Actual results

unhashable type: ‘dict’

Traceback (most recent call last):
  File "/home/superset/superset/views/", line 118, in wraps
    return f(self, *args, **kwargs)
  File "/home/superset/superset/utils/", line 63, in wrapper
    check_perms(*args, **kwargs)
  File "/home/superset/superset/views/", line 122, in check_datasource_perms
  File "/home/superset/superset/views/", line 114, in get_viz
  File "/home/superset/superset/", line 112, in __init__
  File "/home/superset/superset/", line 126, in process_metrics
    self.metric_dict[label] = o
TypeError: unhashable type: 'dict'


Screenshot 2019-05-12 at 20 48 34

How to reproduce the bug

  1. Upload a CSV containing data as sample above.
  2. Run query on the table using parameters as in screenshot.
  3. See error


Built using these commands

git clone
cd incubator-superset/contrib/docker
# prefix with SUPERSET_LOAD_EXAMPLES=yes to load examples:
docker-compose run --rm superset ./
# you can run this command everytime you need to start superset now:
docker-compose up


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

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

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

elukeycommented, May 15, 2019

It would be great to have a more meaningful error message though, this one is really cryptic 😃

issue-label-bot[bot]commented, May 13, 2019

Issue-Label Bot is automatically applying the label #bug to this issue, with a confidence of 0.59. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: unhashable type: 'dict' - python - Stack Overflow
You're trying to use a dict as a key to another dict or in a set . That does not work because the...
Read more >
TypeError: unhashable type: 'dict' (Python) | bobbyhadz
The Python "TypeError: unhashable type: 'dict'" occurs when we use a dictionary as a key in another dictionary or as an element in...
Read more >
TypeError unhashable type 'dict' - STechies
If you are handling dictionaries containing keys and values, you might have encountered the program error "typeerror unhashable type 'dict'".
Read more >
Python TypeError: unhashable type: 'dict' Solution
The “TypeError: unhashable type: 'dict'” error is raised when you try to create an item in a dictionary whose key is an unhashable...
Read more >
typeerror: unhashable type: 'dict' (Solved) - Code Leaks
The “TypeError: unhashable type: 'dict'” error is raised when you try to create an item in a dictionary whose key is an unhashable...
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