After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 348691 - pygtk can't handle being imported more than once
pygtk can't handle being imported more than once
Status: RESOLVED DUPLICATE of bug 349026
Product: pygtk
Classification: Bindings
Component: gtk
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2006-07-25 20:32 UTC by Ray Strode [halfline]
Modified: 2006-08-05 15:12 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Ray Strode [halfline] 2006-07-25 20:32:54 UTC
if you:

import gtk
and then
reload(gtk)

it fails. Or if you make import gtk fail initially then it won't work later
when it should:
os.environ["DISPLAY"] = "junk"
import gtk
os.environ["DISPLAY"] = ":0"
import gtk

(from https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=199629)
system-config-display tries to import gtk to see if it can use the existing X server, otherwise it falls back to starting its own.
Comment 1 Johan (not receiving bugmail) Dahlin 2006-08-05 15:12:05 UTC

*** This bug has been marked as a duplicate of 349026 ***