Antergos: won't run lutris

Hi, I’m new with lutris and I tried running on antergos 64bits. This is the output:

Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/lutris/gui/application.py”, line 152, in do_activate
self.window = LutrisWindow(application=self)
File “/usr/lib/python3.6/site-packages/lutris/gui/lutriswindow.py”, line 83, in init
steam.sync_with_lutris()
File “/usr/lib/python3.6/site-packages/lutris/util/steam.py”, line 255, in sync_with_lutris
steamapps_paths = get_steamapps_paths()
File “/usr/lib/python3.6/site-packages/lutris/util/steam.py”, line 211, in get_steamapps_paths
for folder in winesteam_runner.get_steamapps_dirs():
File “/usr/lib/python3.6/site-packages/lutris/runners/winesteam.py”, line 308, in get_steamapps_dirs
linux_path = self.parse_wine_path(path, self.prefix_path)
File “/usr/lib/python3.6/site-packages/lutris/runners/winesteam.py”, line 145, in prefix_path
arch=self.game_config.get(‘arch’)
File “/usr/lib/python3.6/site-packages/lutris/runners/winesteam.py”, line 339, in get_or_create_default_prefix
self.create_prefix(prefix, arch=arch)
File “/usr/lib/python3.6/site-packages/lutris/runners/winesteam.py”, line 326, in create_prefix
create_prefix(prefix_dir, arch=arch, wine_path=wine_path)
File “/usr/lib/python3.6/site-packages/lutris/runners/wine.py”, line 86, in create_prefix
system.execute([wineboot_path], env=env)
File “/usr/lib/python3.6/site-packages/lutris/util/system.py”, line 64, in execute
env=existing_env, cwd=cwd).communicate()
File “/usr/lib/python3.6/subprocess.py”, line 707, in init
restore_signals, start_new_session)
File “/usr/lib/python3.6/subprocess.py”, line 1241, in _execute_child
for k, v in env.items()]
File “/usr/lib/python3.6/subprocess.py”, line 1241, in
for k, v in env.items()]
File “/usr/lib/python3.6/os.py”, line 798, in fsencode
filename = fspath(filename) # Does type-checking of filename.
TypeError: expected str, bytes or os.PathLike object, not NoneType

Any tips to solve it?

Thanks

OS: Antergos
Kernel: x86_64 Linux 4.10.2-1-ARCH
Uptime: 7h 10m
Packages: 1136
Shell: bash 4.4.12
Resolution: 3200x1080
DE: Cinnamon 3.2.8
WM: Muffin
WM Theme: Nightlife-Human (Numix-Frost)
Numix-Frost [GTK2]
, Numix-Frost [GTK3]
Icon Theme: Numix-Square
Font: Sans 9
CPU: Intel Core i5-4670K CPU @ 3.8GHz
GPU: GeForce GTX 780, GeForce GTX 780
RAM: 5492MiB / 15990MiB

This error looks familiar, are you running the latest version of Lutris? I’ve released it a couple hours ago and it might take a few hours more to land in AUR.

Using version lutris-0.4.5-1 uploaded on 8 of march 2017.

loading packages…

warning: lutris-0.4.5-1 is up to date – reinstalling
resolving dependencies…
looking for conflicting packages…

Packages (1) lutris-0.4.5-1

Total Installed Size: 2,79 MiB
Net Upgrade Size: 0,00 MiB

Yeah, the version from AUR is still at 0.4.5, it will be updated eventually.

ok. I will wait and report back after testing with the 0.46

Just received the update, still get an error while running lutris
lutris-0.4.6-1 is up to date

$lutris
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/lutris/gui/application.py”, line 152, in do_activate
self.window = LutrisWindow(application=self)
File “/usr/lib/python3.6/site-packages/lutris/gui/lutriswindow.py”, line 83, in init
steam.sync_with_lutris()
File “/usr/lib/python3.6/site-packages/lutris/util/steam.py”, line 255, in sync_with_lutris
steamapps_paths = get_steamapps_paths()
File “/usr/lib/python3.6/site-packages/lutris/util/steam.py”, line 211, in get_steamapps_paths
for folder in winesteam_runner.get_steamapps_dirs():
File “/usr/lib/python3.6/site-packages/lutris/runners/winesteam.py”, line 308, in get_steamapps_dirs
linux_path = self.parse_wine_path(path, self.prefix_path)
File “/usr/lib/python3.6/site-packages/lutris/runners/winesteam.py”, line 145, in prefix_path
arch=self.game_config.get(‘arch’)
File “/usr/lib/python3.6/site-packages/lutris/runners/winesteam.py”, line 339, in get_or_create_default_prefix
self.create_prefix(prefix, arch=arch)
File “/usr/lib/python3.6/site-packages/lutris/runners/winesteam.py”, line 326, in create_prefix
create_prefix(prefix_dir, arch=arch, wine_path=wine_path)
File “/usr/lib/python3.6/site-packages/lutris/runners/wine.py”, line 86, in create_prefix
system.execute([wineboot_path], env=env)
File “/usr/lib/python3.6/site-packages/lutris/util/system.py”, line 64, in execute
env=existing_env, cwd=cwd).communicate()
File “/usr/lib/python3.6/subprocess.py”, line 707, in init
restore_signals, start_new_session)
File “/usr/lib/python3.6/subprocess.py”, line 1241, in _execute_child
for k, v in env.items()]
File “/usr/lib/python3.6/subprocess.py”, line 1241, in
for k, v in env.items()]
File “/usr/lib/python3.6/os.py”, line 798, in fsencode
filename = fspath(filename) # Does type-checking of filename.
TypeError: expected str, bytes or os.PathLike object, not NoneType

Any thoughts?

Antergos AUR user here and everything is ok for me…

Works correctly with normal Arch

Arch users will really make everything to be about their distribution :laughing:

This has obviously nothing to do with running Arch or Antergos or anything other distro, just a simple bug happening when parsing Steam games. (seems that Wine isn’t installed and it’s trying to access wine or something).

I think I have enough info to make it not crash in next release. I don’t think I can write a proper fix with what I have here (unless I somehow managed to reproduce it) but maybe just preventing the crash will be enough.

In my case after running it in debug mode I saw these two commands prior to the crash:

[system]:WINEARCH=None WINEPREFIX=/home/<username>/.local/share/lutris/runners/winesteam/prefix
[system]:Executing /usr/bin/wineboot

So I went to verify the above location and saw the prefix never created, after creating the directory manually lutris executed just fine.

2 Likes

You are NOT god, but I love you like you were. Solved

Just had same problem with new Arch install and this was the solution.

1 Like