[issue35678] Issue with execute_child in startupinfo
STINNER Victor
report at bugs.python.org
Mon Jan 7 09:36:50 EST 2019
STINNER Victor <vstinner at redhat.com> added the comment:
The screenshot says "OSError: [WinError 87] Falscher Parameter" at Lib/subprocess.py:1178 which is this call:
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
# no special security
None, None,
int(not close_fds),
creationflags,
env,
os.fspath(cwd) if cwd is not None else None,
startupinfo)
According to the traceback, the call is:
subprocess.check_output([execStr,"-3",self.geofile,"-o",self.vtkFile])
Can you please dump these parameters? Are they all strings?
IMHO execStr, self.geofile or self.vtkFile is not a valid string and it's a bug in your code.
Context:
* bpo-34044
* commit 29be3bd3c9aed0190e60096a603120cacda82375
* Comments on the commit: https://github.com/python/cpython/commit/29be3bd3c9aed0190e60096a603120cacda82375#commitcomment-31855236
----------
nosy: +vstinner
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35678>
_______________________________________
More information about the Python-bugs-list
mailing list