Skip to content

save_image not working under windows #2483

Closed

Description

@PlasmaHH

Hi, I tried to use save_image under windows but got hit with an error message about unable to decode unicode bytes.

It traced back to plotly.R/R/kaleido.R where reticulate::py_run_string is called, causing it to try to open something with C:\users in its path. string to interpret \u as unicode escaping and it fails.

A few lines before that there is a tmp_json <- tempfile(fileext = ".json" ) and I think that this creates the wrong path part. Possibly the easiest solution here would be to replace the backslash with a forward slash as python can understand those on all platforms.

Activity

  1. Northamc commented on Apr 13, 2026

    @Northamc

    Yes, I appear to be having the same problem.

  2. cpsievert commented on Apr 16, 2026

    @cpsievert
    Collaborator

    Thanks for reporting. If you install from GitHub then that should address the issue. Please let me know if it still doesn't work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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