[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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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.