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\", 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\", 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\", line 11, in execfile
stream = # @UndefinedVariable
File "C:\Users\xxxx\AppData\Local\Programs\Python\Python37-32\lib\", 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?




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? 



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...


Please sign in to leave a comment.