After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 680005 - GObject property of type int with sys.maxint as maximun gives OverflowError while registering
GObject property of type int with sys.maxint as maximun gives OverflowError w...
Status: RESOLVED NOTABUG
Product: pygobject
Classification: Bindings
Component: introspection
Git master
Other Linux
: Normal normal
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2012-07-16 12:59 UTC by Manuel Quiñones
Modified: 2012-07-26 10:20 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Manuel Quiñones 2012-07-16 12:59:38 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')
Comment 1 Martin Pitt 2012-07-24 13:34:43 UTC
Are you running this on 64 bit by chance? sys.maxint is 9223372036854775807, which might be too big? Try GObject.G_MAXINT32?
Comment 2 Manuel Quiñones 2012-07-26 10:20:08 UTC
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".