Skip to content

Encoding error on Windows during reading .yaml file #10

@dobrikov91

Description

@dobrikov91

I got an error using example:

UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 in position 218: character maps to <undefined>

It seems windows uses CP1251 encoding by default. I changed the line
with open(path, 'r') as f:
to
with open(path, 'r', encoding='utf8') as f:

in edgetpumodel.py get_names()

After it the example starts works fine :) This is the only issue on Windows, hope this fix will be committed. I have no rights to open PR on my own.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions