FS#2191 - gnome-panel 2.8.2-2 breaks python / pygtk?
Attached to Project:
Arch Linux
Opened by Sascha Erni (nggalai) - Saturday, 12 February 2005, 07:16 GMT
Opened by Sascha Erni (nggalai) - Saturday, 12 February 2005, 07:16 GMT
|
Details
Starting python applications such as gdesklets, notemeister
etc. don't run any longer after upgrading to gnome-panel
2.8.2-2. Error message are of the form
ImportError: No module named gnome i.e. the modules such as gnome, gconf and gtk aren't found. <JGC> it's the pygtk.require(2.0) that's causing problems <JGC> hmm <JGC> # remove any pygtk dirs first ... <JGC> for dir in sys.path: <JGC> if fnmatch.fnmatchcase(os.path.basename(dir), _pygtk_dir_pat): <JGC> sys.path.remove(dir) <JGC> that's what the require function does <JGC> it removes all pygtk paths <JGC> we have a split-up pygtk install |
This task depends upon
This bug is caused by pygtk that kicks out all searchpaths with gtk-2.0 in it, including the path where vte, gconf, python-gnome, etc is located.
As soon as a python program imports pygtk, then does "pygtk.require('2.0')", then python will have /opt/gnome/lib/python2.4/site-packages erased from the search path.