[
https://issues.apache.org/jira/browse/ARROW-2459?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16441371#comment-16441371
]
Joshua Storck commented on ARROW-2459:
--------------------------------------
You are not using symmetric calls in app.py and test_request.py. Here's an
example that works just fine:
{code:python}
import pandas as pd
import pyarrow as pa
import numpy as np
import io
df = pd.DataFrame([dict(a=99, b=100.0), dict(a=5, b=77.77)])
print(df.to_string())
serialized_df = pa.serialize_pandas(df)
bb = io.BytesIO(serialized_df)
bb = pa.py_buffer(bb.getvalue())
df = pa.deserialize_pandas(bb)
print(df.to_string())
{code}
If that works, can I close this?
> pyarrow: Segfault with pyarrow.deserialize_pandas
> -------------------------------------------------
>
> Key: ARROW-2459
> URL: https://issues.apache.org/jira/browse/ARROW-2459
> Project: Apache Arrow
> Issue Type: Bug
> Components: Python
> Environment: OS X, Linux
> Reporter: Travis Brady
> Priority: Major
>
> Following up from [https://github.com/apache/arrow/issues/1884] wherein I
> found that calling deserialize_pandas in the linked app.py script in the repo
> linked below causes the app.py process to segfault.
> I initially observed this on OS X, but have since confirmed that the behavior
> exists on Linux as well.
> Repo containing example: [https://github.com/travisbrady/sanic-arrow]
> And more generally: what is the right way to get a Java-based HTTP
> microservice to talk to a Python-based HTTP microservice using Arrow as the
> serialization format? I'm exchanging DataFrame type objects (they are
> pandas.DataFrame's on the Python side) between the two services for real-time
> scoring in a few xgboost models implemented in Python.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)