LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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, 01:23 AM   #1
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,557
Blog Entries: 28

Rep: Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178
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, 02:12 AM   #2
gmgf
Member
 
Registered: Jun 2012
Location: France
Distribution: Slackware Zenwalk
Posts: 166

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

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

Last edited by gmgf; 11-19-2012 at 02:13 AM.
 
1 members found this post helpful.
Old 11-19-2012, 05:34 AM   #3
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,557
Blog Entries: 28

Original Poster
Rep: Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178
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, 05:39 AM   #4
gmgf
Member
 
Registered: Jun 2012
Location: France
Distribution: Slackware Zenwalk
Posts: 166

Rep: Reputation: Disabled
For zeitgeist look here:

http://zeitgeist-project.com/
 
1 members found this post helpful.
Old 11-19-2012, 05:46 AM   #5
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,557
Blog Entries: 28

Original Poster
Rep: Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178
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, 05:53 AM   #6
gmgf
Member
 
Registered: Jun 2012
Location: France
Distribution: Slackware Zenwalk
Posts: 166

Rep: Reputation: Disabled
You use slackware 64 bits or 32 bits version ?
 
Old 11-19-2012, 05:54 AM   #7
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,557
Blog Entries: 28

Original Poster
Rep: Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178
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, 06:06 AM   #8
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,557
Blog Entries: 28

Original Poster
Rep: Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178
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, 09:33 AM   #9
gmgf
Member
 
Registered: Jun 2012
Location: France
Distribution: Slackware Zenwalk
Posts: 166

Rep: Reputation: Disabled
Try install 'pycairo' package.
 
Old 11-19-2012, 11:06 AM   #10
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,557
Blog Entries: 28

Original Poster
Rep: Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 03:38 PM
"ImportError: No module named gobject", Exaile fails to run. Python problem. kummiliim Linux - Software 1 12-11-2008 02:12 PM
Local repository message: " ... missing from override file" babypeng Linux - Newbie 0 06-12-2008 01:55 AM
Superkaramba won't compile in Slack 12.1- "missing python headers and libraries" maniac matt Slackware 2 05-11-2008 01:42 AM
Python compilation error, "module search path"etc.. mindfestival Linux - Newbie 0 05-31-2004 03:52 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration