This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mcepl
Recipients mcepl, terry.reedy
Date 2021-12-21.23:39:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1640129951.0.0.532007272156.issue46146@roundup.psfhosted.org>
In-reply-to
Content
(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
>
History
Date User Action Args
2021-12-21 23:39:11mceplsetrecipients: + mcepl, terry.reedy
2021-12-21 23:39:11mceplsetmessageid: <1640129951.0.0.532007272156.issue46146@roundup.psfhosted.org>
2021-12-21 23:39:10mcepllinkissue46146 messages
2021-12-21 23:39:10mceplcreate