PermissionError: [Errno 13] Permission denied: 'C:/XXXX' windows 10

I just installed Windows 10 on this machine. I previously had no problem. Running the application as admin makes no difference.

I am getting this error:

Traceback (most recent call last):
File "C:\Users\xxxx\AppData\Local\Programs\Python\Python37-32\lib\site-packages\IPython\core\interactiveshell.py", line 3291, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-2-8a5ffd39cbb3>", line 1, in <module>
runfile('C:/Users/xxxx/test', wdir='C:/Users/xxxx')
File "C:\Program Files\JetBrains\PyCharm Community Edition 2018.3.5\helpers\pydev\_pydev_bundle\pydev_umd.py", line 197, in runfile
pydev_imports.execfile(filename, global_vars, local_vars) # execute the script
File "C:\Program Files\JetBrains\PyCharm Community Edition 2018.3.5\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 11, in execfile
stream = tokenize.open(file) # @UndefinedVariable
File "C:\Users\xxxx\AppData\Local\Programs\Python\Python37-32\lib\tokenize.py", line 447, in open
buffer = _builtin_open(filename, 'rb')
PermissionError: [Errno 13] Permission denied: 'C:/Users/xxxx/test'


I'm at loss for a solution.

I'm admin, running pycharm as admin... what else does it want?

 

2 comments
Comment actions Permalink

Hi,

When do you get this error? Upon PyCharm lauch, on code execution, or any other action? If it's on code execution, does it happen with any script? 

0
Comment actions Permalink

Hi,

The error was due to the script path not being the .py script. For some reason I managed to not do this mistake for a while...

0

Please sign in to leave a comment.