[issue46146] Python IDLE fails to start (tk font issue?)

2021-12-22 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +epaine, serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46146] Python IDLE fails to start (tk font issue?)

2021-12-22 Thread Christoph Feck
Christoph Feck added the comment: (original bug reporter replying, thanks Matej for pointing me here!) > what OS and font gives this error? OS is openSUSE Tumbleweed 20211202, which has these versions: - python 3.8.12 - tcl/tk 8.6.12 - fontconfig 2.13.1 - adobe-sourcecodepro-fonts 2.030

[issue46146] Python IDLE fails to start (tk font issue?)

2021-12-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Serhiy: Matej Cepl (SUSE) asks about tk and Wayland switch. Do you know anything? -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue46146] Python IDLE fails to start (tk font issue?)

2021-12-22 Thread Matej Cepl
Matej Cepl added the comment: And yes, idle (both with 3.10 and 3.8) works for me just fine all the time (it doesn't for my reporter, but that's another point). -- ___ Python tracker

[issue46146] Python IDLE fails to start (tk font issue?)

2021-12-22 Thread Matej Cepl
Matej Cepl added the comment: And I am not sure what’s going on, but when I run the test suite you indicated, it kills my Wayland session immediately. How is Tk doing with X11->Wayland switch? -- ___ Python tracker

[issue46146] Python IDLE fails to start (tk font issue?)

2021-12-22 Thread Matej Cepl
Matej Cepl added the comment: $ rpm -qR python38-idle /usr/bin/python3 /usr/bin/python3.8 config(python38-idle) = 3.8.12-3.1 python(abi) = 3.8 python38 = 3.8.12 python38-tk rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1

[issue46146] Python IDLE fails to start (tk font issue?)

2021-12-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: On a system where IDLE will not start, the code has to be run directly with 'python3', however that is done there. One will need to add the line 'r.mainloop()' at the end of the script to see the tk window. However, this is not needed to see the printed

[issue46146] Python IDLE fails to start (tk font issue?)

2021-12-21 Thread Matej Cepl
Matej Cepl added the comment: > Matej, what OS and font gives this error? Please run the > following, also uploaded, with the offending font, replacing the > name I used. I am a packager at SUSE maintaining Python packages both for openSUSE and SLE (our commercial offering), even though

[issue46146] Python IDLE fails to start (tk font issue?)

2021-12-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: (This is behavior, not crash issue, as the latter is when there is no traceback.) The editor code was added 3 years ago in #37929, PR-15452, to correct using the configured char width after font and window size changes make that invalid. It is based on

[issue46146] Python IDLE fails to start (tk font issue?)

2021-12-21 Thread Matej Cepl
New submission from Matej Cepl : (originally filed as https://bugzilla.suse.com/1193409) When trying to start "idle3.8", I get a ZeroDivisionError in editor.py. Trying to patch it, I noticed that the complete UI of IDLE shows no text. Since the same also happens with "idle3.9", I guess it is a