Skip to content

IDLE won't open anymore, .idlerc unaccessible #48875

Closed

Description

@skcheng
mannequin
BPO 4625
Nosy @amauryfa, @devdanzin, @ned-deily, @serwy
Files
  • issue4625.patch
  • issue4625_rev1.patch
  • issue4625_rev1_27.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 = 'https://github.com/ned-deily'
    closed_at = <Date 2011-12-14.23:23:10.400>
    created_at = <Date 2008-12-11.03:30:21.480>
    labels = ['expert-IDLE', 'type-bug', 'expert-installation']
    title = "IDLE won't open anymore, .idlerc unaccessible"
    updated_at = <Date 2011-12-14.23:23:10.397>
    user = 'https://bugs.python.org/skcheng'

    bugs.python.org fields:

    activity = <Date 2011-12-14.23:23:10.397>
    actor = 'ned.deily'
    assignee = 'ned.deily'
    closed = True
    closed_date = <Date 2011-12-14.23:23:10.400>
    closer = 'ned.deily'
    components = ['IDLE', 'Installation']
    creation = <Date 2008-12-11.03:30:21.480>
    creator = 'skcheng'
    dependencies = []
    files = ['23948', '23953', '23954']
    hgrepos = []
    issue_num = 4625
    keywords = ['patch']
    message_count = 11.0
    messages = ['77588', '83857', '86625', '87692', '91961', '149417', '149429', '149455', '149458', '149484', '149485']
    nosy_count = 8.0
    nosy_names = ['amaury.forgeotdarc', 'ajaksu2', 'gpolo', 'ned.deily', 'roger.serwy', 'skcheng', 'timium', 'python-dev']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue4625'
    versions = ['Python 2.7', 'Python 3.2', 'Python 3.3']

    Activity

    1. skcheng commented on Dec 11, 2008

      skchengmannequin
      MannequinAuthor

      Hello,

      I was able to run IDLE once or twice on my laptop. Then I downloaded
      kiki and tried to run it but had forgotten to install wxPython. After
      that, IDLE no longer opens although the command prompt does still work.
      I get the following error:

      C:\Python25>python.exe Lib\idlelib\idle.py
      Traceback (most recent call last):
        File "Lib\idlelib\idle.py", line 21, in <module>
          idlelib.PyShell.main()
        File "C:\Python25\lib\idlelib\PyShell.py", line 1404, in main
          shell = flist.open_shell()
        File "C:\Python25\lib\idlelib\PyShell.py", line 275, in open_shell
          self.pyshell = PyShell(self)
        File "C:\Python25\lib\idlelib\PyShell.py", line 813, in __init__
          OutputWindow.__init__(self, flist, None, None)
        File "C:\Python25\lib\idlelib\OutputWindow.py", line 16, in __init__
          EditorWindow.__init__(self, *args)
        File "C:\Python25\lib\idlelib\EditorWindow.py", line 248, in __init__
          self.update_recent_files_list()
        File "C:\Python25\lib\idlelib\EditorWindow.py", line 715, in
      update_recent_fil
      es_list
          rf_file = open(self.recent_files_path, 'w')
      IOError: [Errno 13] Permission denied: 'C:\\Documents and
      Settings\\skcheng\\.id
      lerc\\recent-files.lst'

      I've tried uninstalling and reinstalling several times 2.5 and also 2.6.
      When I look at the folder .idlerc in windows explorer, I get an error
      each time I click on it that access is denied, even though I am running
      as administrator on my laptop. I have tried uninstalling Python and
      deleting the .idlerc folder. I have also tried manually unchecking the
      read-only property for the folder. I have a Lenovo T400 that is built
      for Windows Vista, but am running Windows XP. Thank you.

    2. timium commented on Mar 20, 2009

      timiummannequin
      Mannequin

      I meet the same problem and have it fixed. I use Python 2.5.2 on Windows XP.

      This is my solution:

      1. Choose "Tool->Folder Option" in your explorer menu, then click "View"
        tab, uncheck "use simple file sharing(recommended)".
      2. Right click on "C:\Documents and Settings\<YourName>\.idlerc" folder,
        then click "property", you got the folder property dialog
      3. Click "Safety" tab, you may found there's only "System" user in the
        list. Click "Add" and add type your username, then click "OK".
      4. Select your name in the list, enable all the permissions in the box
        below.

      Now this problem should be fixed. Hope this works.

    3. devdanzin commented on Apr 26, 2009

      devdanzinmannequin
      Mannequin

      Any ideas about how the permissions for .idlerc may get wrong? Is this
      something we can check and try to fix (or warn about) on install?

    4. amauryfa commented on May 13, 2009

      @amauryfa
      Contributor

      Was python installed with another user account, or a "just for me" install?

    5. skcheng commented on Aug 26, 2009

      skchengmannequin
      MannequinAuthor

      Thanks!! This worked perfectly! Finally got around to trying this out
      today.

      Sincerely,
      Sophia

      On 3/20/09 4:26 AM, "Timothy Zhang" <report@bugs.python.org> wrote:

      Timothy Zhang <zt@live.cn> added the comment:

      I meet the same problem and have it fixed. I use Python 2.5.2 on Windows XP.

      This is my solution:

      1. Choose "Tool->Folder Option" in your explorer menu, then click "View"
        tab, uncheck "use simple file sharing(recommended)".
      2. Right click on "C:\Documents and Settings\<YourName>\.idlerc" folder,
        then click "property", you got the folder property dialog
      3. Click "Safety" tab, you may found there's only "System" user in the
        list. Click "Add" and add type your username, then click "OK".
      4. Select your name in the list, enable all the permissions in the box
        below.

      Now this problem should be fixed. Hope this works.

      ----------
      nosy: +timium


      Python tracker <report@bugs.python.org>
      <http://bugs.python.org/issue4625\>


    6. serwy commented on Dec 14, 2011

      serwymannequin
      Mannequin

      A quick test on Linux would be:
      chmod -w ~/.idlerc/recent-files.lst

      IDLE will give a traceback and not start. This should not be a fatal error.

      The provided patch will present an error dialog if the recent files list can not be written.

    7. ned-deily commented on Dec 14, 2011

      @ned-deily
      Member

      A couple of comments on the patch:

      1. Displaying a popup is fine but it gets annoying when it does it repeatedly. Since this is really a non-fatal error as the user can continue, it would be better to only display the popup once.
      2. Another file in .idlerc, breakpoints.lst, has the same problem.

      Here are updated patches that address these issues.

    8. serwy commented on Dec 14, 2011

      serwymannequin
      Mannequin

      I just tested Ned's updated patches against 3.3a0 and 2.7 and they work as advertised.

    9. skcheng commented on Dec 14, 2011

      skchengmannequin
      MannequinAuthor

      Hi Ned,

      Thanks for the patch, I appreciate it. Sadly, I've since upgraded my
      laptop to Win 7, and don't seem to be having the problem anymore :-/ , so I
      can't verify. But thank you for writing a patch.

      Sincerely,
      Sophia

      On Wed, Dec 14, 2011 at 10:50 AM, Roger Serwy <report@bugs.python.org>wrote:

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

      I just tested Ned's updated patches against 3.3a0 and 2.7 and they work as
      advertised.

      ----------


      Python tracker <report@bugs.python.org>
      <http://bugs.python.org/issue4625\>


    10. python-dev commented on Dec 14, 2011

      python-devmannequin
      Mannequin

      New changeset 7857d1f4ce79 by Ned Deily in branch '2.7':
      Issue bpo-4625: If IDLE cannot write to its recent file or breakpoint
      http://hg.python.org/cpython/rev/7857d1f4ce79

      New changeset 26e3e542d20d by Ned Deily in branch '3.2':
      Issue bpo-4625: If IDLE cannot write to its recent file or breakpoint
      http://hg.python.org/cpython/rev/26e3e542d20d

      New changeset ba832d42cd9e by Ned Deily in branch 'default':
      Issue bpo-4625: If IDLE cannot write to its recent file or breakpoint
      http://hg.python.org/cpython/rev/ba832d42cd9e

      New changeset f6ca22bbf138 by Ned Deily in branch '2.7':
      Issue bpo-4625: add NEWS entry.
      http://hg.python.org/cpython/rev/f6ca22bbf138

      New changeset f1fe411bfd6b by Ned Deily in branch '3.2':
      Issue bpo-4625: add NEWS entry.
      http://hg.python.org/cpython/rev/f1fe411bfd6b

      New changeset f6510cdf4ada by Ned Deily in branch 'default':
      Issue bpo-4625: Add NEWS entry.
      http://hg.python.org/cpython/rev/f6510cdf4ada

    11. ned-deily commented on Dec 14, 2011

      @ned-deily
      Member

      Applied to 2.7 (for release in 2.7.3), 3.2 (3.2.3), and default (3.3).

    12. self-assigned this
      on Dec 14, 2011
    13. 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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions