EndeavourOS — ModuleNotFoundError: No module named 'lutris' when loading Lutris

Hello, everyone.

I have been searching for quite awhile to find the solution to this problem.

I am running EndeavourOS (based off of Arch Linux) with the latest updates (including lutris v0.5.12-2). When I run commands such as “lutris”, “lutris -d”, “lutris --submit-issue”, or “lutris --version”, I receive the following traceback:

Traceback (most recent call last):
  File "/usr/bin/lutris", line 52, in <module>
    from lutris.gui.application import Application  # pylint: disable=no-name-in-module
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'lutris'

I ensured that Lutris and necessary drivers were installed according to the Wiki.

I attempted to downgrade Lutris to v0.5.11-2, but the issue persisted.

According to lspci, the system uses the following graphics card:

01:00.0 VGA compatible controller: NVIDIA Corporation TU116 [GeForce GTX 1660] (rev a1)

The proprietary driver is properly installed and working.

Python 3.10 is installed.

I am at a loss as to what to do.

If there is any further information that you may need, please let me know.

Thanks for any help or insight that you might be able to offer.

This looks more a problem of EndeavourOS than Lutris.
Specifically, the error is saying the Lutris dependencies are installed for a different Python than the one used for running it.
Did you try to change the python version used to run Lutris (if possible)?

Thank you so much for the reply!

I’m not quite sure how to proceed, but you are correct. It appears that I overlooked an installation of Python 3.11 and other applications besides Lutris are experiencing similar issues.

I am going to search on how to switch the Python version used as I am not as familiar with that.

Thank you again for your response.