orca icon indicating copy to clipboard operation
orca copied to clipboard

IIS 10 write_image() fails on POpen()

Open andyp05 opened this issue 4 years ago • 1 comments

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

andyp05 avatar May 17 '20 16:05 andyp05

cc @nicolaskruchten @jonmmease

antoinerg avatar May 19 '20 15:05 antoinerg