This morning I installed the CVS gnome-python, ran into some troubles,
and went back to pygtk-1.99.16.  But now everytime I try to call
'connect', I get a seg fault.  

I cleaned my old distribution by doing, in the freshly untarred
pygtk-1.99.16 src tree

 > sudo rm -rf /usr/lib/python2.2/site-packages/*gtk*
 > sudo rm -rf /usr/share/pygtk/
 > sudo /usr/bin/python2.2 setup.py install

and the build went smoothly, but still get seg faults on any call to
connect, as in this script:

    import gtk

    window = gtk.Window()
    vbox = gtk.VBox(spacing=3)
    window.add(vbox)
    vbox.show()


    button = gtk.Button('Quit')
    #button.connect('clicked', lambda widget: gtk.mainquit())
    button.show()
    vbox.pack_start(button)

    window.show()
    gtk.mainloop()

With the connect line commented out, this script runs fine.  When I
uncomment the connect line, I get a seg fault.

Any idea what might be going wrong that would explain this?  Are there
any other files that I might have killed by removing /usr/lib/pygtk
that would not be rebuilt from the 1.99.16 src tree?  

If anyone has any advice on how I can debug, diagnose, or fix this
problem, I'm much obliged.  Below I'll list my gtk-2.0 dir -- is
anything critical missing?

John Hunter

[EMAIL PROTECTED] lib]# find /usr/lib/python2.2/site-packages/gtk-2.0/
/usr/lib/python2.2/site-packages/gtk-2.0/
/usr/lib/python2.2/site-packages/gtk-2.0/gtk
/usr/lib/python2.2/site-packages/gtk-2.0/gtk/__init__.py
/usr/lib/python2.2/site-packages/gtk-2.0/gtk/compat.py
/usr/lib/python2.2/site-packages/gtk-2.0/gtk/keysyms.py
/usr/lib/python2.2/site-packages/gtk-2.0/gtk/_gtk.so
/usr/lib/python2.2/site-packages/gtk-2.0/gtk/glade.so
/usr/lib/python2.2/site-packages/gtk-2.0/gtk/__init__.pyc
/usr/lib/python2.2/site-packages/gtk-2.0/gtk/compat.pyc
/usr/lib/python2.2/site-packages/gtk-2.0/gtk/keysyms.pyc
/usr/lib/python2.2/site-packages/gtk-2.0/gobject.so
/usr/lib/python2.2/site-packages/gtk-2.0/atk.so
/usr/lib/python2.2/site-packages/gtk-2.0/pango.so
_______________________________________________
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