Skip to content

Commit ba24f92

Browse files
committed
run orca with --no-sandbox flag
1 parent 60e3666 commit ba24f92

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

packages/python/plotly/plotly/io/_orca.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1142,7 +1142,9 @@ def validate_executable():
11421142
# ### Run with Popen so we get access to stdout and stderr
11431143
with orca_env():
11441144
p = subprocess.Popen(
1145-
executable_list + ["--help"], stdout=subprocess.PIPE, stderr=subprocess.PIPE
1145+
executable_list + ["--no-sandbox", "--help"],
1146+
stdout=subprocess.PIPE,
1147+
stderr=subprocess.PIPE,
11461148
)
11471149

11481150
help_result, help_error = p.communicate()
@@ -1212,7 +1214,7 @@ def validate_executable():
12121214
# ### Run with Popen so we get access to stdout and stderr
12131215
with orca_env():
12141216
p = subprocess.Popen(
1215-
executable_list + ["--version"],
1217+
executable_list + ["--no-sandbox", "--version"],
12161218
stdout=subprocess.PIPE,
12171219
stderr=subprocess.PIPE,
12181220
)
@@ -1406,6 +1408,7 @@ def ensure_server():
14061408

14071409
# Build orca command list
14081410
cmd_list = status._props["executable_list"] + [
1411+
"--no-sandbox",
14091412
"serve",
14101413
"-p",
14111414
str(orca_state["port"]),

packages/python/plotly/plotly/tests/test_orca/test_orca_server.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ def test_external_server_url():
164164
# Build external orca command
165165
orca_path = which("orca")
166166
cmd_list = [orca_path] + [
167+
"--no-sandbox",
167168
"serve",
168169
"-p",
169170
str(port),

0 commit comments

Comments
 (0)