yufeiminds / echarts-python

Deprecated. Use PyEcharts instead. https://github.com/pyecharts/pyecharts
417 stars 167 forks source link

python3 调用echart.plot()会报错 #22

Open CrazyStoneJy opened 6 years ago

CrazyStoneJy commented 6 years ago

TypeError: a bytes-like object is required, not 'str'

OldPanda commented 6 years ago

+1 here

OldPanda commented 6 years ago

一个临时的办法是把这一行改成 fobj.write(self._html().encode()) 。但感觉最好还是能有 py3 的完整支持。我的环境是 Python 3.6.5

Noaiii commented 6 years ago