On Thu, 14 Dec 2000, Niklas Saers Mailinglistaccount wrote:
> Hey. While following http://www.baypiggies.org/10mintig.html it asks me
> to do an "from gtk import *". However, this produces the following error:
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File "gtk.py", line 4, in ?
> from gnome.ui import *
That isn't what is on line 4 of the gtk.py file distributed with
pygtk. Also given that there is no path given, I assume that this file is
in the current directory, and is one of your file.
> File "/usr/local/lib/python2.0/site-packages/gnome/ui.py", line 16, in ?
> _obj2inst = _gtk._obj2inst
> AttributeError: _obj2inst
>
> When I directly afterwards do a "from gtk import *" it is all right. Is
> this some kind of init error? Is there any way to fix this?
Don't call your program gtk.py, or don't put a file called gtk.py in the
current directory :)
James.
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk