LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-19-2012, 12:23 AM   #1
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
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
 
Old 11-19-2012, 01:12 AM   #2
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 2,211

Rep: Reputation: 998Reputation: 998Reputation: 998Reputation: 998Reputation: 998Reputation: 998Reputation: 998Reputation: 998
module gi.repository is in pygobject version 3:

http://ftp.gnome.org/pub/gnome/sources/pygobject/

Last edited by gmgf; 11-19-2012 at 01:13 AM.
 
1 members found this post helpful.
Old 11-19-2012, 04:34 AM   #3
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578

Original Poster
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
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 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 ...
 
Old 11-19-2012, 04:39 AM   #4
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 2,211

Rep: Reputation: 998Reputation: 998Reputation: 998Reputation: 998Reputation: 998Reputation: 998Reputation: 998Reputation: 998
For zeitgeist look here:

http://zeitgeist-project.com/
 
1 members found this post helpful.
Old 11-19-2012, 04:46 AM   #5
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578

Original Poster
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
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
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.
 
Old 11-19-2012, 04:53 AM   #6
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 2,211

Rep: Reputation: 998Reputation: 998Reputation: 998Reputation: 998Reputation: 998Reputation: 998Reputation: 998Reputation: 998
You use slackware 64 bits or 32 bits version ?
 
Old 11-19-2012, 04:54 AM   #7
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578

Original Poster
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
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.
 
Old 11-19-2012, 05:06 AM   #8
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578

Original Poster
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Quote:
Originally Posted by gmgf View Post
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
Code:
Checking module dependencies ...
... OK
 
Old 11-19-2012, 08:33 AM   #9
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 2,211

Rep: Reputation: 998Reputation: 998Reputation: 998Reputation: 998Reputation: 998Reputation: 998Reputation: 998Reputation: 998
Try install 'pycairo' package.
 
Old 11-19-2012, 10:06 AM   #10
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578

Original Poster
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
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.
 
Old 08-15-2017, 02:02 AM   #11
shantiq
LQ Newbie
 
Registered: Aug 2009
Location: Norwich UK
Distribution: Ubuntu LTS/Slackware/Manjaro
Posts: 20
Blog Entries: 1

Rep: Reputation: 0
Quote:
Originally Posted by gmgf View Post
module gi.repository is in pygobject version 3:

http://ftp.gnome.org/pub/gnome/sources/pygobject/
Thank you this was also needed for gis-weather august 2017 and is in the repositories under pygobject
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"Cannot Find Missing Dependency: Python(abi)-2.5" CamoAnimal Linux - Software 3 10-21-2009 02:38 PM
"ImportError: No module named gobject", Exaile fails to run. Python problem. kummiliim Linux - Software 1 12-11-2008 01:12 PM
Local repository message: " ... missing from override file" babypeng Linux - Newbie 0 06-12-2008 12:55 AM
Superkaramba won't compile in Slack 12.1- "missing python headers and libraries" maniac matt Slackware 2 05-11-2008 12:42 AM
Python compilation error, "module search path"etc.. mindfestival Linux - Newbie 0 05-31-2004 02:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration