GNOME Bugzilla – Bug 680005
GObject property of type int with sys.maxint as maximun gives OverflowError while registering
Last modified: 2012-07-26 10:20:08 UTC
I have a class that inherits GObject.GObject which has this field in the __gproperties__ dict: __gproperties__ = { 'time-remaining': (int, None, None, 0, sys.maxint, 0, GObject.PARAM_READABLE), } This was working in pygtk but now after porting to GTK+ 3 I got: OverflowError: signed integer is greater than maximum (while registering property 'time-remaining' for GType 'deviceicon+battery+DeviceModel')
Are you running this on 64 bit by chance? sys.maxint is 9223372036854775807, which might be too big? Try GObject.G_MAXINT32?
Thanks Martin. Yes, now I see is happening the same for me in pygtk and this is because of my switch to Fedora 17 64 bits, not because of pygobject. So I'm closing this ticket as "not a bug".