Problems with meld on CentOS 5.7

Issues related to software problems.
Post Reply
patfla
Posts: 17
Joined: 2010/07/31 19:17:23

Problems with meld on CentOS 5.7

Post by patfla » 2011/11/23 19:36:57

I'd like to use meld to visually see svn diffs in rapidsvn.

Installed meld. When I try to run it, I get

[code] # meld
Cannot import: pygtk
No module named pygtk
#[/code]

OK, there are a bunch of python installations on this machine (a machine at work). Typically I use 2.7 - but that's not the default - the default is 2.6 - and it doesn't have pygtk installed.

[code]# yum install pygtk2.x86_64
Loaded plugins: downloadonly, fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.sonic.net
* epel: linux.mirrors.es.net
* extras: mirror.web-ster.com
* rpmforge: ftp-stud.fht-esslingen.de
* rpmfusion-free-updates: mirror.web-ster.com
* rpmfusion-free-updates-testing: mirror.web-ster.com
* rpmfusion-nonfree-updates: mirror.web-ster.com
* rpmfusion-nonfree-updates-testing: mirror.web-ster.com
* updates: mirror.5ninesolutions.com
Excluding Packages from CentOS-5 - Base
Finished
Excluding Packages from CentOS-5 - Updates
Finished
Setting up Install Process
Nothing to do
[root@adin2 ~]# locate pygtk2
/root/packages/pygtk-2.24.0/docs/reference/pygtk2-ref.xml
/usr/share/doc/pygtk2-2.10.1
/usr/share/doc/pygtk2-2.10.1/AUTHORS
/usr/share/doc/pygtk2-2.10.1/ChangeLog
/usr/share/doc/pygtk2-2.10.1/MAPPING
/usr/share/doc/pygtk2-2.10.1/NEWS
/usr/share/doc/pygtk2-2.10.1/README
/usr/share/doc/pygtk2-2.10.1/examples

.....

/usr/share/doc/pygtk2-2.10.1/examples/simple/dndpixmap.py
/usr/share/doc/pygtk2-2.10.1/examples/simple/hello.py
/usr/share/doc/pygtk2-2.10.1/examples/simple/scribble.py
/usr/share/doc/pygtk2-2.10.1/examples/simple/simple.py
/usr/share/doc/pygtk2-2.10.1/examples/simple/tooltip.py
#
[/code]

Yum thinks it's already installed and yet locate tells me that all I have of pygtk2 is some examples under /usr/share/doc.

How would I [u]remove[/u] something (pygtk2) from the rpm database?

[code]# yumdownloader \*pygtk2\*
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.sonic.net
* epel: linux.mirrors.es.net
* extras: centos.mirror.facebook.net
* rpmforge: ftp-stud.fht-esslingen.de
* rpmfusion-free-updates: mirror.web-ster.com
* rpmfusion-free-updates-testing: mirror.web-ster.com
* rpmfusion-nonfree-updates: mirror.web-ster.com
* rpmfusion-nonfree-updates-testing: mirror.web-ster.com
* updates: centos.mirror.facebook.net
Excluding Packages from CentOS-5 - Base
Finished
Excluding Packages from CentOS-5 - Updates
Finished
pygtk2-devel-2.10.1-12.el5.x86_64.rpm | 1.1 MB 00:01
pygtk2-devel-2.10.1-12.el5.i386.rpm | 1.1 MB 00:01
pygtk2-codegen-2.10.1-12.el5.x86_64.rpm | 166 kB 00:00
pygtk2-libglade-2.10.1-12.el5.x86_64.rpm | 19 kB 00:00
[/code]

OK that worked.

but it turns out the pygtk devel needs the pygtk base package - and yum didn't find it.

So I find this:

http://www.pygtk.org/downloads.html

No prebuilt rpm for linux - I have to build from source.

Download and try to build the source. Here's the list of dependencies I've run into

meld needs
pygtk needs
pygobject needs
gojbect-introspection

All have to be built from source (on linux/CenOS)

gobject-intropsection comes from here

http://live.gnome.org/GObjectIntrospection

you download its source using git

goject-introspection needs the latest versions of all kinds of GNU tools (e.g. autoconf)

Autogen.sh for gobject-introspection gets to here:

[code]checking for dlopen in -ldl... yes
checking for the suffix of shared libraries... .so
./configure: line 12862: syntax error near unexpected token `GLIB,'
./configure: line 12862: `PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.29.7)'
#[/code]

I do have glib but I had to built that from source too and put it into /usr/local/glib

problem is I don't know how to specify that location to autogen.sh for gobject-introspection.

Seems like there must be an easier way to do this.

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Problems with meld on CentOS 5.7

Post by pschaff » 2011/11/29 00:57:10

[quote]
patfla wrote:
I'd like to use meld to visually see svn diffs in rapidsvn.

Installed meld. When I try to run it, I get

[code] # meld
Cannot import: pygtk
No module named pygtk
#[/code][/quote]
Apparently you did not install from the packages available from EPEL or RPMforge that would have satisfied dependencies.

[quote]
OK, there are a bunch of python installations on this machine (a machine at work). Typically I use 2.7 - but that's not the default - the default is 2.6 - and it doesn't have pygtk installed.[/quote]
Sounds like a problem. CentOS-5 has python-2.4.3-44.el5_7.1

[quote]
[code]# yum install pygtk2.x86_64
Loaded plugins: downloadonly, fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.sonic.net
* epel: linux.mirrors.es.net
* extras: mirror.web-ster.com
* rpmforge: ftp-stud.fht-esslingen.de
* rpmfusion-free-updates: mirror.web-ster.com
* rpmfusion-free-updates-testing: mirror.web-ster.com
* rpmfusion-nonfree-updates: mirror.web-ster.com
* rpmfusion-nonfree-updates-testing: mirror.web-ster.com
* updates: mirror.5ninesolutions.com
Excluding Packages from CentOS-5 - Base
Finished
Excluding Packages from CentOS-5 - Updates
Finished
Setting up Install Process
Nothing to do[/code][/quote]
You have 3rd party repos installed and have not installed and configured the [url=http://wiki.centos.org/PackageManagement/Yum/Priorities]yum priorities plugin[/url]. Core packages have likely been replaced. I suspect you may also have [url=http://wiki.centos.org/PackageManagement/SourceInstalls]Source Installs[/url].

Check the "exclude=" directives in the repo configs, or perhaps better [url=http://www.centos.org/modules/newbb/viewtopic.php?topic_id=28723&forum=54]provide more information about your system[/url] by running "./getinfo.sh package" and showing us the output file.

[quote]
[root@adin2 ~]# locate pygtk2
/root/packages/pygtk-2.24.0/docs/reference/pygtk2-ref.xml
/usr/share/doc/pygtk2-2.10.1
/usr/share/doc/pygtk2-2.10.1/AUTHORS
/usr/share/doc/pygtk2-2.10.1/ChangeLog
/usr/share/doc/pygtk2-2.10.1/MAPPING
/usr/share/doc/pygtk2-2.10.1/NEWS
/usr/share/doc/pygtk2-2.10.1/README
/usr/share/doc/pygtk2-2.10.1/examples
[/quote]
Let's see...
[code]
# rpm -qf /usr/share/doc/pygtk2-2.10.1
pygtk2-2.10.1-12.el5[/code]
What does "rpm -V pygtk2" show? How about "rpm -qa python\*"?

[quote]
...
Seems like there must be an easier way to do this.[/quote]
The easy way is to stick to the core distro packages with judicious use of packages from 3rd party repos as required. You seem to be in the situation of "If you break it you get to keep all the pieces." We can attempt to help if you provide the required information but replacement of a core package like python may be a fatal error.

Post Reply