Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encoding error on Windows during reading .yaml file #10

Open
dobrikov91 opened this issue Aug 12, 2023 · 0 comments
Open

Encoding error on Windows during reading .yaml file #10

dobrikov91 opened this issue Aug 12, 2023 · 0 comments

Comments

@dobrikov91
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant