Python Forum
subprocess.Popen() suddenly giving me grief?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
subprocess.Popen() suddenly giving me grief?
#1
Information 
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community>python3
Python 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import subprocess
>>> subprocess.Popen(['Z:/depot/kJams/Scripting/AutoPin.exe', 'parameter'])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line 971, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line 1456, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
OSError: [WinError 50] The request is not supported


this was working recently. this is on Windows 10 with all latest OS updates

problem may have started after recent OS update?

   
Reply
#2
Try to launch the program from a command line in a terminal, not from Python, to see if it works as expected.
« We can solve any problem by introducing an extra level of indirection »
Reply
#3
it does not work in terminal either.
note that it is on a network mapped drive, but that should not affect things, especially because i explicitly allowed that intratnet zone
Reply
#4
when i move the AutoPin.exe to an internal drive, it DOES work. so it has something to do with the fact that it's on a network-mapped drive. but see my screen shot where you can see that i EXPLICITLY allow running apps from that drive
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  print(data) is suddenly invalid syntax db042190 6 1,214 Jun-14-2023, 02:55 PM
Last Post: deanhystad
  Python debug suddenly got bad ben1122 3 1,109 Sep-03-2022, 06:20 AM
Last Post: ben1122
  Use subprocess.Popen and time.sleep chucky831 2 1,960 Aug-11-2022, 07:53 PM
Last Post: carecavoador
  string.format() suddenly causing errors with google drive API zwitrader 0 1,774 Jun-28-2021, 11:38 PM
Last Post: zwitrader
  Subprocess.Popen() not working when reading file path from csv file herwin 13 15,125 May-07-2021, 03:26 PM
Last Post: herwin
  Did subprocess.Popen() causes main routine to pause stdout? liudr 4 3,665 May-04-2021, 08:58 PM
Last Post: liudr
  disable subprocess.popen prompt echo paul18fr 1 2,022 Feb-04-2021, 02:50 AM
Last Post: Larz60+
  how to pass the interactive string to Popen subprocess maiya 1 1,890 Sep-18-2020, 09:36 PM
Last Post: Larz60+
  How to get program output from subprocess.Popen? glestwid 1 2,380 Aug-19-2020, 05:44 AM
Last Post: buran
  subprocess.Popen() and encodings voltron 0 5,757 Feb-20-2020, 04:57 PM
Last Post: voltron

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020