[HELP] I can't launch lutris

Hello, i can’t launch lutris even after a full reinstall of all packages and dependencies. Here’s the lutris -d

(lutris:41864): Gtk-WARNING **: 11:30:12.095: Failed to register client: GDBus.Error:org.gnome.SessionManager.AlreadyRegistered: Unable to register client
INFO     2023-08-25 11:30:12,097 [startup.init_lutris:209]:Starting Lutris 0.5.13
INFO     2023-08-25 11:30:12,099 [startup.check_driver:65]:Using NVIDIA drivers 535.104.05 for x86_64
INFO     2023-08-25 11:30:12,099 [startup.check_driver:69]:GPU: NVIDIA GeForce RTX 2060
INFO     2023-08-25 11:30:12,099 [startup.check_driver:85]:GPU: 10DE:1E89 1462:3755 (nvidia drivers)
DEBUG    2023-08-25 11:30:12,270 [xrandr._get_vidmodes:16]:Retrieving video modes from XrandR
DEBUG    2023-08-25 11:30:12,357 [lutris.get_missing_game_ids:191]:Checking for missing games
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/lutris/gui/application.py", line 291, in do_activate
    self.window = LutrisWindow(application=self)
  File "/usr/lib/python3/dist-packages/lutris/gui/lutriswindow.py", line 132, in __init__
    self.get_missing_games()
  File "/usr/lib/python3/dist-packages/lutris/gui/lutriswindow.py", line 402, in get_missing_games
    missing_ids = get_missing_game_ids()
  File "/usr/lib/python3/dist-packages/lutris/scanners/lutris.py", line 193, in get_missing_game_ids
    for game_id, path in get_path_cache().items():
  File "/usr/lib/python3/dist-packages/lutris/scanners/lutris.py", line 184, in get_path_cache
    return json.load(cache_file)
  File "/usr/lib/python3.10/json/__init__.py", line 293, in load
    return loads(fp.read(),
  File "/usr/lib/python3.10/codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode bytes in position 0-1: invalid continuation byte
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 153, in apport_excepthook
    with os.fdopen(os.open(pr_filename,
FileNotFoundError: [Errno 2] Aucun fichier ou dossier de ce type: '/var/crash/_usr_games_lutris.1000.crash'

Original exception was:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/lutris/gui/application.py", line 291, in do_activate
    self.window = LutrisWindow(application=self)
  File "/usr/lib/python3/dist-packages/lutris/gui/lutriswindow.py", line 132, in __init__
    self.get_missing_games()
  File "/usr/lib/python3/dist-packages/lutris/gui/lutriswindow.py", line 402, in get_missing_games
    missing_ids = get_missing_game_ids()
  File "/usr/lib/python3/dist-packages/lutris/scanners/lutris.py", line 193, in get_missing_game_ids
    for game_id, path in get_path_cache().items():
  File "/usr/lib/python3/dist-packages/lutris/scanners/lutris.py", line 184, in get_path_cache
    return json.load(cache_file)
  File "/usr/lib/python3.10/json/__init__.py", line 293, in load
    return loads(fp.read(),
  File "/usr/lib/python3.10/codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode bytes in position 0-1: invalid continuation byte
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/lutris/gui/application.py", line 657, in do_command_line
    self.window.present()
AttributeError: 'NoneType' object has no attribute 'present'
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 153, in apport_excepthook
    with os.fdopen(os.open(pr_filename,
FileNotFoundError: [Errno 2] Aucun fichier ou dossier de ce type: '/var/crash/_usr_games_lutris.1000.crash'

Original exception was:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/lutris/gui/application.py", line 657, in do_command_line
    self.window.present()
AttributeError: 'NoneType' object has no attribute 'present'

thanks for help !

I am having same problem and found no solution
have you gotten a solution yet ?

Hi,

You’ve added to a post over a year old. Please consider starting a new post - if the error is not exactly the same, then you are better off supplying new information.

For support read the sticky at the top of the support forum for how to generate logs - run “lutris -d” from a terminal and it will give us some information - like the of Lutris you are running.

The above looks like a Python 3 problem. It was probably either a very old Lutris, a very old Python 3, or they installed some Python 3 modules into their user profile, and it is replacing the system Python. When Lutris is run against that custom Python, the functions it is expecting do not exist.

The fix is to not run Lutris against custom Python.
But first, please confirm you are running the latest Lutris!

1 Like

my laptop on ubuntu 22.04
my lutris version is lutris-0.5.17
and it seems it is the latest version and here is the error

i’ll make new post tho but i appreciate if you can help

Well IIRC Python3-10 is supported, so either python3-gi isn’t installed, or you have an environment problem that means Lutris can’t function.

Edit: Personally I’d get on Ubuntu 24 so you are at least running a 6.x kernel (much much better for games) and newer packages available.