patrickloeber / pytorch-chatbot

Simple chatbot implementation with PyTorch.
MIT License
420 stars 334 forks source link

Error with encoding #6

Open mateuszklos opened 3 years ago

mateuszklos commented 3 years ago

I've just got an error after creating .pth file

Fatal Python error: init_import_site: Failed to import the site module Python runtime state: initialized Traceback (most recent call last): [... some tracing logs ...]

UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 1468: character maps to

I added some parameters encoding='utf-8' to the funtions connected with files, but it still doesn't work Pycharm encoding is also set by default to UTF8