-   Slackware (
-   -   python "module gi.repository is missing" (catfish for Xfce's Thunar) (

catkin 11-19-2012 01:23 AM

python "module gi.repository is missing" (catfish for Xfce's Thunar)
AFAIK this is a python problem ...

When built or run from the Slackware64 14.0 command line, catfish gets "Error: The required module gi.repository is missing".

According to the current catfish requirements are "PyGtk, GTK+3, python-xdg, dbus". All but python-xdg are installed with Slackware64 14.0:

root@CW8:/var/log/packages# ll pygtk* gtk+3* dbus*
-rw-r--r-- 1 root root 3.4K Nov 14 11:08 dbus-1.4.20-x86_64-3
-rw-r--r-- 1 root root 2.5K Nov 14 11:12 dbus-glib-0.98-x86_64-1
-rw-r--r-- 1 root root 4.4K Nov 14 11:12 dbus-python-1.1.0-x86_64-1
-rw-r--r-- 1 root root  63K Nov 14 11:14 gtk+3-3.4.4-x86_64-1
-rw-r--r-- 1 root root  35K Nov 14 11:15 pygtk-2.24.0-x86_64-1

SlackBuilds pyxdg (0.18) package was installed but the error occurred both during build and test usage.

According to 'net searches, gi.repository may be part of the python gobject library but I have not found such a thing for Slackware ... ?

In case it matters, catfish was built by this command

ver=; cp /home/c/d/Repository/src/catfish-$ver.tar.bz2 /tmp \
    && cd /tmp \
    && tar xjvf catfish-$ver.tar.bz2 \
    && cd catfish-$ver \
    && ./configure --prefix=/usr \
    && bu \
    && sed -i 's/wholename/name/g' \
    && make install

gmgf 11-19-2012 02:12 AM

module gi.repository is in pygobject version 3:

catkin 11-19-2012 05:34 AM

Thanks gmgf :)

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 :doh: 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 ...

gmgf 11-19-2012 05:39 AM

For zeitgeist look here:

catkin 11-19-2012 05:46 AM

Wrote too soon :(

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 "", line 23, in <module>
    from gi.repository import GObject, Gtk, Gdk, GdkPixbuf, Pango
  File "/usr/lib64/python2.7/site-packages/gi/", line 76, in load_module
  File "/usr/lib64/python2.7/site-packages/gi/", line 224, in _load
    overrides_modules = __import__('gi.overrides', fromlist=[self._namespace])
  File "/usr/lib64/python2.7/site-packages/gi/overrides/", 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.

gmgf 11-19-2012 05:53 AM

You use slackware 64 bits or 32 bits version ?

catkin 11-19-2012 05:54 AM

Thanks again gmgf :)

Thus informed, zeitgeist doesn't offer the sort of extra functionality that is worth the extra complexity for me, as an enthusiast of lightweight minimal systems.

catkin 11-19-2012 06:06 AM


Originally Posted by gmgf (Post 4832465)
You use slackware 64 bits or 32 bits version ?

64 bit

The last build error message was generated when building remotely over an ssh connection. The same commands, when run locally in a graphical terminal emulator gave

Checking module dependencies ...
... OK

gmgf 11-19-2012 09:33 AM

Try install 'pycairo' package.

catkin 11-19-2012 11:06 AM

pycairo is installed with Slackware64 14.0

There are no remaining issues unless you count a build procedure that gives an apparently non-fatal error when it is not run in a graphical environment.

All times are GMT -5. The time now is 09:07 AM.