Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

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
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Architecture not specified
Severity Medium
Priority Normal
Reported Version 0.7 Wombat
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

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

Closed by  Jan de Groot (JGC)
Sunday, 13 February 2005, 00:44 GMT
Reason for closing:  Fixed
Comment by Jan de Groot (JGC) - Saturday, 12 February 2005, 08:04 GMT
I'm moving the python stuff to /usr/lib/python2.4 instead of /opt/gnome/...
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.

Loading...