Commit f6bbdae
authored
Add workaround for orca segmentation fault (#1140)
* Workaround for plotly/orca#124
Unset the NODE_OPTIONS environment variable before calling orca
to avoid an orca segmentation fault
* Constrain ipykernel version. Build was breaking on Python 2.7 with ipykernel 4.9
* Reconnect stream write on 502 errors
Example test failure:
```
======================================================================
ERROR: test_stream_single_points (plotly.tests.test_plot_ly.test_stream.test_stream.TestStreaming)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/circleci/project/plotly/tests/test_plot_ly/test_stream/test_stream.py", line 52, in test_stream_single_points
my_stream.write(Scatter(x=[1], y=[10]))
File "/home/circleci/project/plotly/plotly/plotly.py", line 704, in write
self._stream.write(jdata, reconnect_on=reconnect_on)
File "/home/circleci/project/plotly/plotly/chunked_requests/chunked_request.py", line 61, in write
msg=response.read()))
Exception: Server responded with status code: 502
and message: <html><body><h1>502 Bad Gateway</h1>
The server returned an invalid or incomplete response.
</body></html>
```1 parent 091f4c1 commit f6bbdae
File tree
3 files changed
+9
-1
lines changed- plotly
- io
- plotly/chunked_requests
3 files changed
+9
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
911 | 911 | | |
912 | 912 | | |
913 | 913 | | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
914 | 921 | | |
915 | 922 | | |
916 | 923 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
| |||
0 commit comments