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

UnicodeDecodeError: 'charmap' codec can't decode byte #2194

Open
StragaSevera opened this issue Jan 22, 2025 · 4 comments
Open

UnicodeDecodeError: 'charmap' codec can't decode byte #2194

StragaSevera opened this issue Jan 22, 2025 · 4 comments
Labels
issue report User submitted report

Comments

@StragaSevera
Copy link

The problem:

Whenever I launch Mod Organizer, I receive the following error message:

Image

After I click "OK", the app is launched normally.

To Reproduce:

Steps to reproduce the behavior:

  1. Start Mod Organizer 2.
  2. Observe.

Environment:

  • Mod Organizer Version that exhibits the issue: 2.5.2
  • Desktop OS/version used to run Mod Organizer: Windows 10, build 19045.5371

Link to Mod Organizer logs:

Right click on the log window at the bottom of MO2, set log level to debug, restart Mo2 and reproduce the problem.
To access the log files you can press the Open folder icon over the modlist and select "Open MO2 Logs folder".

USVFS:

https://gist.github.com/StragaSevera/9305fcb38f3207852b389be8c8f7a997

MO Interface:

https://gist.github.com/StragaSevera/efd5d1d4ba93bea4f6c2cc0f20fac9f5

@StragaSevera StragaSevera added the issue report User submitted report label Jan 22, 2025
@AnyOldName3
Copy link
Member

Looks like we open the INI file that lists installed EA games without specifying the encoding, so Python defaults to the system's current eight-bit code page, and it seems that EA's app doesn't use that encoding for the file.

Can you please upload your %LocalAppData%\Electronic Arts\EA Desktop\user_*.ini? I don't know what the * will expand to on your machine.

@StragaSevera
Copy link
Author

No problem, here it is: user_15168781886942948422.txt
(For some reason Github doesn't want to upload the .ini file, so I renamed the extension).

@AnyOldName3
Copy link
Member

Well that's certainly not an INI file, or any kind of text file at all.

Image

@StragaSevera
Copy link
Author

Yep, I wonder why. I can just delete it, but maybe you can add some check for other people - "if the file is corrupted, ignore it"?

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

No branches or pull requests

2 participants