Score:1

Problem opening Catfish: 'get_geometry'?

pr flag

I'm running Ubuntu 21.04. I've been using the Catfish search tool successfully for a while on 20.04 but since I updated to 21.04 it fails to open. (I've tried reinstalling it a few times, no different). When I open it from the terminal this is what I get:

john@john-u:~$ catfish
Traceback (most recent call last):
  File "/usr/bin/catfish", line 44, in <module>
    catfish.main()
  File "/usr/lib/python3/dist-packages/catfish/__init__.py", line 78, in main
    window = CatfishWindow.CatfishWindow()
  File "/usr/lib/python3/dist-packages/catfish_lib/Window.py", line 176, in __new__
    new_object.finish_initializing(builder)
  File "/usr/lib/python3/dist-packages/catfish/CatfishWindow.py", line 327, in finish_initializing
    (screen_width, screen_height) = self.get_screen_size()
  File "/usr/lib/python3/dist-packages/catfish/CatfishWindow.py", line 405, in get_screen_size
    geometry = monitor.get_geometry()
AttributeError: 'NoneType' object has no attribute 'get_geometry'

It seems to be something related to display configuration? Could it be related to the fact I am running multiple (3) monitors? I have a NVIDIA GeForce GTX 1050 Ti 4GB GDDR5 video card and am using X.Org X server.

Thanks in advance for any help! JohnS

Jacob Vlijm avatar
by flag
It's a bug. Apparently an exception can occur on "monitor", being None. get_geometry obviously can't handle that. The code should be edited to decide what happens when the exception occurs, or fix it to happen anyway. Best to file a bug.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.