You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Uwe L. Korn (JIRA)" <ji...@apache.org> on 2017/07/15 20:11:00 UTC

[jira] [Resolved] (ARROW-1216) Numpy arrays cannot be created from Arrow Buffers on Python 2

     [ https://issues.apache.org/jira/browse/ARROW-1216?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Uwe L. Korn resolved ARROW-1216.
--------------------------------
    Resolution: Fixed

Issue resolved by pull request 844
[https://github.com/apache/arrow/pull/844]

> 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)