Skip to content

Encoding error on Windows #139

Description

@jsmaxi

Setup ZerePy on Windows machine.

Run:

poetry install --no-root
poetry shell
poetry run python main.py

Observe error:
Could not load ZerePy agent
Error loading agent: 'charmap' codec can't decode byte 0x9d in position 2341: character maps to

Resolve the issue by specifying encoding:

agent_dict = json.load(open(agent_path, "r", encoding='utf-8'))

Activity

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