Skip to content

Encoding error on Windows #139

@jsmaxi

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'))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions