OK, I've fixed it. I did almost all the testing in ipython and it provided to be a bug in..... ipython :S So I upgraded to 0.10.2 from the deb provided here and it worked!
Thanks for all the help! Regards, Leon ________________________________________ From: Leon Bogaert Sent: Wednesday, June 01, 2011 10:16 To: Timo; [email protected] Subject: RE: [pygtk] gio.Mount.get_default_location() That's really weird. I've reinstalled python-gobject and gir1.2-glib-2.0 but the problem persists and it also happens on my other pc. I also created a new user account locally because maybe it was some weird entry in my .bashrc or something but that didn't help either. There's also another weird issue. When I do from gi.reposityory import Gtk (and other modules too) I get this exception: http://paste.ubuntu.com/615673/ Leon ________________________________________ From: [email protected] [[email protected]] on behalf of Timo [[email protected]] Sent: Wednesday, June 01, 2011 09:13 To: [email protected] Subject: Re: [pygtk] gio.Mount.get_default_location() On 31-05-11 20:38, Leon Bogaert wrote: > Hi Avi, > > Good guess :) I'm running Ubuntu 11.04 Weird, I'm running 11.04 as well, and I have no problems. No idea why it won't work for you though. Cheers, Timo > leon@polly:~$ dpkg -l | grep gir | grep glib > ii gir1.2-glib-2.0 0.10.7-0ubuntu1 > Introspection data for GLib, GObject, Gio and GModule > > leon@polly:~$ ls -al /usr/lib/girepository-1.0/Gio-2.0.typelib > -rw-r--r-- 1 root root 241632 2011-04-05 12:36 > /usr/lib/girepository-1.0/Gio-2.0.typelib > > I've also tried running "Gio.MountMountFlags.NONE" on my other machine (also > 11.04): same error. > I've also got a Fedora 15 box and there it works! The package of > gobject-introspection there is 0.10.8-1 > > Regards, > Leon > > ________________________________________ > From: Avi Levy [[email protected]] > Sent: Tuesday, May 31, 2011 19:26 > To: Leon Bogaert > Cc: John Stowers; [email protected] > Subject: Re: [pygtk] gio.Mount.get_default_location() > > I can verify that John's instructions work on my system: > >>>> Gio.MountMountFlags.NONE > <enum G_MOUNT_MOUNT_NONE of type GMountMountFlags> > > It looks like you are running Linux, if possible what distro? > For instance, I am running Ubuntu and the package containing gir bindings for > gio is called > gir1.0-glib-2.0 (0.9.3-0) > the relevant file containing gio bindings is: > /usr/lib/girepository-1.0/Gio-2.0.typelib > > It sounds like you may have an out-of-date typelib or something? > _______________________________________________ > pygtk mailing list [email protected] > http://www.daa.com.au/mailman/listinfo/pygtk > Read the PyGTK FAQ: http://faq.pygtk.org/ _______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/ _______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
