I began hitting this error after deleting a graph online and trying to replot locally. Both py.iplot
and py.plot
return same error.
Traceback as follows
File “/home/ktavabi/Projects/plotly.py/plotly/plotly/plotly.py”, line 241, in plot
res = _send_to_plotly(figure, **plot_options)
File “/home/ktavabi/Projects/plotly.py/plotly/plotly/plotly.py”, line 1401, in _send_to_plotly
cls=utils.PlotlyJSONEncoder)
File “/home/ktavabi/anaconda2/lib/python2.7/json/init.py”, line 251, in dumps
sort_keys=sort_keys, **kw).encode(obj)
File “/home/ktavabi/Projects/plotly.py/plotly/utils.py”, line 145, in encode
encoded_o = super(PlotlyJSONEncoder, self).encode(o)
File “/home/ktavabi/anaconda2/lib/python2.7/json/encoder.py”, line 207, in encode
chunks = self.iterencode(o, _one_shot=True)
File “/home/ktavabi/anaconda2/lib/python2.7/json/encoder.py”, line 270, in iterencode
return _iterencode(o, 0)
File “/home/ktavabi/Projects/plotly.py/plotly/utils.py”, line 208, in default
return encoding_method(obj)
File “/home/ktavabi/Projects/plotly.py/plotly/utils.py”, line 217, in encode_as_plotly
return obj.to_plotly_json()