Matoking / protontricks

A wrapper that does winetricks things for Proton enabled games, requires Winetricks.
GNU General Public License v3.0
1.64k stars 36 forks source link

UnicodeDecodeError: 'utf-8' codec can't decode byte #342

Closed Combine-sudo closed 2 weeks ago

Combine-sudo commented 3 weeks ago

Traceback (most recent call last): File "/home/Denis/.local/bin/protontricks", line 8, in sys.exit(cli()) ^^^^^ File "/home/Denis/.local/share/pipx/venvs/protontricks/lib/python3.12/site-packages/protontricks/cli/main.py", line 32, in cli main(args) File "/home/Denis/.local/share/pipx/venvs/protontricks/lib/python3.12/site-packages/protontricks/cli/util.py", line 159, in wrapper return cli_func(self, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/Denis/.local/share/pipx/venvs/protontricks/lib/python3.12/site-packages/protontricks/cli/main.py", line 293, in main proton_app = find_proton_app( ^^^^^^^^^^^^^^^^ File "/home/Denis/.local/share/pipx/venvs/protontricks/lib/python3.12/site-packages/protontricks/steam.py", line 904, in find_proton_app tool_app = find_steam_compat_tool_app( ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/Denis/.local/share/pipx/venvs/protontricks/lib/python3.12/site-packages/protontricks/steam.py", line 660, in find_steam_compat_tool_app content = config_vdf_path.read_text() ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/pathlib.py", line 1028, in read_text return f.read() ^^^^^^^^ File "", line 322, in decode UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe8 in position 29908: invalid continuation byte

System

Additional context

tried to uninstall and reinstall via git,AUR,flathub and pipx multiple times but still got the same issue.

orkel1215 commented 2 weeks ago

I have the same problem.

orkel1215 commented 2 weeks ago

fixed for me in the new update.

Combine-sudo commented 2 weeks ago

can confirm, latest pipx version fixed the issue. closing issue and thanks for the fix