Lutris failing to start on Arch

Hi, i tried to install lutris, both from pacman -S lutris and yay -S lutris and lutris-git.
It just doesn’t want to start giving me as an error:
Traceback (most recent call last):
File “/usr/bin/lutris”, line 52, in
from lutris.gui.application import Application # pylint: disable=no-name-in-module
ModuleNotFoundError: No module named ‘lutris’

lutris-git even gives me the error:
2022-05-12 15:51:32,855: Package ‘distro’ unavailable. Unable to read Linux distribution
Traceback (most recent call last):
File “/usr/bin/lutris”, line 52, in
from lutris.gui.application import Application # pylint: disable=no-name-in-module
File “/usr/lib/python3.9/site-packages/lutris/gui/application.py”, line 39, in
from lutris.game import Game, export_game, import_game
File “/usr/lib/python3.9/site-packages/lutris/game.py”, line 17, in
from lutris.config import LutrisConfig
File “/usr/lib/python3.9/site-packages/lutris/config.py”, line 11, in
from lutris.util.yaml import read_yaml_from_file, write_yaml_to_file
File “/usr/lib/python3.9/site-packages/lutris/util/yaml.py”, line 4, in
import yaml
ModuleNotFoundError: No module named ‘yaml’

even tho i already have python-yaml, attempted to reinstall but it doesn’t seem to be working and i have no idea on what to do anymore

edit: Forgot to add, i am using Arch linux with KDE

1 Like

You may have some issues with your Python Installation, I had such an issue once.
I had to delete the user site-packages.

i had reinstalled python but that didn’t work, i’ll try this now

just did that, didn’t work still gives me the same errors

Ok update, using the clone from git has worked with the minor steps of having to install Pillow and pyyaml with pip. The pacman version is still broken with the same error. Dont know if thats me tho, hope this can help someone in the future.
I’ll close the thread

1 Like

Looks like this old issue is back. Happens with the standard Arch version and the git version.

Traceback (most recent call last):
File “/usr/bin/lutris”, line 57, in
from lutris.gui.application import Application # pylint: disable=no-name-in-module
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3.11/site-packages/lutris/gui/application.py”, line 45, in
from lutris.gui.dialogs.delegates import LaunchUIDelegate, InstallUIDelegate, CommandLineUIDelegate
File “/usr/lib/python3.11/site-packages/lutris/gui/dialogs/delegates.py”, line 9, in
from lutris.runners import wine
File “/usr/lib/python3.11/site-packages/lutris/runners/wine.py”, line 26, in
from lutris.util.wine.extract_icon import PEFILE_AVAILABLE, ExtractIcon
File “/usr/lib/python3.11/site-packages/lutris/util/wine/extract_icon.py”, line 12, in
from PIL import Image
File “/usr/lib/python3.11/site-packages/PIL/Image.py”, line 82, in
from . import _imaging as core
ImportError: libimagequant.so.0: cannot open shared object file: No such file or directory

1 Like

Getting your same error, kinda frustrating… but I found a temporary solution.
Make sure you have libimagequant installed

pacman -S libimagequant

and if you do have libimagequant installed, do

ln -s /usr/lib/libimagequant.so /usr/lib/libimagequant.so.0
3 Likes

Thank you. Shortly after I posted this, a python update dropped and it fixed it, but thanks for the quick response.

Just a word of caution, that symlink hack from @gxeia did prevent me from updating my system today, throwing out an error as the new updated libimagequant was available today.

The ugly fix is to use = sudo pacman -Syyu --overwrite “*”

1 Like

Yes I can confirm this happened to me too.
I deleted the symlink I created yesterday and then I was able to update the system, lutris now runs fine.

1 Like