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 320221 - Import gtk won't work if pygtk has been imported first.
Import gtk won't work if pygtk has been imported first.
Status: RESOLVED DUPLICATE of bug 310563
Product: pygtk
Classification: Bindings
Component: gtk
2.6.x
Other Linux
: Normal major
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2005-10-30 07:42 UTC by Nick
Modified: 2006-04-02 17:13 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Nick 2005-10-30 07:42:27 UTC
What happens:
I get this error message:
Traceback (most recent call last):
  • File "base.py", line 5 in ?
    import gtk
ImportError: No module named gtk

What I would expect to happen is a 200x200 pixel window to be created.
The program base.py can be found here:
http://www.pygtk.org/pygtk2tutorial/examples/base.py
If the lines import pygtk and pygtk.require('2.0') are not included, the program
works fine.
Comment 1 John Ehresman 2006-01-07 18:20:23 UTC
Is this when running the demo with a uninstalled copy of pygtk?  Can you check to see if this still occurs and provide instructions on how to reproduce it?
Comment 2 Gustavo Carneiro 2006-04-02 17:13:03 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.


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