You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2019/05/13 08:03:54 UTC

[GitHub] [incubator-superset] padraigoleary opened a new issue #7495: unhashable type: 'dict'

padraigoleary opened a new issue #7495: unhashable type: 'dict' 
URL: https://github.com/apache/incubator-superset/issues/7495
 
 
   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
   ```
   datetime,level
   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/base.py", line 118, in wraps
       return f(self, *args, **kwargs)
     File "/home/superset/superset/utils/decorators.py", line 63, in wrapper
       check_perms(*args, **kwargs)
     File "/home/superset/superset/views/core.py", line 122, in check_datasource_perms
       force=False,
     File "/home/superset/superset/views/utils.py", line 114, in get_viz
       force=force,
     File "/home/superset/superset/viz.py", line 112, in __init__
       self.process_metrics()
     File "/home/superset/superset/viz.py", line 126, in process_metrics
       self.metric_dict[label] = o
   TypeError: unhashable type: 'dict'
   ```
   
   #### Screenshots
   ![Screenshot 2019-05-12 at 20 48 34](https://user-images.githubusercontent.com/1001645/57604797-61889b00-7565-11e9-8cc5-5605169501a1.png)
   
   
   
   #### 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
   
   ### Environment
   
   Built using these commands
   ```
   git clone https://github.com/apache/incubator-superset/
   cd incubator-superset/contrib/docker
   # prefix with SUPERSET_LOAD_EXAMPLES=yes to load examples:
   docker-compose run --rm superset ./docker-init.sh
   # you can run this command everytime you need to start superset now:
   docker-compose up
   ```
   
   ### Checklist
   
   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.
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org