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; pygtk@daa.com.au 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: pygtk-boun...@daa.com.au [pygtk-boun...@daa.com.au] on behalf of Timo [timomli...@gmail.com] Sent: Wednesday, June 01, 2011 09:13 To: pygtk@daa.com.au 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 [avi...@gmail.com] > Sent: Tuesday, May 31, 2011 19:26 > To: Leon Bogaert > Cc: John Stowers; pygtk@daa.com.au > 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 pygtk@daa.com.au > http://www.daa.com.au/mailman/listinfo/pygtk > Read the PyGTK FAQ: http://faq.pygtk.org/ _______________________________________________ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/ _______________________________________________ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/