orca
orca copied to clipboard
IIS 10 write_image() fails on POpen()
I think I have found the issue of IIS launching the orca server. In _orca.py ensure_server()
stderr = DEVNULL if "CI" in os.environ else None # fix for CI
orca_state["proc"] = subprocess.Popen(
cmd_list, stdout=DEVNULL, stderr=stderr
)
fails with orca_state["proc"] = None If you change to:
orca_state["proc"] = subprocess.Popen(
cmd_list, stdout=subprocess.PIPE,
stderr=subprocess.PIPE, stdin=subprocess.DEVNULL)
it works as expected.
Can I set stdout, stdin, and stderr in a configuration setting instead of modifying source code?
Thanks
cc @nicolaskruchten @jonmmease