Lutris package is broken when launching games in wine

Hi I just wanted to report that the package is having python errors and will be stuck launching

corey@Corey-PC ~]$ lutris
2022-03-31 19:45:44,142: Starting Lutris 0.5.9.1
2022-03-31 19:45:44,170: No cores found
2022-03-31 19:45:46,048: Startup complete
2022-03-31 19:45:46,048: Using NVIDIA drivers 510.54 for x86_64
2022-03-31 19:45:46,048: GPU: Unknown
2022-03-31 19:45:46,049: GPU: 10DE:1C03 10DE:11D7 (nvidia drivers)
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/lutris/exceptions.py", line 57, in wrapper
    return function(*args, **kwargs)
  File "/usr/lib/python3.10/site-packages/lutris/game.py", line 420, in configure_game
    gameplay_info = self.get_gameplay_info()
  File "/usr/lib/python3.10/site-packages/lutris/game.py", line 398, in get_gameplay_info
    gameplay_info = self.runner.play()
  File "/usr/lib/python3.10/site-packages/lutris/runners/wine.py", line 825, in play
    launch_info = {"env": self.get_env(os_env=False)}
  File "/usr/lib/python3.10/site-packages/lutris/runners/wine.py", line 749, in get_env
    env = super(wine, self).get_env(False)
  File "/usr/lib/python3.10/site-packages/lutris/runners/runner.py", line 186, in get_env
    runtime_env = self.get_runtime_env()
  File "/usr/lib/python3.10/site-packages/lutris/runners/wine.py", line 789, in get_runtime_env
    for proton_path in get_proton_paths():
  File "/usr/lib/python3.10/site-packages/lutris/util/wine/wine.py", line 49, in get_proton_paths
    for path in _iter_proton_locations():
  File "/usr/lib/python3.10/site-packages/lutris/util/wine/wine.py", line 38, in _iter_proton_locations
    for path in [os.path.join(p, "common") for p in steam().get_steamapps_dirs()]:
  File "/usr/lib/python3.10/site-packages/lutris/runners/steam.py", line 243, in get_steamapps_dirs
    library_config = self.get_library_config()
  File "/usr/lib/python3.10/site-packages/lutris/runners/steam.py", line 149, in get_library_config
    return read_library_folders(self.steam_data_dir)
  File "/usr/lib/python3.10/site-packages/lutris/util/steam/config.py", line 161, in read_library_folders
    library["libraryfolders"].pop("contentstatsid")
KeyError: 'contentstatsid'

1 Like

Can confirm that lutris-git does work but this needs to be fixed

[omano@omano-nvme ~]$ lutris 
2022-04-02 16:37:20,839: Magic not available. Unable to automatically find game executables. Please install python-magic
2022-04-02 16:37:20,852: Starting Lutris 0.5.9.1
2022-04-02 16:37:20,876: No cores found
2022-04-02 16:37:28,300: Startup complete
2022-04-02 16:37:28,303: Using NVIDIA drivers 510.60.02 for x86_64
2022-04-02 16:37:28,304: GPU: NVIDIA GeForce GTX 1060 6GB
2022-04-02 16:37:28,305: GPU: 10DE:1C03 3842:6163 (nvidia drivers)
2022-04-02 16:37:28,393: Unable to get locale

Everything working here. Testing branch. Lutris installed from repositories. I see Lutris doesn’t detect your GPU.

//EDIT: same thing after installing python-magic

[omano@omano-nvme ~]$ lutris
2022-04-02 16:43:37,142: Starting Lutris 0.5.9.1
2022-04-02 16:43:37,166: No cores found
2022-04-02 16:43:44,539: Startup complete
2022-04-02 16:43:44,540: Using NVIDIA drivers 510.60.02 for x86_64
2022-04-02 16:43:44,540: GPU: NVIDIA GeForce GTX 1060 6GB
2022-04-02 16:43:44,540: GPU: 10DE:1C03 3842:6163 (nvidia drivers)
2022-04-02 16:43:44,652: Unable to get locale
2022-04-02 16:43:48,165: Shutting down Lutris

Got the same issue on stable branch. All games show “Launching” but nothing happens.

But there is a solution for this error available which you can find here:

After edit this, games start as expected again. Maybe testing branch still had updated this. :wink:

It is same version. I don’t have this ‘fix’.

Hm, strange. But I mentioned that my GPU also is not detected correcly.

❯ lutris
2022-04-02 17:19:52,981: Starting Lutris 0.5.9.1
2022-04-02 17:19:53,025: No cores found
2022-04-02 17:19:54,172: Startup complete
2022-04-02 17:19:54,173: Using NVIDIA drivers 510.54 for x86_64
2022-04-02 17:19:54,173: GPU: Unknown
2022-04-02 17:19:54,173: GPU: 10DE:2182 3842:1261 (nvidia drivers)

Only difference I see from here. :neutral_face:

The commit posted above is tagged for the 0.5.10 version, which isn’t available even in Arch yet (although it’s flagged as out-of-date).
https://archlinux.org/packages/community/any/lutris

The GitHub bug report and a short explanation that may help:

I don’t use Lutris to launch Steam (it makes 0 sense to me) so there’s that.

This isn’t for a Steam game, it’s for a non Steam game but all games being launched from Lutris had this issue.