[pygtk] gio.Mount.get_default_location()

Leon Bogaert leon at tim-online.nl
Wed Jun 1 02:38:47 WST 2011


Hi Avi,

Good guess :) I'm running Ubuntu 11.04

leon at 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 at 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 [avi142 at gmail.com]
Sent: Tuesday, May 31, 2011 19:26
To: Leon Bogaert
Cc: John Stowers; pygtk at 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?


More information about the pygtk mailing list