OverflowError: With Python 3 Gtk.ListStore only accepts 32 Bit Integers.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pygobject (Ubuntu) |
New
|
Low
|
Unassigned |
Bug Description
import gi
gi.require_
from gi.repository import Gtk
This works in Python 2:
mystore = Gtk.ListStore(long)
mystore.
This does not work in Python 3:
mystore = Gtk.ListStore(int)
mystore.
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://
100 /var/lib/
3.26.1-2 500
500 http://
python3 -V
Python 3.6.9
Thank you for your bug report, that seems similar to https:/ /gitlab. gnome.org/ GNOME/pygobject /issues/ 198