Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IDLE Will not load on reinstall #59043

Closed
BugReporter mannequin opened this issue May 17, 2012 · 11 comments
Closed

IDLE Will not load on reinstall #59043

BugReporter mannequin opened this issue May 17, 2012 · 11 comments
Labels
topic-IDLE type-bug An unexpected behavior, bug, or error

Comments

@BugReporter
Copy link
Mannequin

BugReporter mannequin commented May 17, 2012

BPO 14838
Nosy @loewis, @terryjreedy, @serwy
Superseder
  • bpo-13582: IDLE and pythonw.exe stderr problem
  • 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 2012-05-19.04:49:54.387>
    created_at = <Date 2012-05-17.04:13:07.138>
    labels = ['expert-IDLE', 'type-bug']
    title = 'IDLE Will not load on reinstall'
    updated_at = <Date 2012-05-19.06:47:54.858>
    user = 'https://bugs.python.org/BugReporter'

    bugs.python.org fields:

    activity = <Date 2012-05-19.06:47:54.858>
    actor = 'BugReporter'
    assignee = 'none'
    closed = True
    closed_date = <Date 2012-05-19.04:49:54.387>
    closer = 'loewis'
    components = ['IDLE']
    creation = <Date 2012-05-17.04:13:07.138>
    creator = 'BugReporter'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 14838
    keywords = []
    message_count = 11.0
    messages = ['160952', '160964', '160977', '161036', '161039', '161040', '161081', '161090', '161091', '161092', '161094']
    nosy_count = 5.0
    nosy_names = ['loewis', 'terry.reedy', 'roger.serwy', 'Anthony.Kong', 'BugReporter']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = None
    status = 'closed'
    superseder = '13582'
    type = 'behavior'
    url = 'https://bugs.python.org/issue14838'
    versions = ['Python 3.2', 'Python 3.3']

    @BugReporter
    Copy link
    Mannequin Author

    BugReporter mannequin commented May 17, 2012

    After reinstalling Python 3.2.2, I have been unable to load IDLE - it simply refuses to respond. I have tried upgrading to 3.3 also, and still have the same problem - following multiple uninstalls, reinstalls and searching, I can't appear to find any solution to this problem which does appear to have occurred to others in the past with no solution that I can find.

    Any ideas?

    @BugReporter BugReporter mannequin added topic-IDLE type-bug An unexpected behavior, bug, or error labels May 17, 2012
    @AnthonyKong
    Copy link
    Mannequin

    AnthonyKong mannequin commented May 17, 2012

    Which os? windows or linux or osx?

    It actually sounds like a support question. You probably should take the question to the python newsgroup (https://groups.google.com/forum/?fromgroups#!forum/comp.lang.python).

    @loewis
    Copy link
    Mannequin

    loewis mannequin commented May 17, 2012

    Please run, from the command line, in the Python installation

    python.exe Lib\idlelib\idle.py

    and report any output you get.

    @BugReporter
    Copy link
    Mannequin Author

    BugReporter mannequin commented May 18, 2012

    Running Windows 7.

    I get the following output when running the requested command:

    File "<stdin>", line 1
    python.exe Lib\idlelib\idle.py

    SyntaxError: invalid syntax

    @loewis
    Copy link
    Mannequin

    loewis mannequin commented May 18, 2012

    Can you please attach your idle.py, and/or figure out why it has a syntax error on line 1?

    @loewis
    Copy link
    Mannequin

    loewis mannequin commented May 18, 2012

    Ah, I think I know what happened. When I said "command line", I didn't mean "Python (command line)", but "CMD shell", as found in the start menu (i.e. cmd.exe). The line I gave you is, of course, invalid Python syntax.

    If you have never used the Windows command line, please read up on it a little bit before trying this out. Read in particular about the "cd" command.

    @terryjreedy
    Copy link
    Member

    If python itself runs, you can easily try this from inside the interpreter

    >> from idlelib import idle

    This *should* bring up the Idle shell window. It just did for me on 64 bit Win7. If not, there *should* be an error traceback you can cut and paste here.

    @BugReporter
    Copy link
    Mannequin Author

    BugReporter mannequin commented May 19, 2012

    Terry - just ran that command as you suggested and it did bring up idle, however also reported errors in the command window:

    Warning: configHandler.py - IdleConf.GetThemeDict -
    problem retrieving theme element 'stderr-foreground'
    from theme 'desert'.
    returning default value: 'bpo-000000'

    Warning: configHandler.py - IdleConf.GetThemeDict -
    problem retrieving theme element 'keyword-background'
    from theme 'desert'.
    returning default value: '#ffffff'

    Warning: configHandler.py - IdleConf.GetThemeDict -
    problem retrieving theme element 'string-foreground'
    from theme 'desert'.
    returning default value: 'bpo-000000'

    Warning: configHandler.py - IdleConf.GetThemeDict -
    problem retrieving theme element 'break-foreground'
    from theme 'desert'.
    returning default value: '#ffffff'

    Warning: configHandler.py - IdleConf.GetThemeDict -
    problem retrieving theme element 'error-background'
    from theme 'desert'.
    returning default value: 'bpo-000000'

    Warning: configHandler.py - IdleConf.GetThemeDict -
    problem retrieving theme element 'cursor-foreground'
    from theme 'desert'.
    returning default value: 'bpo-000000'

    Warning: configHandler.py - IdleConf.GetThemeDict -
    problem retrieving theme element 'definition-foreground'
    from theme 'desert'.
    returning default value: 'bpo-000000'

    Warning: configHandler.py - IdleConf.GetThemeDict -
    problem retrieving theme element 'error-foreground'
    from theme 'desert'.
    returning default value: '#ffffff'

    Warning: configHandler.py - IdleConf.GetThemeDict -
    problem retrieving theme element 'normal-foreground'
    from theme 'desert'.
    returning default value: 'bpo-000000'

    Warning: configHandler.py - IdleConf.GetThemeDict -
    problem retrieving theme element 'keyword-foreground'
    from theme 'desert'.
    returning default value: 'bpo-000000'

    Warning: configHandler.py - IdleConf.GetThemeDict -
    problem retrieving theme element 'hilite-foreground'
    from theme 'desert'.
    returning default value: 'bpo-000000'

    Warning: configHandler.py - IdleConf.GetThemeDict -
    problem retrieving theme element 'comment-background'
    from theme 'desert'.
    returning default value: '#ffffff'

    Warning: configHandler.py - IdleConf.GetThemeDict -
    problem retrieving theme element 'hit-foreground'
    from theme 'desert'.
    returning default value: '#ffffff'

    Warning: configHandler.py - IdleConf.GetThemeDict -
    problem retrieving theme element 'builtin-background'
    from theme 'desert'.
    returning default value: '#ffffff'

    Warning: configHandler.py - IdleConf.GetThemeDict -
    problem retrieving theme element 'stdout-foreground'
    from theme 'desert'.
    returning default value: 'bpo-000000'

    Warning: configHandler.py - IdleConf.GetThemeDict -
    problem retrieving theme element 'string-background'
    from theme 'desert'.
    returning default value: '#ffffff'

    Warning: configHandler.py - IdleConf.GetThemeDict -
    problem retrieving theme element 'break-background'
    from theme 'desert'.
    returning default value: 'bpo-000000'

    Warning: configHandler.py - IdleConf.GetThemeDict -
    problem retrieving theme element 'comment-foreground'
    from theme 'desert'.
    returning default value: 'bpo-000000'

    Warning: configHandler.py - IdleConf.GetThemeDict -
    problem retrieving theme element 'hilite-background'
    from theme 'desert'.
    returning default value: 'gray'

    Warning: configHandler.py - IdleConf.GetThemeDict -
    problem retrieving theme element 'definition-background'
    from theme 'desert'.
    returning default value: '#ffffff'

    Warning: configHandler.py - IdleConf.GetThemeDict -
    problem retrieving theme element 'stderr-background'
    from theme 'desert'.
    returning default value: '#ffffff'

    Warning: configHandler.py - IdleConf.GetThemeDict -
    problem retrieving theme element 'hit-background'
    from theme 'desert'.
    returning default value: 'bpo-000000'

    Warning: configHandler.py - IdleConf.GetThemeDict -
    problem retrieving theme element 'console-foreground'
    from theme 'desert'.
    returning default value: 'bpo-000000'

    Warning: configHandler.py - IdleConf.GetThemeDict -
    problem retrieving theme element 'normal-background'
    from theme 'desert'.
    returning default value: '#ffffff'

    Warning: configHandler.py - IdleConf.GetThemeDict -
    problem retrieving theme element 'builtin-foreground'
    from theme 'desert'.
    returning default value: 'bpo-000000'

    Warning: configHandler.py - IdleConf.GetThemeDict -
    problem retrieving theme element 'stdout-background'
    from theme 'desert'.
    returning default value: '#ffffff'

    Warning: configHandler.py - IdleConf.GetThemeDict -
    problem retrieving theme element 'console-background'
    from theme 'desert'.
    returning default value: '#ffffff'

    Warning: configHandler.py - IdleConf.GetThemeDict -
    problem retrieving theme element 'stderr-foreground'
    from theme 'desert'.
    returning default value: 'bpo-000000'

    Warning: configHandler.py - IdleConf.GetThemeDict -
    problem retrieving theme element 'keyword-background'
    from theme 'desert'.
    returning default value: '#ffffff'

    Warning: configHandler.py - IdleConf.GetThemeDict -
    problem retrieving theme element 'string-foreground'
    from theme 'desert'.
    returning default value: 'bpo-000000'

    Warning: configHandler.py - IdleConf.GetThemeDict -
    problem retrieving theme element 'break-foreground'
    from theme 'desert'.
    returning default value: '#ffffff'

    Warning: configHandler.py - IdleConf.GetThemeDict -
    problem retrieving theme element 'error-background'
    from theme 'desert'.
    returning default value: 'bpo-000000'

    Warning: configHandler.py - IdleConf.GetThemeDict -
    problem retrieving theme element 'cursor-foreground'
    from theme 'desert'.
    returning default value: 'bpo-000000'

    Warning: configHandler.py - IdleConf.GetThemeDict -
    problem retrieving theme element 'definition-foreground'
    from theme 'desert'.
    returning default value: 'bpo-000000'

    Warning: configHandler.py - IdleConf.GetThemeDict -
    problem retrieving theme element 'error-foreground'
    from theme 'desert'.
    returning default value: '#ffffff'

    Warning: configHandler.py - IdleConf.GetThemeDict -
    problem retrieving theme element 'normal-foreground'
    from theme 'desert'.
    returning default value: 'bpo-000000'

    Warning: configHandler.py - IdleConf.GetThemeDict -
    problem retrieving theme element 'keyword-foreground'
    from theme 'desert'.
    returning default value: 'bpo-000000'

    Warning: configHandler.py - IdleConf.GetThemeDict -
    problem retrieving theme element 'hilite-foreground'
    from theme 'desert'.
    returning default value: 'bpo-000000'

    Warning: configHandler.py - IdleConf.GetThemeDict -
    problem retrieving theme element 'comment-background'
    from theme 'desert'.
    returning default value: '#ffffff'

    Warning: configHandler.py - IdleConf.GetThemeDict -
    problem retrieving theme element 'hit-foreground'
    from theme 'desert'.
    returning default value: '#ffffff'

    Warning: configHandler.py - IdleConf.GetThemeDict -
    problem retrieving theme element 'builtin-background'
    from theme 'desert'.
    returning default value: '#ffffff'

    Warning: configHandler.py - IdleConf.GetThemeDict -
    problem retrieving theme element 'stdout-foreground'
    from theme 'desert'.
    returning default value: 'bpo-000000'

    Warning: configHandler.py - IdleConf.GetThemeDict -
    problem retrieving theme element 'string-background'
    from theme 'desert'.
    returning default value: '#ffffff'

    Warning: configHandler.py - IdleConf.GetThemeDict -
    problem retrieving theme element 'break-background'
    from theme 'desert'.
    returning default value: 'bpo-000000'

    Warning: configHandler.py - IdleConf.GetThemeDict -
    problem retrieving theme element 'comment-foreground'
    from theme 'desert'.
    returning default value: 'bpo-000000'

    Warning: configHandler.py - IdleConf.GetThemeDict -
    problem retrieving theme element 'hilite-background'
    from theme 'desert'.
    returning default value: 'gray'

    Warning: configHandler.py - IdleConf.GetThemeDict -
    problem retrieving theme element 'definition-background'
    from theme 'desert'.
    returning default value: '#ffffff'

    Warning: configHandler.py - IdleConf.GetThemeDict -
    problem retrieving theme element 'stderr-background'
    from theme 'desert'.
    returning default value: '#ffffff'

    Warning: configHandler.py - IdleConf.GetThemeDict -
    problem retrieving theme element 'hit-background'
    from theme 'desert'.
    returning default value: 'bpo-000000'

    Warning: configHandler.py - IdleConf.GetThemeDict -
    problem retrieving theme element 'console-foreground'
    from theme 'desert'.
    returning default value: 'bpo-000000'

    Warning: configHandler.py - IdleConf.GetThemeDict -
    problem retrieving theme element 'normal-background'
    from theme 'desert'.
    returning default value: '#ffffff'

    Warning: configHandler.py - IdleConf.GetThemeDict -
    problem retrieving theme element 'builtin-foreground'
    from theme 'desert'.
    returning default value: 'bpo-000000'

    Warning: configHandler.py - IdleConf.GetThemeDict -
    problem retrieving theme element 'stdout-background'
    from theme 'desert'.
    returning default value: '#ffffff'

    Warning: configHandler.py - IdleConf.GetThemeDict -
    problem retrieving theme element 'console-background'
    from theme 'desert'.
    returning default value: '#ffffff'

    Warning: configHandler.py - IdleConf.GetThemeDict -
    problem retrieving theme element 'stderr-foreground'
    from theme 'desert'.
    returning default value: 'bpo-000000'

    Warning: configHandler.py - IdleConf.GetThemeDict -
    problem retrieving theme element 'keyword-background'
    from theme 'desert'.
    returning default value: '#ffffff'

    Warning: configHandler.py - IdleConf.GetThemeDict -
    problem retrieving theme element 'string-foreground'
    from theme 'desert'.
    returning default value: 'bpo-000000'

    Warning: configHandler.py - IdleConf.GetThemeDict -
    problem retrieving theme element 'break-foreground'
    from theme 'desert'.
    returning default value: '#ffffff'

    Warning: configHandler.py - IdleConf.GetThemeDict -
    problem retrieving theme element 'error-background'
    from theme 'desert'.
    returning default value: 'bpo-000000'

    Warning: configHandler.py - IdleConf.GetThemeDict -
    problem retrieving theme element 'cursor-foreground'
    from theme 'desert'.
    returning default value: 'bpo-000000'

    @serwy
    Copy link
    Mannequin

    serwy mannequin commented May 19, 2012

    The reason why IDLE failed to launch is due to stderr=None when using pythonw.exe. The first Warning message cause IDLE to abort. See bpo-13582 for more details and a solution to the problem of IDLE not starting.

    Cain, your home directory should contain a folder named ".idlerc". Within this folder are a few configuration files for IDLE. The warning messages indicate that you are missing "config-highlight.cfg" which contained the definitions for the "desert" theme. Try renaming "config-main.cfg" to something else and relaunch IDLE. This will force IDLE to use its default settings.

    @loewis
    Copy link
    Mannequin

    loewis mannequin commented May 19, 2012

    Closing as a duplicate. Roger, thanks for the analysis.

    @loewis loewis mannequin closed this as completed May 19, 2012
    @BugReporter
    Copy link
    Mannequin Author

    BugReporter mannequin commented May 19, 2012

    Awesome, that resolved it. Simply started idle through the command window, then changed the theme back to the default. Thanks Roger.

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    topic-IDLE type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant