Is anyone having trouble with lutris in 32660? I downgraded to 32580 and it works fine. Upgraded again and it no longer works.
Here is the output from the command line:
$ lutris
2020-03-21 11:47:47,112: Running Lutris 0.5.4
2020-03-21 11:47:47,113: Using Intel
2020-03-21 11:47:47,113: Running Mesa driver 20.1.0 on Mesa Intel(R) UHD Graphics 620 (KBL GT2) (0x5917)
2020-03-21 11:47:47,113: GPU: 8086:5917 1043:1C20 using i915 drivers
2020-03-21 11:47:47,155: Vulkan is supported
2020-03-21 11:47:47,156: Updating DXVK versions
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/lutris/gui/application.py", line 173, in do_activate
self.window = LutrisWindow(application=self)
File "/usr/lib/python3.8/site-packages/lutris/gui/lutriswindow.py", line 102, in __init__
self.game_store = self.get_store()
File "/usr/lib/python3.8/site-packages/lutris/gui/lutriswindow.py", line 315, in get_store
game_store = GameStore(
File "/usr/lib/python3.8/site-packages/lutris/gui/views/store.py", line 133, in __init__
self.modelsort = Gtk.TreeModelSort.sort_new_with_model(self.modelfilter)
AttributeError: type object 'TreeModelSort' has no attribute 'sort_new_with_model'
2020-03-21 11:47:47,659: Updating D9VK versions
Any ideas?
Lutris didn’t have a release in that time period but Gtk was bumped to a new version:
committed 06:11PM - 16 Mar 20 UTC
Overview of Changes in GTK+ 3.24.14
===================================
* Fix t… he opaque region for windows on X11
* theme:
- Fix flat buttons in backdrop
- Make popovers look more similar to menus
- Tweak checkbox & radiobutton appearance
- Add general typography classes (heading, title-1, etc)
* language bindings:
- Fix annotations for gtk_tree_model_sort_new_with_model
* switch: Fix touch support
(NEWS truncated at 15 lines)
And it looks like this was a known issue in the lutris repo (and creeped up again):
opened 09:13PM - 28 Dec 19 UTC
closed 08:45PM - 01 Jan 20 UTC
**Describe the bug**
Lutris is failing to launch with the below error. I am usi… ng Python 3.6. Lutris used to work, but it recently started failing. I'm using Gentoo. Maybe this is related to a GTK update. My gtk is version 3.24.13
````
019-12-28 15:25:13,574: Running Lutris 0.5.4
2019-12-28 15:25:13,574: Using X.Org
2019-12-28 15:25:13,574: Running Mesa driver 20.0.0 on Radeon RX Vega (VEGA10, DRM 3.35.0, 5.4.6-gentoo, LLVM 9.0.1) (0x687f)
2019-12-28 15:25:13,574: GPU: 1002:687F 1DA2:E37F using amdgpu drivers
2019-12-28 15:25:13,574: GPU: 1002:6779 174B:E164 using radeon drivers
2019-12-28 15:25:13,588: Vulkan is supported
2019-12-28 15:25:13,589: Updating DXVK versions
Traceback (most recent call last):
File "/usr/lib64/python3.6/site-packages/lutris/gui/application.py", line 173, in do_activate
self.window = LutrisWindow(application=self)
File "/usr/lib64/python3.6/site-packages/lutris/gui/lutriswindow.py", line 102, in __init__
self.game_store = self.get_store()
File "/usr/lib64/python3.6/site-packages/lutris/gui/lutriswindow.py", line 321, in get_store
self.show_installed_first,
File "/usr/lib64/python3.6/site-packages/lutris/gui/views/store.py", line 133, in __init__
self.modelsort = Gtk.TreeModelSort.sort_new_with_model(self.modelfilter)
AttributeError: type object 'TreeModelSort' has no attribute 'sort_new_with_model'
2019-12-28 15:25:13,774: Updating D9VK versions
````
**Expected behavior**
I expect it to open
**Current behavior**
It doesn't open
**Steps to reproduce**
- 1) Open lutris
-
-
**Lutris debugging output**
The terminal output of `lutris -d`.
Same as above output
**System information**
https://paste.ubuntu.com/p/SzVBJr47sD/
**Screenshots**
Not relevant
Following the messages there, it looks like a patch is already merged in their master branch which Clear Linux will pick up as soon as they make the next release.
Thanks for the update. I look forward to the patch.
I just tried manually doing the patch you noted above by editing the file /usr/lib/python3.8/site-packages/lutris/gui/views/store.py:
sudo gedit /usr/lib/python3.8/site-packages/lutris/gui/views/store.py
I navigated to line 133 which contains:
self.modelsort = Gtk.TreeModelSort.new_with_model(self.modelfilter)
And replaced it with:
try:
self.modelsort = Gtk.TreeModelSort.sort_new_with_model(self.modelfilter)
except AttributeError:
# Apparently some API breaking changes on GTK minor versions.
self.modelsort = Gtk.TreeModelSort.new_with_model(self.modelfilter)
Saved the file and lutris works again for now. Hopefully they will release their patched version soon.