New submission from Matej Cepl <mc...@cepl.eu>:

(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 bug in tk.

The error happens also with a fresh user account.

The complete error message is as follows:

> idle3.8
Traceback (most recent call last):
  File "/usr/bin/idle3.8", line 5, in <module>
    main()
  File "/usr/lib64/python3.8/idlelib/pyshell.py", line 1522, in main
    shell = flist.open_shell()
  File "/usr/lib64/python3.8/idlelib/pyshell.py", line 329, in open_shell
    self.pyshell = PyShell(self)
  File "/usr/lib64/python3.8/idlelib/pyshell.py", line 874, in __init__
    OutputWindow.__init__(self, flist, None, None)
  File "/usr/lib64/python3.8/idlelib/outwin.py", line 79, in __init__
    EditorWindow.__init__(self, *args)
  File "/usr/lib64/python3.8/idlelib/editor.py", line 218, in __init__
    self.set_width()
  File "/usr/lib64/python3.8/idlelib/editor.py", line 366, in set_width
    self.width = pixel_width // zero_char_width
ZeroDivisionError: integer division or modulo by zero
>

----------
assignee: terry.reedy
components: IDLE
messages: 409003
nosy: mcepl, terry.reedy
priority: normal
severity: normal
status: open
title: Python IDLE fails to start (tk font issue?)
type: crash
versions: Python 3.8, Python 3.9

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue46146>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to