On 10/04/2010 10:12, Hossein Movahhedian wrote: > Dear all, > Hi > I have installed pygtk-2.16.0, pygobject-2.20.0 successfully > on slackware-13.0. These packages are used by my network manager > wicd-1.7.0. While other packages used by wicd (e.g. urwid-0.9.9.1, > dbus-python-0.83.1, and pycairo-1.8.8) work properly, I get an > error message with pygtk and pygobject which is listed at the end > of this message. > > Any help would be gratefully appreciated. > > Thanks > > Please note that `/usr/local' is linked to `/ext3/local/13.0' > > $ wicd-client > /usr/local/Python/lib/python2.6/site-packages/gtk-2.0/gtk/__init__.py:40: > RuntimeWarning: > tp_compare didn't return -1 or -2 for exception > from gtk import _gtk > ImportError: could not import gio > ImportError: could not import gio > Traceback (most recent call last): > File "/usr/local/Python/share/wicd/gtk/wicd-client.py", line 64, in > <module> > import gui > File "/ext3/local/13.0/Python-2.6.2/share/wicd/gtk/gui.py", line 32, > in<module> > import gtk.glade > ImportError: cannot import name Widget from gtk > I think your problem is that you need to install libglade support for gtk and their pygtk bindings, as libglade is not part of pygtk or gtk itself.
Also, the recommended way now is to use gtk.Builder (which is part of gtk+ itself) instead of libglade, so I'd consider switching. (notice that libglade is a library to load ui definitions and is different from glade, the interface designer. glade files can be converted to the gtkbuilder format in glade itself). Regards, Rafael Villar Burke _______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
