Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 09-12-2005, 09:01 PM   #1
Registered: Sep 2005
Location: Houston, Tx
Distribution: debian, SuSe, Fedora
Posts: 32

Rep: Reputation: 15
** ERROR **: PyGTK (2, 6, 0) required, but (2, 4, 1) found

As per the subject, my debian system is fowled up somehow.. I have purged and reinstalled the pygtk 2.6.x package so many time I can't beging to count them and yet I keep getting this SAME error msg..
mike@cptnkirk:~ $ hal-device-manager
** ERROR **: PyGTK (2, 6, 0) required, but (2, 4, 1) found.
To keep it short and simple, I've done all the pkg-config --modversion and looked at the pygtk pc file and everything says version 2.6.2 is insalled NOT 2.4.1.... I finally looked at the one application that I can run from the CLI and get the error to the screen to see if it could tell me anything... This is what I did..

mike@cptnkirk:~ $ hal-device-manager << run the application to get the error..
** ERROR **: PyGTK (2, 6, 0) required, but (2, 4, 1) found.

mike@cptnkirk:~ $ locate hal | grep 'bin/h' << find what 'bin/ directory the executable was in
/usr/bin/hal-device-manager << ah, haaa, here it is...
mike@cptnkirk:~ $ cat /usr/bin/hal-device-manager <<dump it to the screen

"""This is the main executable for DeviceManager. GTK+/Glade code is based
on simplepy from Shannon -jj Behrens <>"""

import sys
import pygtk << MAYBE THIS is where the problem is?
import gtk
import gnome

I have absolutely NO idea where the 'pygtk' is located that this script is wanting to import NOR do I have any idea how it determines what the version number of the pygtk is...

Seems if I could solve this mistery, I MIGHT be able to solve this long time problem... I really think this is also the cause of several applications like GDM and GIMP and others to just DIE without a trace of evidence of what the hell happened to them..

PLS... I'm getting disperate over this one.. if I can't solve it, I'm gona have to backup all my data and try 'yet another' fresh install and I thought those days were all behind me..

Old 09-12-2005, 11:14 PM   #2
Senior Member
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
i don't have or use that module so please forgive errors
(all seperate commands)
import gobject

should return a triple i think
Cntrl d
to exit

python can be a bit tricky about it's modules but i have also noticed people missusing version checking code as well

you could try in that file finding what is most likely a line calling
if gtk.pygtk_version >= (2,6,0):

or something similar
just change it to 2.0 and see if it still works
Old 09-14-2005, 03:24 PM   #3
Registered: Sep 2005
Location: Houston, Tx
Distribution: debian, SuSe, Fedora
Posts: 32

Original Poster
Rep: Reputation: 15
well you were right about the triplet and it is (2, 4, 1)
soo... now to see if I can find where it is demanding version 2.6 and maybe I can alteast skirt the one problem with hal-device-manager...

will keep you posted..

thanks for the help..
mr mike..


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
help required to solve error = line 3: H: command not found Imtiaz Deen Red Hat 1 07-29-2005 01:01 PM
pygtk install found 2 versions of glib and complains Kanaflloric Linux - Software 1 09-28-2004 04:46 AM
Configure Error with pyGTK ljr2600 Linux - Software 0 09-06-2004 04:18 PM
Error: "A required .DLL file, CYGPCRE -0.DLL, was not found" when using man dipperdan Linux - Newbie 2 04-28-2004 03:55 PM
pygtk-2.0 not found during install of gnome-python? morrolan Linux - Software 9 02-02-2004 01:13 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:17 AM.

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