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:20:00 UTC

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

Zhuo Peng created ARROW-11458:
---------------------------------

             Summary: 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: 2.0.0, 1.0.1, 1.0.0
            Reporter: Zhuo Peng


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)