[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.
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
python "module gi.repository is missing" (catfish 0.4.0.2 for Xfce's Thunar)
AFAIK this is a python problem ...
When built or run from the Slackware64 14.0 command line, catfish 0.4.0.2 gets "Error: The required module gi.repository is missing".
According to http://twotoasts.de/index.php/catfish/ the current catfish requirements are "PyGtk, GTK+3, python-xdg, dbus". All but python-xdg are installed with Slackware64 14.0:
Code:
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
Code:
ver=0.4.0.2; 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 catfish.py \
&& sed -i 's/wholename/name/g' catfish.py \
&& make install
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
Code:
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
dynamic_module._load()
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.
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.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.