By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,676 Members | 2,249 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,676 IT Pros & Developers. It's quick & easy.

Python Error: [Errno 13] Permission denied:

P: 1
How come when i type this:

Expand|Select|Wrap|Line Numbers
  1. signin=raw_input("Username: ")
  2. signin1=raw_input("Password: ")
  3. addon=('.txt')
  4. create1=signin + addon
  5. directory=r"d:Computer\OS(C:)\PROFILE TEXTS\\fmi11.ods"
  6. create=open(directory)
I get this:

Traceback (most recent call last):
File "C:\Users\user1\Desktop\", line 6, in <module>
IOError: [Errno 13] Permission denied: 'd:Computer\\OS(C:)\\PROFILE TEXTS\\\\fmi11.ods'
Oct 15 '11 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 2.5K+
P: 2,851
That message is displayed when you do not have permission to open the file you are attempting to access.
Oct 15 '11 #2

Post your reply

Sign in to post your reply or Sign up for a free account.