Windows 7 with Python 2.7, with the latest pyecharts and pyecharts-snapshot from github.
- Using forward slash in path or any path generated with
os.path module won't work. Change it to back slash works.
- Chinses name in the full absolute file path won't work.
radar.render("pics\\index.html")
make_a_snapshot("pics\\index.html", "pics\\echarts_radar3.png")
Result:
\lib\site-packages\pyecharts_snapshot\main.py", line 64, in make_a_snapshot
base64_imagedata = content.split(',')[1]
IndexError: list index out of range