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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions