You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@arrow.apache.org by "Philipp Moritz (JIRA)" <ji...@apache.org> on 2017/07/15 12:13:02 UTC
[jira] [Created] (ARROW-1216) Numpy arrays cannot be created from
Arrow Buffers on Python 2
Philipp Moritz created ARROW-1216:
-------------------------------------
Summary: Numpy arrays cannot be created from Arrow Buffers on Python 2
Key: ARROW-1216
URL: https://issues.apache.org/jira/browse/ARROW-1216
Project: Apache Arrow
Issue Type: Bug
Components: Python
Affects Versions: 0.4.1
Reporter: Philipp Moritz
Assignee: Philipp Moritz
Fix For: 0.5.0
This can be reproduced by installing pyarrow in Anaconda2 and then running
{code}
In [1]: import pyarrow
In [2]: import pyarrow as pa
In [3]: ba = bytearray(20)
In [5]: b = pa.frombuffer(ba)
In [6]: import numpy as np
In [7]: np.frombuffer(b)
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-7-62b103a5000b> in <module>()
----> 1 np.frombuffer(b)
AttributeError: 'pyarrow.lib.Buffer' object has no attribute '__buffer__'
{code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)