Skip to content

IDLE exits with UnicodeDecodeError on Ctrl+Space #49406

Closed

Description

@scav
mannequin
BPO 5156
Nosy @terryjreedy

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2009-02-08.12:34:03.752>
created_at = <Date 2009-02-05.10:02:42.952>
labels = ['expert-IDLE']
title = 'IDLE exits with UnicodeDecodeError on Ctrl+Space'
updated_at = <Date 2009-02-08.12:34:03.750>
user = 'https://bugs.python.org/scav'

bugs.python.org fields:

activity = <Date 2009-02-08.12:34:03.750>
actor = 'gpolo'
assignee = 'none'
closed = True
closed_date = <Date 2009-02-08.12:34:03.752>
closer = 'gpolo'
components = ['IDLE']
creation = <Date 2009-02-05.10:02:42.952>
creator = 'scav'
dependencies = []
files = []
hgrepos = []
issue_num = 5156
keywords = []
message_count = 4.0
messages = ['81190', '81303', '81374', '81375']
nosy_count = 3.0
nosy_names = ['terry.reedy', 'scav', 'gpolo']
pr_nums = []
priority = 'normal'
resolution = 'duplicate'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue5156'
versions = ['Python 3.1']

Activity

  1. scav commented on Feb 5, 2009

    scavmannequin
    MannequinAuthor

    Using Python3.1 built from svn, on RedHat EL4, with Tcl/Tk 8.5 built
    from source.

    Traceback:
    ------------------
    File "/usr/mlocal/lib/python3.1/runpy.py", line 122, in
    _run_module_as_main
    "__main__", fname, loader, pkg_name)
    File "/usr/mlocal/lib/python3.1/runpy.py", line 34, in _run_code
    exec(code, run_globals)
    File "/usr/mlocal/lib/python3.1/idlelib/idle.py", line 22, in <module>
    idlelib.PyShell.main()
    File "/usr/mlocal/lib/python3.1/idlelib/PyShell.py", line 1407, in main
    root.mainloop()
    File "/usr/mlocal/lib/python3.1/tkinter/init.py", line 1009, in
    mainloop
    self.tk.mainloop(n)
    UnicodeDecodeError: 'utf8' codec can't decode bytes in position 0-1:
    illegal encoding
    ----------------
    The list of completions appears just before the crash. I can't tell
    whether the error occurs within tkinter or IDLE.

    If I find out where to put the try/except I'll submit a patch.

  2. terryjreedy commented on Feb 6, 2009

    @terryjreedy
    Member

    On IDLE 3.0, win xp, cntl-space brings up a selection box with known
    names to select. What was your actual input?

  3. scav commented on Feb 8, 2009

    scavmannequin
    MannequinAuthor

    Yeah, I know that's what it's supposed to do. It does pop up the list
    of names, but then crashes.

    It happens no matter what has been input, even on an empty window.

    However, if it works for everyone else, maybe I built Tcl wrongly.

  4. gpolo commented on Feb 8, 2009

    gpolomannequin
    Mannequin

    This is a duplicate, see bpo-1028.

  5. transferred this issue fromon Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions