Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Has anyone experience a winError[5] Access Denied in Windows 10?
#1
Hello, I am running a script that turns into an error when running one of the built in scripts in Python (subprocess.py). The error appears to be Windows related but I am not sure. I was wondering if anyone had experience this error and could point me to a potential solution. I am running this script from VSC (Visual Studio Code) using Python3 in powershell. The following is my traceback:

Error:
[i]ERROR (78 seconds). Unexpected error occured during 'Update' procedure. Exception: Traceback (most recent call last): File "c:/TouchGFXProjects/769_try/ideScripts/update.py", line 56, in <module> makefileData = makefile.getMakefileData(makeExePath, gccExePath) File "c:\TouchGFXProjects\769_try\ideScripts\updateMakefile.py", line 93, in getMakefileData projectName = self.getMakefileVariable(makeExePath, gccExePath, self.mkfStr.projectName)[0] File "c:\TouchGFXProjects\769_try\ideScripts\updateMakefile.py", line 366, in getMakefileVariable proc = Popen(arguments, stdout=PIPE) File "C:\Users\omis2\AppData\Local\Programs\Python\Python38-32\lib\subprocess.py", line 854, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "C:\Users\omis2\AppData\Local\Programs\Python\Python38-32\lib\subprocess.py", line 1307, in _execute_child hp, ht, pid, tid = _winapi.CreateProcess(executable, args, PermissionError: [WinError 5] Access is denied[/i]
I have tried changing my permissions to the C folder by setting myself as an admin to no avail. Note that the original script is in drive D while the python installation is in the c:\user\username\app data\programs\python path.

Thank you very much in advance for any help
Larz60+ wrote Nov-11-2019, 06:08 AM:
fixed incorrect error tag
Quote
#2
I'm not a Windows user but it would be a good idea to get the command that python tries to call by printing the arguments before the statement proc = Popen(arguments, stdout=PIPE) at line 366 in updateMakefile.py. If these arguments are for example ['spam.exe', '-s', 'eggs', 'ham'] then you could
  • check that the program can access spam.exe (permissions)
  • try the command spam.exe -s eggs ham in a terminal (cmd window) to see if it runs correctly.
Quote
#3
(Nov-11-2019, 07:10 AM)Gribouillis Wrote: I'm not a Windows user but it would be a good idea to get the command that python tries to call by printing the arguments before the statement proc = Popen(arguments, stdout=PIPE) at line 366 in updateMakefile.py. If these arguments are for example ['spam.exe', '-s', 'eggs', 'ham'] then you could
  • check that the program can access spam.exe (permissions)
  • try the command spam.exe -s eggs ham in a terminal (cmd window) to see if it runs correctly.

Thanks very much for the response. I will be looking into it.

regards,
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  PermissionError: [Errno 13] Permission denied: error leviathan54 2 7,568 Apr-20-2019, 12:51 AM
Last Post: leviathan54
  [python] PermissionError: [Errno 13] Permission denied akamouch 1 17,788 Feb-07-2019, 03:28 PM
Last Post: ichabod801
  getting [Errno 13] Permission denied: gobinath 1 1,816 Jan-29-2019, 05:36 PM
Last Post: Larz60+
  OSError: [Errno 13] Permission denied Kolterdyx 3 8,411 Sep-07-2018, 11:01 AM
Last Post: Gribouillis
  python 2.7 access denied when writing a file to Windows kavise 2 5,264 Feb-13-2018, 08:30 PM
Last Post: kavise
  [WinError 193] %1 is not a valid Win32 application edlipson 1 4,645 Jan-24-2018, 12:52 AM
Last Post: snippsat
  iam getting problem that permission denied to open the file andprocess whileexecution srinivas135 1 1,424 Sep-27-2017, 09:09 PM
Last Post: nilamo
  my python is popping up the error FileNotFoundError: [WinError 3] ? srinivas135 3 9,564 Sep-13-2017, 09:38 PM
Last Post: nilamo
  File access confusion python windows PickyBiker 0 1,365 May-08-2017, 05:36 PM
Last Post: PickyBiker

Forum Jump:


Users browsing this thread: 1 Guest(s)