IDLE crashes on startup with Python3.11.11 and Tk 9.01

Hello,

Requirements:

I have Searched the forum for my issue and found nothing related or helpful
I have checked the Resources category (Resources Index)
I have reviewed the Wiki for relevant information
I have read the Release Notes and Errata

OpenMandriva Lx version:

OpenMandriva Lx release 6.0 (Vanadium) Rock for x86_64

Desktop environment (KDE, LXQT…):
KDE

Description of the issue (screenshots if relevant):
IDLE fails to start on a fully updated system. Tkinter itself works correctly, but IDLE crashes during initialization when reading the editor font configuration.

~/.idlerc is empty so cannot be a configuration problem.

Relevant informations (hardware involved, software version, logs or output…):

Package versions:
python-3.11.11-1.x86_64
tk-9.0.1-1.x86_64
tkinter-3.11.11-1.x86_64
tkinter-apps-3.11.11-1.x86_64

Steps to reproduce:
$ idle3
Traceback (most recent call last):
File “/usr/bin/idle3”, line 5, in
main()
File “/usr/lib64/python3.11/idlelib/pyshell.py”, line 1648, in main
shell = flist.open_shell()
^^^^^^^^^^^^^^^^^^
File “/usr/lib64/python3.11/idlelib/pyshell.py”, line 333, in open_shell
self.pyshell = PyShell(self)
^^^^^^^^^^^^^
File “/usr/lib64/python3.11/idlelib/pyshell.py”, line 897, in init
OutputWindow.init(self, flist, None, None)
File “/usr/lib64/python3.11/idlelib/outwin.py”, line 79, in init
EditorWindow.init(self, *args)
File “/usr/lib64/python3.11/idlelib/editor.py”, line 228, in init
text[‘font’] = idleConf.GetFont(self.root, ‘main’, ‘EditorWindow’)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib64/python3.11/idlelib/config.py”, line 751, in GetFont
if size <= 0:
^^^^^^^^^
TypeError: ‘<=’ not supported between instances of ‘_tkinter.Tcl_Obj’ and ‘int’

Welcome

Python has been causing problems with it saying it’s missing 3.11 libraries on several smaller desktop environments.

I wish I knew how to put python3.11 onto those packages. It says on our github that it is available, but is not with those packages for some reason.

AFAICT this is a version mismatch. IDLE from tkinter-apps 3.11.11 expects the font size as an integer and looks like Tk behaved that way up to version 8.6 but the 9.0 version in the repos returns an object instead.

This bug might already be solved in newer versions of python/tkinter-apps.

The next update for Rock will have tkinter version 3.14.7 or later.

File a package update request. Click on New Issue and follow the instructions. Then go to OpenMandriva Chat and bark like a chihuahua.

OR upgrade to ROME.

1 Like

I feel that most would be very happy upgrading to ROME. It doesn’t roll everyday. It rolls slowly. I find it to be rock solid.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.