[SOLVED] python "module gi.repository is missing" (catfish 0.4.0.2 for Xfce's Thunar)
SlackwareThis Forum is for the discussion of Slackware Linux.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
After installing the SlackBuild pygobject3 package the error message no longer appeared.
I had found gobject version 3 but wrongly assumed that it was for python version 3 so discounted it as the installed python is 2.7.3.
After installing the pygobject3, there was another message when testing catfish from the command prompt: "Warning: The optional module zeitgeist.client is missing". Seems to be a dbus interface. Perhaps it would add functionality so would be worth installing but a quick look didn't reveal how and there are higher priority tasks for now. Suggestions welcome ...
After testing catfish as built and installed (without pygobject installed), I thought the build should be done again with pygobject installed but got this apparently non-fatal error
Checking module dependencies...
Traceback (most recent call last):
File "build.py", line 23, in <module>
from gi.repository import GObject, Gtk, Gdk, GdkPixbuf, Pango
File "/usr/lib64/python2.7/site-packages/gi/importer.py", line 76, in load_module
File "/usr/lib64/python2.7/site-packages/gi/module.py", line 224, in _load
overrides_modules = __import__('gi.overrides', fromlist=[self._namespace])
File "/usr/lib64/python2.7/site-packages/gi/overrides/Gtk.py", line 1533, in <module>
raise RuntimeError("Gtk couldn't be initialized")
RuntimeError: Gtk couldn't be initialized
The installed /usr/bin/catfish (a bash script to run /usr/share/catfish/catfish.pyc) works as before.