You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Zhuo Peng (Jira)" <ji...@apache.org> on 2021/02/01 17:22:00 UTC

[jira] [Commented] (ARROW-11458) PyArrow 1.x and 2.x do not work with numpy 1.20

    [ https://issues.apache.org/jira/browse/ARROW-11458?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17276505#comment-17276505 ] 

Zhuo Peng commented on ARROW-11458:
-----------------------------------

Sorry just saw 

https://issues.apache.org/jira/browse/ARROW-11450

 

This is a duplicate of that issue. 

> PyArrow 1.x and 2.x do not work with numpy 1.20
> -----------------------------------------------
>
>                 Key: ARROW-11458
>                 URL: https://issues.apache.org/jira/browse/ARROW-11458
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Python
>    Affects Versions: 1.0.0, 1.0.1, 2.0.0
>            Reporter: Zhuo Peng
>            Priority: Major
>
> Numpy 1.20 was released on 1/30 and it is not compatible with libraries that built against numpy<1.16.6 which is the case for pyarrow 1.x and 2.x. However, pyarrow does not specify an upper bound for the numpy version [1].
> ```
> Python 3.7.9 (default, Oct 30 2020, 13:50:59)
> [GCC 10.2.0] on linux
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import pyarrow as pa
> >>> import numpy as np
> >>> np.__version__
> '1.20.0'
> >>> pa.__version__
> '2.0.0'
> >>> pa.array(np.arange(10))
> Traceback (most recent call last):
>  File "<stdin>", line 1, in <module>
>  File "pyarrow/array.pxi", line 292, in pyarrow.lib.array
>  File "pyarrow/array.pxi", line 79, in pyarrow.lib._ndarray_to_array
>  File "pyarrow/array.pxi", line 67, in pyarrow.lib._ndarray_to_type
>  File "pyarrow/error.pxi", line 107, in pyarrow.lib.check_status
> pyarrow.lib.ArrowTypeError: Did not pass numpy.dtype object
> ```
>  
> [1] https://github.com/apache/arrow/blob/478286658055bb91737394c2065b92a7e92fb0c1/python/setup.py#L572
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)