Bug 199629
Summary: | ImportError: cannot import name _gtk | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Nicolas Mailhot <nicolas.mailhot> |
Component: | pygtk2 | Assignee: | John (J5) Palmieri <johnp> |
Status: | CLOSED RAWHIDE | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | rawhide | CC: | jkeck, redwolfe, twoerner |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2006-07-28 03:20:48 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 150223, 197822 |
Description
Nicolas Mailhot
2006-07-20 20:30:26 UTC
so the real problem is pygtk's initialization code can't handle being called twice. if you: import gtk and then reload(gtk) it fails. Or you 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 *** Bug 200092 has been marked as a duplicate of this bug. *** pygtk2-2.9.3-3 is building with a fix. fix is in rawhide |