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

Unserializable object True of type #1903

Closed
merkylove opened this issue Jan 5, 2017 · 2 comments
Closed

Unserializable object True of type #1903

merkylove opened this issue Jan 5, 2017 · 2 comments

Comments

@merkylove
Copy link

merkylove commented Jan 5, 2017

Getting error:

Unserializable object True of type

when trying to add boolean field to a Filter chart type.

Superset version 0.15.0

Here is traceback:

TypeError: Unserializable object True of type <type 'numpy.bool_'>
2017-01-05 10:43:01,463:ERROR:root:Unserializable object True of type <type 'numpy.bool_'>
Traceback (most recent call last):
  File "/home/superset/superset_virtualenv/local/lib/python2.7/site-packages/superset/views.py", line 1388, in explore_json
    payload = viz_obj.get_json()
  File "/home/superset/superset_virtualenv/local/lib/python2.7/site-packages/superset/viz.py", line 349, in get_json
    return self.json_dumps(payload)
  File "/home/superset/superset_virtualenv/local/lib/python2.7/site-packages/superset/viz.py", line 353, in json_dumps
    return json.dumps(obj, default=utils.json_int_dttm_ser, ignore_nan=True)
  File "/home/superset/superset_virtualenv/local/lib/python2.7/site-packages/simplejson/__init__.py", line 397, in dumps
    **kw).encode(obj)
  File "/home/superset/superset_virtualenv/local/lib/python2.7/site-packages/simplejson/encoder.py", line 275, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File "/home/superset/superset_virtualenv/local/lib/python2.7/site-packages/simplejson/encoder.py", line 357, in iterencode
    return _iterencode(o, 0)
  File "/home/superset/superset_virtualenv/local/lib/python2.7/site-packages/superset/utils.py", line 271, in json_int_dttm_ser
    "Unserializable object {} of type {}".format(obj, type(obj))
TypeError: Unserializable object True of type <type 'numpy.bool_'>
xrmx added a commit to xrmx/superset that referenced this issue Jan 5, 2017
Namely datetime.time and numpy.bool_

Refs: apache#1900
Refs: apache#1903
xrmx added a commit to xrmx/superset that referenced this issue Jan 5, 2017
Namely datetime.time and numpy.bool_

Refs: apache#1900
Refs: apache#1903
mistercrunch pushed a commit that referenced this issue Jan 5, 2017
Namely datetime.time and numpy.bool_

Refs: #1900
Refs: #1903
@xrmx
Copy link
Contributor

xrmx commented Jan 5, 2017

Should be fixed in latest master, please try and let us know. Thanks!

SalehHindi pushed a commit to SalehHindi/superset that referenced this issue Jun 9, 2017
@mistercrunch
Copy link
Member

Notice: this issue has been closed because it has been inactive for 317 days. Feel free to comment and request for this issue to be reopened.

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

3 participants