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
  Sublime Text 3 WinError 2 File Specified HelloWorld17 0 130 Apr-02-2020, 09:03 AM
Last Post: HelloWorld17
  Windows fatal exception: access violation czhhua28 0 636 Mar-11-2020, 01:53 AM
Last Post: czhhua28
  Fixing "PermissionError: [Errno 13] Permission denied" puredata 17 5,242 Mar-09-2020, 03:20 PM
Last Post: syssy
  cx_freeze frozen executive introduces WinError 10049 KipCarter 3 316 Jan-14-2020, 02:34 PM
Last Post: KipCarter
  .py to exe error "oserror winerror 193" michael1789 3 703 Dec-03-2019, 05:49 AM
Last Post: michael1789
  PermissionError: [Errno 13] Permission denied: error leviathan54 2 21,773 Apr-20-2019, 12:51 AM
Last Post: leviathan54
  [python] PermissionError: [Errno 13] Permission denied akamouch 1 31,855 Feb-07-2019, 03:28 PM
Last Post: ichabod801
  getting [Errno 13] Permission denied: gobinath 1 3,332 Jan-29-2019, 05:36 PM
Last Post: Larz60+
  OSError: [Errno 13] Permission denied Kolterdyx 3 11,747 Sep-07-2018, 11:01 AM
Last Post: Gribouillis
  python 2.7 access denied when writing a file to Windows kavise 2 6,867 Feb-13-2018, 08:30 PM
Last Post: kavise

Forum Jump:


Users browsing this thread: 1 Guest(s)