Re: [Touch-packages] [Bug 1866625] Re: OverflowError: With Python 3 Gtk.ListStore only accepts 32 Bit Integers.

2020-05-08 Thread Wolf Pichler
It should indeed be done like this: import gi gi.require_version('Gtk', '3.0') from gi.repository import Gtk from gi.repository import GObject mystore = Gtk.ListStore(GObject.TYPE_UINT64) mystore.insert_with_valuesv(-1, [1], [GObject.Value(GObject.TYPE_UINT64, 1330400507426)]) ### I

[Touch-packages] [Bug 1866625] Re: OverflowError: With Python 3 Gtk.ListStore only accepts 32 Bit Integers.

2020-03-11 Thread Christoph Reiter
"int" maps to the same underlying type in Python 2 and Python 3. This wasn't changed when pygobject was ported to Python 3 and can't really be changed now. If you want be sure your numbers fit use the suggested "GObject.TYPE_*", or just use "object" which means the Python int object is stored as

Re: [Touch-packages] [Bug 1866625] Re: OverflowError: With Python 3 Gtk.ListStore only accepts 32 Bit Integers.

2020-03-09 Thread Wolf Pichler
It works! On 09.03.20 21:17, Sebastien Bacher wrote: > COuld you test the upstream workaround and use > GObject.Value(GObject.TYPE_UINT64, 1330400507426) ? > -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to pygobject in

[Touch-packages] [Bug 1866625] Re: OverflowError: With Python 3 Gtk.ListStore only accepts 32 Bit Integers.

2020-03-09 Thread Sebastien Bacher
COuld you test the upstream workaround and use GObject.Value(GObject.TYPE_UINT64, 1330400507426) ? -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to pygobject in Ubuntu. https://bugs.launchpad.net/bugs/1866625 Title:

Re: [Touch-packages] [Bug 1866625] Re: OverflowError: With Python 3 Gtk.ListStore only accepts 32 Bit Integers.

2020-03-09 Thread Wolf Pichler
I'm not sure what exactly they are really talking about at https://gitlab.gnome.org/GNOME/pygobject/issues/198. My FR concerns 3.26.1-2ubuntu1 and at gitlab it is stated "I think it used to work in 3.26." which clearly is not the case. I took a look into the source and in pygi-value.c I found

[Touch-packages] [Bug 1866625] Re: OverflowError: With Python 3 Gtk.ListStore only accepts 32 Bit Integers.

2020-03-09 Thread Sebastien Bacher
Thank you for your bug report, that seems similar to https://gitlab.gnome.org/GNOME/pygobject/issues/198 ** Bug watch added: gitlab.gnome.org/GNOME/pygobject/issues #198 https://gitlab.gnome.org/GNOME/pygobject/issues/198 ** Changed in: pygobject (Ubuntu) Importance: Undecided => Low --