Matoking / protontricks

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

Protontricks crash; ModuleNotFoundError: No module named 'pkg_resources' #123

Closed spinktvis closed 2 years ago

spinktvis commented 2 years ago

Describe the bug Running protontricks results in crash. Doesn't matter which protontricks command runs, error is always the same.

To Reproduce Steps to reproduce the behavior:

  1. Run command protontricks --help
  2. Command fails and error is displayed

Expected behavior For protontricks to run normally.

System (please complete the following information):

Additional context

protontricks --version (11-12 13:46) Traceback (most recent call last): File "/usr/bin/protontricks", line 33, in sys.exit(load_entry_point('protontricks==1.6.2.dev1+g758147d', 'console_scripts', 'protontricks')()) File "/usr/bin/protontricks", line 25, in importlib_load_entry_point return next(matches).load() File "/usr/lib/python3.9/importlib/metadata.py", line 77, in load module = import_module(match.group('module')) File "/usr/lib/python3.9/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1030, in _gcd_import File "", line 1007, in _find_and_load File "", line 972, in _find_and_load_unlocked File "", line 228, in _call_with_frames_removed File "", line 1030, in _gcd_import File "", line 1007, in _find_and_load File "", line 972, in _find_and_load_unlocked File "", line 228, in _call_with_frames_removed File "", line 1030, in _gcd_import File "", line 1007, in _find_and_load File "", line 986, in _find_and_load_unlocked File "", line 680, in _load_unlocked File "", line 850, in exec_module File "", line 228, in _call_with_frames_removed File "/usr/lib/python3.9/site-packages/protontricks/init.py", line 3, in from .gui import * File "/usr/lib/python3.9/site-packages/protontricks/gui.py", line 10, in import pkg_resources ModuleNotFoundError: No module named 'pkg_resources'

Matoking commented 2 years ago

Try installing python-setuptools:

sudo pacman -S python-setuptools

I forgot to declare this dependency in setup.py, which the AUR package maintainer used to determine which packages were needed. pkg_resources is a common Python dependency that is often already installed through another Python package in the system, though not in this case.

I've updated the setup.py and have added a comment on the AUR package page.

spinktvis commented 2 years ago

Thans so much for clearing that up. Confirming it is working properly now.