Lutris suddenly doesn't start anymore

I use the latest arch linux lts version.
I received this popup before lutris ran for the last time:

JSON response from https://lutris.net/api/runtimes/versions?pci_ids=8086:46A8%2017AA:3802 could not be decoded: '{‘client_version":“0.5.14”, “gpus”:{“8086:46a8 17aa:3802”:{“vendor”:"Intel Corpor’

Now when I run lutris on command line, I get the following:

2024-01-09 15:35:15,073: Starting Lutris 0.5.14
2024-01-09 15:35:15,077: Running Intel Mesa driver 23.3.2 on Mesa Intel(R) Graphics (ADL GT2) (0x46a8)
2024-01-09 15:35:15,077: GPU: 8086:46A8 17AA:3802 (i915 drivers)
Traceback (most recent call last):
File “/usr/lib/python3.11/site-packages/lutris/gui/application.py”, line 310, in do_activate
self.window = LutrisWindow(application=self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3.11/site-packages/lutris/gui/lutriswindow.py”, line 126, in init
self.sidebar.initialize_rows()
File “/usr/lib/python3.11/site-packages/lutris/gui/widgets/sidebar.py”, line 440, in initialize_rows
self.update_rows()
File “/usr/lib/python3.11/site-packages/lutris/gui/widgets/sidebar.py”, line 527, in update_rows
self.installed_runners = [runner.name for runner in runners.get_installed()]
^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3.11/site-packages/lutris/runners/init.py”, line 101, in get_installed
runner = import_runner(runner_name)()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3.11/site-packages/lutris/runners/wine.py”, line 261, in init
“default”: get_default_version(),
^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3.11/site-packages/lutris/util/wine/wine.py”, line 217, in get_default_version
default_version = get_default_runner_version(“wine”)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3.11/site-packages/lutris/api.py”, line 140, in get_default_runner_version
runtime_versions = load_runtime_versions()
^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3.11/site-packages/lutris/api.py”, line 35, in load_runtime_versions
return json.load(runtime_file)
^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3.11/json/init.py”, line 293, in load
return loads(fp.read(),
^^^^^^^^^^^^^^^^
File “/usr/lib/python3.11/json/init.py”, line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3.11/json/decoder.py”, line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3.11/json/decoder.py”, line 355, in raw_decode
raise JSONDecodeError(“Expecting value”, s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
File “/usr/lib/python3.11/site-packages/lutris/gui/application.py”, line 699, in do_command_line
self.window.present()
^^^^^^^^^^^^^^^^^^^
AttributeError: ‘NoneType’ object has no attribute ‘present’
(lutris:1846): Gtk-WARNING **: 15:35:15.200: Creating a portal monitor failed: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.Inhibit” on object at path /org/freedesktop/portal/desktop
Traceback (most recent call last):
File “/usr/lib/python3.11/site-packages/lutris/style_manager.py”, line 77, in _call_cb
values = obj.call_finish(result)
^^^^^^^^^^^^^^^^^^^^^^^
gi.repository.GLib.GError: g-dbus-error-quark: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.Settings” on object at path /org/freedesktop/portal/desktop (19)

Is this a python problem? How can I fix this and how can I prevent this from happening again? (This had happened once before and I fixed it by reinstalling lutris but I don’t want to do it again since it’s a bit of a hassle to set everything up again)

I’ve tried removing the dxvk folder in .local/share/lutris/runtime/ but that folder never seemed to reappear when I restarted lutris.

The fix was to reinstall python :expressionless:

sudo pacman -S python