python / cpython

The Python programming language
https://www.python.org
Other
63.42k stars 30.37k forks source link

IDLE 3.2.3 crashes saving a .py file to certain folders on Windows 7 #59201

Closed 3858b56a-a0a8-4ccf-85bf-629de7abab97 closed 12 years ago

3858b56a-a0a8-4ccf-85bf-629de7abab97 commented 12 years ago
BPO 14996
Nosy @loewis, @terryjreedy, @ned-deily, @serwy, @briancurtin
Superseder
  • bpo-12988: Tkinter File Dialog crashes on Win7 when saving to Documents Library
  • Files
  • python error 6-6-12.docx
  • 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: ```python assignee = None closed_at = created_at = labels = ['expert-IDLE', 'OS-windows', 'type-crash'] title = 'IDLE 3.2.3 crashes saving a .py file to certain folders on Windows 7' updated_at = user = 'https://bugs.python.org/mcuomoprestonhsorg' ``` bugs.python.org fields: ```python activity = actor = 'roger.serwy' assignee = 'none' closed = True closed_date = closer = 'roger.serwy' components = ['IDLE', 'Windows'] creation = creator = 'mcuomo@prestonhs.org' dependencies = [] files = ['25852'] hgrepos = [] issue_num = 14996 keywords = [] message_count = 30.0 messages = ['162243', '162247', '162255', '162257', '162290', '162293', '162311', '162314', '162315', '162318', '162327', '162333', '162343', '162383', '162386', '162389', '162434', '162435', '162436', '162437', '162438', '162439', '162440', '162442', '162443', '162444', '162446', '162447', '162456', '162459'] nosy_count = 7.0 nosy_names = ['loewis', 'terry.reedy', 'ned.deily', 'roger.serwy', 'brian.curtin', 'Ramchandra Apte', 'mcuomo@prestonhs.org'] pr_nums = [] priority = 'normal' resolution = 'duplicate' stage = None status = 'closed' superseder = '12988' type = 'crash' url = 'https://bugs.python.org/issue14996' versions = ['Python 3.2'] ```

    3858b56a-a0a8-4ccf-85bf-629de7abab97 commented 12 years ago

    I have been using ver 3.2.1 without a problem. Downloaded 3.2.3 nd cannot save any file in idle.

    ned-deily commented 12 years ago

    We need more information to be able to help. What platform and OS version are you running on? Where did you install Python 3.2.3 from? Exactly what happens when you try to save a file, i.e. are you using a mouse or a keyboard accelerator, what messages do you see, etc?

    918f67d7-4fec-4a8d-93e3-6530aeb1e57e commented 12 years ago

    Can you run IDLE from the cmd line and send the output of the cmd line when it crashes?

    3858b56a-a0a8-4ccf-85bf-629de7abab97 commented 12 years ago

    I am running python in Windows 7, I installed python from python.org. I tried both of the following with the same results Python 3.2.3 Windows x86 MSI Installer\http://www.python.org/ftp/python/3.2.3/python-3.2.3.msi\(Windows binary -- does not include source) Python 3.2.3 Windows X86-64 MSI Installer\http://www.python.org/ftp/python/3.2.3/python-3.2.3.amd64.msi\(Windows AMD64 / Intel 64 / X86-64 binary [1] \http://www.python.org/download/#id10\ -- does not include source)

    Cannot save any file.

    Maureen Cuomo

    On Sun, Jun 3, 2012 at 9:41 PM, Ned Deily \report@bugs.python.org\ wrote:

    Ned Deily \nad@acm.org\ added the comment:

    We need more information to be able to help. What platform and OS version are you running on? Where did you install Python 3.2.3 from? Exactly what happens when you try to save a file, i.e. are you using a mouse or a keyboard accelerator, what messages do you see, etc?

    ---------- nosy: +ned.deily


    Python tracker \report@bugs.python.org\ \http://bugs.python.org/issue14996\


    ned-deily commented 12 years ago

    It is still difficult to understand what problem you are seeing as others are using IDLE from the 3.2.3 installers on Windows 7. There is at least one open issue in this area on Windows: http://bugs.python.org/issue12988. Does that describe what you are seeing? If now, a few things to check: if you get to the Save dialog, try choosing another folder to save to, ilke Desktop; also, try a simple file name with ".py" at the end. If that doesn't help, please give a step-by-step procedure to reproduce the problem, including what you see on the screen.

    ned-deily commented 12 years ago

    Also, you could try temporarily renaming the .idlerc folder in your User folder; this is where IDLE stores several configuration files which can be a cause of problems if they have incorrect values. And you could also try to run IDLE from the Python command line. Launch Python 3.2 -> Python (command line), then in the interactive interpreter enter:

        import idlelib.PyShell
        idlelib.PyShell.main()

    Additional error messages may show up in the command line window.

    3858b56a-a0a8-4ccf-85bf-629de7abab97 commented 12 years ago

    Yes it looks like that. I Open a new window in python, type into the new window. I try to save it so I can run the program and I get the twirling circle until the dialog box come up saying pythow.exe has stopped working. Maureen Cuomo

    On Mon, Jun 4, 2012 at 4:39 PM, Ned Deily \report@bugs.python.org\ wrote:

    Ned Deily \nad@acm.org\ added the comment:

    It is still difficult to understand what problem you are seeing as others are using IDLE from the 3.2.3 installers on Windows 7. There is at least one open issue in this area on Windows: http://bugs.python.org/issue12988. Does that describe what you are seeing? If now, a few things to check: if you get to the Save dialog, try choosing another folder to save to, ilke Desktop; also, try a simple file name with ".py" at the end. If that doesn't help, please give a step-by-step procedure to reproduce the problem, including what you see on the screen.

    ---------- components: +Windows


    Python tracker \report@bugs.python.org\ \http://bugs.python.org/issue14996\


    3858b56a-a0a8-4ccf-85bf-629de7abab97 commented 12 years ago

    I can save to the desktop, but nowhere else. Will this be fixed? I teach python at my school and next year all my computers will have windows 7. I also have a program called deep freeze that erases any files saved on a computer including the desktop. This prevents viruses. Mareen Cuomo

    On Mon, Jun 4, 2012 at 7:53 PM, Maureen Cuomo \report@bugs.python.org\wrote:

    Maureen Cuomo \mcuomo@prestonhs.org\ added the comment:

    Yes it looks like that. I Open a new window in python, type into the new window. I try to save it so I can run the program and I get the twirling circle until the dialog box come up saying pythow.exe has stopped working. Maureen Cuomo

    On Mon, Jun 4, 2012 at 4:39 PM, Ned Deily \report@bugs.python.org\ wrote:

    > > Ned Deily \nad@acm.org\ added the comment: > > It is still difficult to understand what problem you are seeing as others > are using IDLE from the 3.2.3 installers on Windows 7. There is at least > one open issue in this area on Windows: http://bugs.python.org/issue12988. > Does that describe what you are seeing? If now, a few things to check: if > you get to the Save dialog, try choosing another folder to save to, ilke > Desktop; also, try a simple file name with ".py" at the end. If that > doesn't help, please give a step-by-step procedure to reproduce the > problem, including what you see on the screen. > > ---------- > components: +Windows > > > Python tracker \report@bugs.python.org\ > \http://bugs.python.org/issue14996\ > >

    ----------


    Python tracker \report@bugs.python.org\ \http://bugs.python.org/issue14996\


    ned-deily commented 12 years ago

    Windows experts: any suggestions here?

    terryjreedy commented 12 years ago

    Maureen, I have saved and run a file from the Idle editor perhaps a thousand times over the years with multiple Python versions, including 3.2.3 (retried just now) on both Windows XP and Win7. (Note: on the General tab of the Preferences dialog, one can make saving automatic for named files.) Like many others, I have had no problems, so there is something peculiar about your system or installation. For us to be of any help, please provide the information Ned already requested.

    1. Start "Python (command line)" from Start/3.2 menu.
    2. Enter "from idlelib import idle" to start Idle.
    3. Either open a new or existing file and make a change.
    4. Try to save and tell us *exactly* the directory you are in and the filename you enter.
    5. If Idle closes, does it just go 'poof' or is there a Windows error message box?
    6. If there is a box, what does it say?
    7. If there is a traceback, copy *all* of it and paste into a message here.

    If you have to do anything different than the above to get an error, please be specific.

    ned-deily commented 12 years ago

    Terry, I believe Maureen was confirming that this appeared to be the same problem as documented in bpo-12988. So does anyone have any idea what apparently causes this behavior on some systems and not others?

    terryjreedy commented 12 years ago

    bpo-12988 was about saving specifically to a Win7 Explorer window sidebar 'library', and the OP report with 3.2.1. This is different from a normal path as you know it. Maureen said she cannot save 'any file' except to desktop and that the behavior changed from 3.2.1 to 3.2.3.

    Maureen, if you reply by email, PLEASE trim everything except your reply.

    f52c13af-a5a0-4c40-a7a2-6ce855459ec8 commented 12 years ago

    bpo-12988 only has this problem on 64-bit Win 7. The 32-bit version works correctly. Maureen tried both versions and had the same problem.

    3858b56a-a0a8-4ccf-85bf-629de7abab97 commented 12 years ago

    I have done some experimenting. I can save a file that I created on another computer any place. It seems the only new files cannot be save in my usual folder. I don't save in pyton32 folder. I have another folder to save in.

    Maybe this will help Maureen

    On Tue, Jun 5, 2012 at 10:00 AM, Roger Serwy \report@bugs.python.org\ wrote:

    Roger Serwy \roger.serwy@gmail.com\ added the comment:

    bpo-12988 only has this problem on 64-bit Win 7. The 32-bit version works correctly. Maureen tried both versions and had the same problem.

    ----------


    Python tracker \report@bugs.python.org\ \http://bugs.python.org/issue14996\


    3858b56a-a0a8-4ccf-85bf-629de7abab97 commented 12 years ago

    I was working on a project and by instinct did a save as with a new name. It worked fine. So just to test things. I closed out of all python files, opened idle, opened a new window, tried to save the new window and the swirling circle came and then the message 'python has stopped working'. Then everything closes.

    Maybe this will help Maureen

    On Tue, Jun 5, 2012 at 8:11 PM, Maureen Cuomo \report@bugs.python.org\wrote:

    Maureen Cuomo \mcuomo@prestonhs.org\ added the comment:

    I have done some experimenting. I can save a file that I created on another computer any place. It seems the only new files cannot be save in my usual folder. I don't save in pyton32 folder. I have another folder to save in.

    Maybe this will help Maureen

    On Tue, Jun 5, 2012 at 10:00 AM, Roger Serwy \report@bugs.python.org\ wrote:

    > > Roger Serwy \roger.serwy@gmail.com\ added the comment: > > bpo-12988 only has this problem on 64-bit Win 7. The 32-bit version works > correctly. Maureen tried both versions and had the same problem. > > ---------- > > > Python tracker \report@bugs.python.org\ > \http://bugs.python.org/issue14996\ > >

    ----------


    Python tracker \report@bugs.python.org\ \http://bugs.python.org/issue14996\


    f52c13af-a5a0-4c40-a7a2-6ce855459ec8 commented 12 years ago

    Maureen, can you please start IDLE from a command prompt and report the error message?

    Launch a command prompt, enter in "cd c:\python32" and then "python -m idlelib.idle". IDLE should appear. Proceed to save something that causes the crash. You should receive some feedback in the command prompt.

    3858b56a-a0a8-4ccf-85bf-629de7abab97 commented 12 years ago

    I get a syntax error when I type this in. I attached a word doc with the error screen Maureen

    On Tue, Jun 5, 2012 at 11:04 PM, Roger Serwy \report@bugs.python.org\ wrote:

    Roger Serwy \roger.serwy@gmail.com\ added the comment:

    Maureen, can you please start IDLE from a command prompt and report the error message?

    Launch a command prompt, enter in "cd c:\python32" and then "python -m idlelib.idle". IDLE should appear. Proceed to save something that causes the crash. You should receive some feedback in the command prompt.

    ----------


    Python tracker \report@bugs.python.org\ \http://bugs.python.org/issue14996\


    f52c13af-a5a0-4c40-a7a2-6ce855459ec8 commented 12 years ago

    You are already in a Python shell. Type in "import idlelib.idle" to launch IDLE.

    3858b56a-a0a8-4ccf-85bf-629de7abab97 commented 12 years ago

    OK. I did that. The idle window opened. I opened a new window to create a file; save the file in my usual directory and the same thing happened. The swirling circle and the message that python.exe has stopped working. Maureen

    On Wed, Jun 6, 2012 at 8:38 PM, Roger Serwy \report@bugs.python.org\ wrote:

    Roger Serwy \roger.serwy@gmail.com\ added the comment:

    You are already in a Python shell. Type in "import idlelib.idle" to launch IDLE.

    ----------


    Python tracker \report@bugs.python.org\ \http://bugs.python.org/issue14996\


    f52c13af-a5a0-4c40-a7a2-6ce855459ec8 commented 12 years ago

    Did any messages appear in the Python shell?

    3858b56a-a0a8-4ccf-85bf-629de7abab97 commented 12 years ago

    No. the window becomes 'faded' it is not reponding Maureen

    On Wed, Jun 6, 2012 at 8:51 PM, Roger Serwy \report@bugs.python.org\ wrote:

    Roger Serwy \roger.serwy@gmail.com\ added the comment:

    Did any messages appear in the Python shell?

    ----------


    Python tracker \report@bugs.python.org\ \http://bugs.python.org/issue14996\


    f52c13af-a5a0-4c40-a7a2-6ce855459ec8 commented 12 years ago

    How are you using the open dialog to navigate to your usual directory?

    3858b56a-a0a8-4ccf-85bf-629de7abab97 commented 12 years ago

    File , save as, libraries, documents - then I save the file there. No other folder right now. Maureen

    On Wed, Jun 6, 2012 at 9:01 PM, Roger Serwy \report@bugs.python.org\ wrote:

    Roger Serwy \roger.serwy@gmail.com\ added the comment:

    How are you using the open dialog to navigate to your usual directory?

    ----------


    Python tracker \report@bugs.python.org\ \http://bugs.python.org/issue14996\


    terryjreedy commented 12 years ago

    File , save as, libraries, documents - then I save the file there.

    Ok, I agree now that this seems to be a duplicate of bpo-12988 I will make a note there that another user had the same problem.

    3858b56a-a0a8-4ccf-85bf-629de7abab97 commented 12 years ago

    So now what happens? Maureen

    On Wed, Jun 6, 2012 at 9:21 PM, Terry J. Reedy \report@bugs.python.org\wrote:

    Terry J. Reedy \tjreedy@udel.edu\ added the comment:

    > File , save as, libraries, documents - then I save the file there.

    Ok, I agree now that this seems to be a duplicate of bpo-12988 I will make a note there that another user had the same problem.

    ---------- resolution: -> duplicate status: open -> closed superseder: -> Tkinter File Dialog crashes on Win7 when saving to Documents Library


    Python tracker \report@bugs.python.org\ \http://bugs.python.org/issue14996\


    f52c13af-a5a0-4c40-a7a2-6ce855459ec8 commented 12 years ago

    Further discussion of this issue will be under bpo-12988. We're working on finding a solution.

    f52c13af-a5a0-4c40-a7a2-6ce855459ec8 commented 12 years ago

    Sorry for the re-open. I submitted an old form.

    terryjreedy commented 12 years ago

    Maureen, as I explain on bpo-12988, I believe that this was a tcl/tk problem that was fixed by the recent release of version 8.5.11 (last March). The Windows installer for Python 3.3.0a4 release (a week ago) seems to have solved the problem for me. So give that a try.

    Martin or anyone else: is the same tcl/tk upgrade going into future 3.2 and 2.7 releases?

    61337411-43fc-4a9c-b8d5-4060aede66d0 commented 12 years ago

    If it really fixes the bug, I can update the Tcl version. However, for that, I would need precise instructions on how to reproduce the bug.

    f52c13af-a5a0-4c40-a7a2-6ce855459ec8 commented 12 years ago

    Precise instructions can be found in msg144106 and msg161168 from bpo-12988.