Python Error: [Errno 13] Permission denied:

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Fang Ride
    New Member
    • Oct 2011
    • 1

    Python Error: [Errno 13] Permission denied:

    How come when i type this:

    Code:
    signin=raw_input("Username: ")
    signin1=raw_input("Password: ")
    addon=('.txt')
    create1=signin + addon
    directory=r"d:Computer\OS(C:)\PROFILE TEXTS\\fmi11.ods"
    create=open(directory)
    create.read()
    I get this:

    Traceback (most recent call last):
    File "C:\Users\user1 \Desktop\Sign_I n.py", line 6, in <module>
    create=open(dir ectory)
    IOError: [Errno 13] Permission denied: 'd:Computer\\OS (C:)\\PROFILE TEXTS\\\\fmi11. ods'
    Last edited by bvdet; Oct 15 '11, 01:59 AM. Reason: Add code tags
  • bvdet
    Recognized Expert Specialist
    • Oct 2006
    • 2851

    #2
    That message is displayed when you do not have permission to open the file you are attempting to access.

    Comment

    Working...