Lutris fails to launch, "NoneType object has no attribute 'present.'"

Here’s the submit issue output.

Never been able to launch Lutris, whether through the command line or through the graphical application. Tried reinstalling twice. Running ParrotOS4.10, KDE Plasma 5. Every time I try to launch through the command line, I get this:

2020-10-03 16:13:11,528: Running Lutris 0.5.1.3
2020-10-03 16:13:11,528: Using NVIDIA drivers 450.66 for x86_64
2020-10-03 16:13:11,528: GPU: GeForce GTX 1650 Ti
2020-10-03 16:13:11,528: GPU: 10DE:1F95 1558:8535 using nvidia drivers
2020-10-03 16:13:11,529: GPU: 8086:9BC4 1558:8535 using i915 drivers
2020-10-03 16:13:11,551: Vulkan is supported
2020-10-03 16:13:11,551: Updating DXVK versions
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/lutris/gui/application.py", line 172, in do_activate
    self.window = LutrisWindow(application=self)
  File "/usr/lib/python3/dist-packages/lutris/gui/lutriswindow.py", line 100, in __init__
    self.game_store = self.get_store()
  File "/usr/lib/python3/dist-packages/lutris/gui/lutriswindow.py", line 287, in get_store
    game_store = GameStore(
  File "/usr/lib/python3/dist-packages/lutris/gui/views/store.py", line 117, in __init__
    self.modelsort = Gtk.TreeModelSort.sort_new_with_model(self.modelfilter)
AttributeError: type object 'TreeModelSort' has no attribute 'sort_new_with_model'
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/lutris/gui/application.py", line 335, in do_command_line
    self.window.present()
AttributeError: 'NoneType' object has no attribute 'present'

Running lutris -d yields:

INFO     2020-10-03 16:25:28,542 [application.do_command_line:219]:Running Lutris 0.5.1.3
INFO     2020-10-03 16:25:28,543 [startup.check_driver:55]:Using NVIDIA drivers 450.66 for x86_64
INFO     2020-10-03 16:25:28,543 [startup.check_driver:59]:GPU: GeForce GTX 1650 Ti
INFO     2020-10-03 16:25:28,543 [startup.check_driver:74]:GPU: 10DE:1F95 1558:8535 using nvidia drivers
INFO     2020-10-03 16:25:28,543 [startup.check_driver:74]:GPU: 8086:9BC4 1558:8535 using i915 drivers
INFO     2020-10-03 16:25:28,577 [startup.check_vulkan:113]:Vulkan is supported
INFO     2020-10-03 16:25:28,577 [dxvk.get_dxvk_versions:24]:Updating DXVK versions
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/lutris/gui/application.py", line 172, in do_activate
    self.window = LutrisWindow(application=self)
  File "/usr/lib/python3/dist-packages/lutris/gui/lutriswindow.py", line 100, in __init__
    self.game_store = self.get_store()
  File "/usr/lib/python3/dist-packages/lutris/gui/lutriswindow.py", line 287, in get_store
    game_store = GameStore(
  File "/usr/lib/python3/dist-packages/lutris/gui/views/store.py", line 117, in __init__
    self.modelsort = Gtk.TreeModelSort.sort_new_with_model(self.modelfilter)
AttributeError: type object 'TreeModelSort' has no attribute 'sort_new_with_model'
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/lutris/gui/application.py", line 335, in do_command_line
    self.window.present()
AttributeError: 'NoneType' object has no attribute 'present'

Thanks in advance for the help!

Any particular reason you’re stuck on 5.1.x? It’s a pretty old version.

It’s just what installed when I installed lutris (following the instructions for debian installs provided at https://lutris.net/downloads/).

It’s also what I get from doing apt install lutris, so the method of install doesn’t seem to change it

I’m using the same Debian 10 repo and it’s definitely on 5.7.1. You might be getting an old version from elsewhere.
apt search is your friend; That, and grep -li Lutris /etc/apt/sources.list.d/*.list
:slight_smile:

lutris.list has this as its one line:
deb http://download.opensuse.org/repositories/home:/strycore/Debian_10/ ./

And yet apt search lutris yields
lutris/rolling 0.5.1.3 amd64

The link is clearly to 5.7.1. I’m relatively new to GNU Linux in general; how should I fix this? Thanks again for all your help.