Matoking / protontricks

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

My protontricks won't start #237

Open Rui1488 opened 1 year ago

Rui1488 commented 1 year ago

Traceback (most recent call last): File "/usr/bin/protontricks-desktop-install", line 33, in <module> sys.exit(load_entry_point('protontricks==1.10.3', 'console_scripts', 'protontricks-desktop-install')()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/bin/protontricks-desktop-install", line 25, in importlib_load_entry_point return next(matches).load() ^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 202, in load module = import_module(match.group('module')) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1206, in _gcd_import File "<frozen importlib._bootstrap>", line 1178, in _find_and_load File "<frozen importlib._bootstrap>", line 1128, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "<frozen importlib._bootstrap>", line 1206, in _gcd_import File "<frozen importlib._bootstrap>", line 1178, in _find_and_load File "<frozen importlib._bootstrap>", line 1128, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "<frozen importlib._bootstrap>", line 1206, in _gcd_import File "<frozen importlib._bootstrap>", line 1178, in _find_and_load File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 690, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 940, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "/usr/lib/python3.11/site-packages/protontricks/__init__.py", line 1, in <module> from .steam import * File "/usr/lib/python3.11/site-packages/protontricks/steam.py", line 10, in <module> import vdf ModuleNotFoundError: No module named 'vdf'

Does anyone know how to fix this?

Tellus commented 1 year ago

Which distro are you running on?

I had a similar issue on Arch/Manjaro. Rebuilding protontricks and python-vdf seemed to fix it.

With yay, the following should work as a short-form:

yay -S --rebuild protontricks python-vdf
Matoking commented 1 year ago

As @Tellus said, this might be related to the package requiring a rebuild if you're using an Arch or a derivative such as Manjaro. AUR Python packages such as Protontricks require a rebuild once Python itself is updated to a newer release (eg. 3.10 -> 3.11).

beltofdespair commented 11 months ago

In case anyone else is suffering, I had this problem and paru -S --rebuild protontricks-git python-vdf didn't fix it. After much frustration I went into ~/.cache/paru/clone and renamed protontricks-git/ and python-vdf/ and this apparently forced it to reacquire everything? or something? and then it worked. Not sure if there's some paru option I was missing or what.