Public bug reported: import gi gi.require_version('Gtk', '3.0') from gi.repository import Gtk
This works in Python 2: mystore = Gtk.ListStore(long) mystore.insert_with_valuesv(-1, [1], [long(1330400507426)]) This does not work in Python 3: mystore = Gtk.ListStore(int) mystore.insert_with_valuesv(-1, [1], [int(1330400507426)]) OverflowError: Item 0: out of range for int property ---- lsb_release -rd Description: Ubuntu 18.04.4 LTS Release: 18.04 apt-cache policy python3-gi python3-gi: Installed: 3.26.1-2ubuntu1 Candidate: 3.26.1-2ubuntu1 Version table: *** 3.26.1-2ubuntu1 500 500 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages 100 /var/lib/dpkg/status 3.26.1-2 500 500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages python3 -V Python 3.6.9 ** Affects: pygobject (Ubuntu) Importance: Undecided Status: New -- 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: OverflowError: With Python 3 Gtk.ListStore only accepts 32 Bit Integers. Status in pygobject package in Ubuntu: New Bug description: import gi gi.require_version('Gtk', '3.0') from gi.repository import Gtk This works in Python 2: mystore = Gtk.ListStore(long) mystore.insert_with_valuesv(-1, [1], [long(1330400507426)]) This does not work in Python 3: mystore = Gtk.ListStore(int) mystore.insert_with_valuesv(-1, [1], [int(1330400507426)]) OverflowError: Item 0: out of range for int property ---- lsb_release -rd Description: Ubuntu 18.04.4 LTS Release: 18.04 apt-cache policy python3-gi python3-gi: Installed: 3.26.1-2ubuntu1 Candidate: 3.26.1-2ubuntu1 Version table: *** 3.26.1-2ubuntu1 500 500 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages 100 /var/lib/dpkg/status 3.26.1-2 500 500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages python3 -V Python 3.6.9 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/pygobject/+bug/1866625/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp