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 does not open too #48299

Closed
chrisl mannequin opened this issue Oct 6, 2008 · 16 comments
Closed

IDLE does not open too #48299

chrisl mannequin opened this issue Oct 6, 2008 · 16 comments

Comments

@chrisl
Copy link
Mannequin

chrisl mannequin commented Oct 6, 2008

BPO 4049
Nosy @loewis
Files
  • idle.patch
  • 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 2008-12-29.18:59:19.770>
    created_at = <Date 2008-10-06.00:31:20.381>
    labels = ['expert-IDLE']
    title = 'IDLE does not open too'
    updated_at = <Date 2009-11-15.01:34:39.397>
    user = 'https://bugs.python.org/ChrisL'

    bugs.python.org fields:

    activity = <Date 2009-11-15.01:34:39.397>
    actor = 'loewis'
    assignee = 'none'
    closed = True
    closed_date = <Date 2008-12-29.18:59:19.770>
    closer = 'loewis'
    components = ['IDLE']
    creation = <Date 2008-10-06.00:31:20.381>
    creator = 'Chris_L'
    dependencies = []
    files = ['11824']
    hgrepos = []
    issue_num = 4049
    keywords = ['patch']
    message_count = 16.0
    messages = ['74357', '74359', '74360', '74817', '74819', '74953', '75138', '75272', '76359', '76366', '77212', '77337', '77339', '78476', '95266', '95270']
    nosy_count = 5.0
    nosy_names = ['loewis', 'zeromtmu', 'ec2929', 'VitP', 'pi']
    pr_nums = []
    priority = 'normal'
    resolution = 'works for me'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue4049'
    versions = ['Python 2.6']

    @chrisl
    Copy link
    Mannequin Author

    chrisl mannequin commented Oct 6, 2008

    IDLE just won't open in 2.6 for me. The command line works but not the
    GUI. It works in 2.5.2 though. I am a neophyte, any help is much
    appreciated.

    @loewis
    Copy link
    Mannequin

    loewis mannequin commented Oct 6, 2008

    What operating system are you using?

    @Raj
    Copy link
    Mannequin

    Raj mannequin commented Oct 6, 2008

    Hi! Chris,

    I am assuming that you are using Vista. If you are..then you need to
    enable the Administrator user (following the instructions here:
    http://www.computerperformance.co.uk/vista/vista_administrator_activate.
    htm) and then install python for all users by logging in as the
    Administrator.

    Thanks,

    Raj

    @scionkiller
    Copy link
    Mannequin

    scionkiller mannequin commented Oct 15, 2008

    This bug does not just affect Vista.

    I am running Windows XP Professional x64 and encountered the same
    problem. Everything appeared to go fine on the installation, but then
    IDLE just refuses to run, nothing appears in the task manager, no
    errors, nothing. Command line still works.

    When I read Raj's coment, I realized that I had only installed it for
    me, not for all users. Installing it the other way worked.

    This seems like a pretty serious bug, because users (like me) are
    probably going to be totally baffled as to the cause, since there is no
    feedback.

    Thanks for the workaround!

    @loewis
    Copy link
    Mannequin

    loewis mannequin commented Oct 15, 2008

    I am running Windows XP Professional x64 and encountered the same
    problem. Everything appeared to go fine on the installation, but then
    IDLE just refuses to run, nothing appears in the task manager, no
    errors, nothing. Command line still works.

    It's normal that there are no errors. They get to stderr, and there is
    no stderr in a GUI application.

    Can you please try these steps, and report results?

    1. open cmd.exe
    2. cd \python26
    3. python.exe Lib\idlelib\idle.py

    Report any output that this produces.

    This seems like a pretty serious bug

    I don't think it's pretty serious. It has a workaround; a "pretty
    serious" bug doesn't have one.

    @giampaolo
    Copy link
    Contributor

    It's normal that there are no errors. They get to stderr, and there is
    no stderr in a GUI application.

    Maybe it would make sense putting the main() function into a try/except
    statement and pop-up a message box to display the error.
    A patch is in attachment.

    @zeromtmu
    Copy link
    Mannequin

    zeromtmu mannequin commented Oct 23, 2008

    would you help me to open IDLE it can't open in 2.6 version but can use
    python in terminal my OS is MacOSX. I'm the new one in python so, i need
    you help very much.

    @zeromtmu zeromtmu mannequin added the topic-IDLE label Oct 23, 2008
    @zeromtmu zeromtmu mannequin changed the title IDLE does not open at all IDLE does not open too Oct 23, 2008
    @loewis
    Copy link
    Mannequin

    loewis mannequin commented Oct 28, 2008

    Giampaolo: I'm skeptical that the patch helps. If you can't start IDLE
    because you cannot import Tkinter, displaying the error in a
    tkMessageBox will do no good, either.

    @ec2929
    Copy link
    Mannequin

    ec2929 mannequin commented Nov 24, 2008

    I have this problem too but I am running Python 2.5.2 on Windows XP
    professional. I did install Python for all users. I tried uninstalling
    and reinstalling Python. IDLE does not open for me. It cannot find
    Tkinker.

    C:\Python25>python.exe lib\idlelib\idle.py
    Traceback (most recent call last):
      File "lib\idlelib\idle.py", line 6, in <module>
        import PyShell
      File "C:\Python25\Lib\idlelib\PyShell.py", line 14, in <module>
        import macosxSupport
      File "C:\Python25\Lib\idlelib\macosxSupport.py", line 6, in <module>
        import Tkinter
    ImportError: No module named Tkinter

    @loewis
    Copy link
    Mannequin

    loewis mannequin commented Nov 24, 2008

    I have this problem too but I am running Python 2.5.2 on Windows XP
    professional.

    That is most definitely a different problem from the one reported here
    originally.

    I did install Python for all users. I tried uninstalling
    and reinstalling Python. IDLE does not open for me. It cannot find
    Tkinker.

    Make sure you select Tkinter in the feature selection window of Python.
    If you can't get it to work, and still believe you have found a bug,
    please report it as a separate issue.

    @VitP
    Copy link
    Mannequin

    VitP mannequin commented Dec 7, 2008

    This still seems to be happening in python 3.0 as well. Here is the
    output from

    1. open cmd.exe
    2. cd \python26
    3. python.exe Lib\idlelib\idle.py
    C:\Program Files\Python>python.exe Lib\idlelib\idle.py
    Traceback (most recent call last):
      File "Lib\idlelib\idle.py", line 22, in <module>
        idlelib.PyShell.main()
      File "C:\Program Files\Python\lib\idlelib\PyShell.py", line 1385, in main
        shell = flist.open_shell()
      File "C:\Program Files\Python\lib\idlelib\PyShell.py", line 276, in
    open_shell
        self.pyshell = PyShell(self)
      File "C:\Program Files\Python\lib\idlelib\PyShell.py", line 800, in
    __init__
        OutputWindow.__init__(self, flist, None, None)
      File "C:\Program Files\Python\lib\idlelib\OutputWindow.py", line 16,
    in __init
    __
        EditorWindow.__init__(self, *args)
      File "C:\Program Files\Python\lib\idlelib\EditorWindow.py", line 243,
    in __ini
    t__
        self.update_recent_files_list()
      File "C:\Program Files\Python\lib\idlelib\EditorWindow.py", line 761,
    in updat
    e_recent_files_list
        rf_file = open(self.recent_files_path, 'w')
      File "C:\Program Files\Python\lib\io.py", line 278, in __new__
        return open(*args, **kwargs)
      File "C:\Program Files\Python\lib\io.py", line 222, in open
        closefd)
      File "C:\Program Files\Python\lib\io.py", line 615, in __init__
        _fileio._FileIO.__init__(self, name, mode, closefd)
    IOError: [Errno 13] Permission denied:
    'C:\\Users\\Isaac\\.idlerc\\recent-files.
    lst'

    @ec2929
    Copy link
    Mannequin

    ec2929 mannequin commented Dec 8, 2008

    I fixed this by copying the tcl8.4 and tk8.4 directories into
    Python25/Lib from Python25/tcl. This fixes it but it should work
    without having to do this. I start new ticket and reference this one.

    @ec2929
    Copy link
    Mannequin

    ec2929 mannequin commented Dec 8, 2008

    bpo-4598 created.

    @loewis
    Copy link
    Mannequin

    loewis mannequin commented Dec 29, 2008

    Since there was no feedback from the OP, I'm closing this as "works for me".

    @loewis loewis mannequin closed this as completed Dec 29, 2008
    @pi
    Copy link
    Mannequin

    pi mannequin commented Nov 15, 2009

    Hi,

    I'm running Windows XP Professional and just installed Python 2.6. I
    installed it for all users. Tried starting up IDLE and nothing happened.
    I read the boards here, and it looks like others have had similar
    troubles. I read on this board that moving the Tcl/Tk directories
    helped, so I tried moving the tcl8.5 and tk8.5 directories to
    C:\Python26\Lib, but IDLE still wouldn't start up. (So I moved them back.)

    I opened a command shell and tried running idle that way. I will paste
    the output below. Could someone help with this? Sorry if this is the
    wrong place to post this problem; I am Python newbie.

    C:\Python26>python Lib\idlelib\idle.py

    Traceback (most recent call last):
      File "Lib\idlelib\idle.py", line 21, in <module>
        idlelib.PyShell.main()
      File "C:\Python26\lib\idlelib\PyShell.py", line 1400, in main
        shell = flist.open_shell()
      File "C:\Python26\lib\idlelib\PyShell.py", line 279, in open_shell
        self.pyshell = PyShell(self)
      File "C:\Python26\lib\idlelib\PyShell.py", line 820, in __init__
        OutputWindow.__init__(self, flist, None, None)
      File "C:\Python26\lib\idlelib\OutputWindow.py", line 16, in __init__
        EditorWindow.__init__(self, *args)
      File "C:\Python26\lib\idlelib\EditorWindow.py", line 234, in __init__
        self.update_recent_files_list()
      File "C:\Python26\lib\idlelib\EditorWindow.py", line 755, in
    update_recent_fil
    es_list
        rf_file = open(self.recent_files_path, 'w')
    IOError: [Errno 13] Permission denied: 'C:\\Documents and
    Settings\\Tricia\\.idl
    erc\\recent-files.lst'

    @loewis
    Copy link
    Mannequin

    loewis mannequin commented Nov 15, 2009

    Patricia, if you want to report a bug, please don't follow up to an
    existing, closed bug report.

    If you are just asking for help: delete the folder .idlerc and all of
    its files, and retry.

    @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
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant