NameError: name '_gtk' is not defined

Jon Schull schull at digitalgoods.com
Sun May 4 18:13:28 EDT 2003


I'm trying to get pyscintilla to work on winXP home.

I have a pyscintilla directory 
and I installed pygtk 0.6.5
I can import GDK but when I  try to import gtk...

Python 2.2 (#28, Dec 21 2001, 12:21:22) [MSC 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import gtk
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "gtk.py", line 33, in ?
    _gtk.gtk_init()
NameError: name '_gtk' is not defined

I suspect I need a 2.2-compatible _gtk.pyd... ?

Thanks in advance




More information about the Python-list mailing list