You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError: 0 is not JSON serializable
File "F:\0926\d3py-master\examples\d3py_vega_area.py", line 14, in
fig += d3py.vega.Area()
File "C:\Users\honglei\AppData\Local\Enthought\Canopy\User\Lib\site-packages\d3py-0.2.3-py2.7.egg\d3py\figure.py", line 197, in iadd
self._add_vega(figure)
File "C:\Users\honglei\AppData\Local\Enthought\Canopy\User\Lib\site-packages\d3py-0.2.3-py2.7.egg\d3py\figure.py", line 208, in _add_vega
self.save_vega()
File "C:\Users\honglei\AppData\Local\Enthought\Canopy\User\Lib\site-packages\d3py-0.2.3-py2.7.egg\d3py\figure.py", line 241, in save_vega
vega = json.dumps(self.vega.vega, sort_keys=True, indent=4)
File "C:\Users\honglei\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.4.1.1975.win-x86_64\Lib\json__init.py", line 250, in dumps
sort_keys=sort_keys, **kw).encode(obj)
File "C:\Users\honglei\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.4.1.1975.win-x86_64\Lib\json\encoder.py", line 209, in encode
chunks = list(chunks)
File "C:\Users\honglei\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.4.1.1975.win-x86_64\Lib\json\encoder.py", line 434, in _iterencode
for chunk in _iterencode_dict(o, _current_indent_level):
File "C:\Users\honglei\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.4.1.1975.win-x86_64\Lib\json\encoder.py", line 408, in _iterencode_dict
for chunk in chunks:
File "C:\Users\honglei\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.4.1.1975.win-x86_64\Lib\json\encoder.py", line 332, in _iterencode_list
for chunk in chunks:
File "C:\Users\honglei\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.4.1.1975.win-x86_64\Lib\json\encoder.py", line 408, in _iterencode_dict
for chunk in chunks:
File "C:\Users\honglei\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.4.1.1975.win-x86_64\Lib\json\encoder.py", line 332, in _iterencode_list
for chunk in chunks:
File "C:\Users\honglei\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.4.1.1975.win-x86_64\Lib\json\encoder.py", line 408, in _iterencode_dict
for chunk in chunks:
File "C:\Users\honglei\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.4.1.1975.win-x86_64\Lib\json\encoder.py", line 442, in _iterencode
o = _default(o)
File "C:\Users\honglei\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.4.1.1975.win-x86_64\Lib\json\encoder.py", line 184, in default
raise TypeError(repr(o) + " is not JSON serializable")
The text was updated successfully, but these errors were encountered:
TypeError: 0 is not JSON serializable
File "F:\0926\d3py-master\examples\d3py_vega_area.py", line 14, in
fig += d3py.vega.Area()
File "C:\Users\honglei\AppData\Local\Enthought\Canopy\User\Lib\site-packages\d3py-0.2.3-py2.7.egg\d3py\figure.py", line 197, in iadd
self._add_vega(figure)
File "C:\Users\honglei\AppData\Local\Enthought\Canopy\User\Lib\site-packages\d3py-0.2.3-py2.7.egg\d3py\figure.py", line 208, in _add_vega
self.save_vega()
File "C:\Users\honglei\AppData\Local\Enthought\Canopy\User\Lib\site-packages\d3py-0.2.3-py2.7.egg\d3py\figure.py", line 241, in save_vega
vega = json.dumps(self.vega.vega, sort_keys=True, indent=4)
File "C:\Users\honglei\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.4.1.1975.win-x86_64\Lib\json__init.py", line 250, in dumps
sort_keys=sort_keys, **kw).encode(obj)
File "C:\Users\honglei\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.4.1.1975.win-x86_64\Lib\json\encoder.py", line 209, in encode
chunks = list(chunks)
File "C:\Users\honglei\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.4.1.1975.win-x86_64\Lib\json\encoder.py", line 434, in _iterencode
for chunk in _iterencode_dict(o, _current_indent_level):
File "C:\Users\honglei\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.4.1.1975.win-x86_64\Lib\json\encoder.py", line 408, in _iterencode_dict
for chunk in chunks:
File "C:\Users\honglei\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.4.1.1975.win-x86_64\Lib\json\encoder.py", line 332, in _iterencode_list
for chunk in chunks:
File "C:\Users\honglei\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.4.1.1975.win-x86_64\Lib\json\encoder.py", line 408, in _iterencode_dict
for chunk in chunks:
File "C:\Users\honglei\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.4.1.1975.win-x86_64\Lib\json\encoder.py", line 332, in _iterencode_list
for chunk in chunks:
File "C:\Users\honglei\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.4.1.1975.win-x86_64\Lib\json\encoder.py", line 408, in _iterencode_dict
for chunk in chunks:
File "C:\Users\honglei\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.4.1.1975.win-x86_64\Lib\json\encoder.py", line 442, in _iterencode
o = _default(o)
File "C:\Users\honglei\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.4.1.1975.win-x86_64\Lib\json\encoder.py", line 184, in default
raise TypeError(repr(o) + " is not JSON serializable")
The text was updated successfully, but these errors were encountered: