Jon Nelson wrote:

>Replying to myself:
>
>importing gtk *twice* does the trick.
>What's going on there?
>
After the first failed import, there is a "gtk" module registered in 
sys.modules.  The second import appears to succeed, but is not correct.

>
>On Mon, 26 Aug 2002 09:05:42 -0500
>Jon Nelson <[EMAIL PROTECTED]> wrote:
>
>  
>
>>OK, it built, but I get errors importing gtk:
>>
>>    
>>
>>>>>import pygtk
>>>>>pygtk._get_available_versions()
>>>>>          
>>>>>
>>{'1.2': '/usr/lib/python1.5/site-packages/gtk-1.2'}
>>    
>>
>>>>>pygtk.require('1.2')
>>>>>import gtk
>>>>>          
>>>>>
>>Traceback (innermost last):
>>  File "<stdin>", line 1, in ?
>>  File "/usr/lib/python1.5/site-packages/gtk-1.2/gtk.py", line
>>  22, in ?
>>    import _gtk
>>ImportError:
>>/usr/lib/python1.5/site-packages/gtk-1.2/_gtkmodule.so:
>>undefined symbol: GTK_TYPE_GDK_COLOR
>>    
>>
Got no idea about this.  It sounds like your _gtkmodule.so is not linked 
correctly.  Does libgtk-1.2.so get listed when you run "ldd 
/usr/lib/python1.5/site-packages/gtk-1.2/_gtkmodule.so" ?

James.

-- 
Email: [EMAIL PROTECTED]              | Linux.conf.au   http://linux.conf.au/
WWW:   http://www.daa.com.au/~james/ | Jan 22-25   Perth, Western Australia. 




_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to