Skip to content

Windows html and snapshot filename path problems #5

@dofine

Description

@dofine

Windows 7 with Python 2.7, with the latest pyecharts and pyecharts-snapshot from github.

  1. Using forward slash in path or any path generated with os.path module won't work. Change it to back slash works.
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions