Hi Avi,
Good guess :) I'm running Ubuntu 11.04
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/