You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "A. Coady (Jira)" <ji...@apache.org> on 2020/05/03 17:27:00 UTC

[jira] [Commented] (ARROW-7852) [Python] 0.16.0 wheels not compatible with older numpy

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

A. Coady commented on ARROW-7852:
---------------------------------

This is still an issue with an existing numpy installed.
{code:java}
// # pip install 'numpy<1.16' pyarrow
Collecting numpy<1.16
  Downloading numpy-1.15.4.zip (4.5 MB)
     |████████████████████████████████| 4.5 MB 193 kB/s 
Collecting pyarrow
  Downloading pyarrow-0.17.0-cp38-cp38-manylinux2014_x86_64.whl (63.8 MB)
     |████████████████████████████████| 63.8 MB 119 kB/s 
Building wheels for collected packages: numpy
  Building wheel for numpy (setup.py) ... done
  Created wheel for numpy: filename=numpy-1.15.4-cp38-cp38-linux_x86_64.whl size=13772718 sha256=cec36267c8aee27facc89dfba5910937d8e31b19eb4e3ee68beb9c3e936d7ee8
  Stored in directory: /root/.cache/pip/wheels/d6/69/4d/48915a531b781ba9f19dd1d5c3da7e46303e31b6ad5b726d84
Successfully built numpy
Installing collected packages: numpy, pyarrow
Successfully installed numpy-1.15.4 pyarrow-0.17.0
root@d5515e090702:/# python -c 'import pyarrow'
ModuleNotFoundError: No module named 'numpy.core._multiarray_umath'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/local/lib/python3.8/site-packages/pyarrow/__init__.py", line 59, in <module>
    from pyarrow.lib import cpu_count, set_cpu_count
  File "pyarrow/lib.pyx", line 37, in init pyarrow.lib
ImportError: numpy.core.multiarray failed to import
{code}
I think the setup `install_requires` needs to specify numpy>=1.16.

> [Python] 0.16.0 wheels not compatible with older numpy
> ------------------------------------------------------
>
>                 Key: ARROW-7852
>                 URL: https://issues.apache.org/jira/browse/ARROW-7852
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Packaging, Python
>    Affects Versions: 0.16.0
>            Reporter: Stephanie Gott
>            Assignee: Krisztian Szucs
>            Priority: Blocker
>              Labels: pull-request-available
>             Fix For: 0.17.0
>
>          Time Spent: 2h 50m
>  Remaining Estimate: 0h
>
> Using python 3.7.5 and numpy 1.14.6, I am unable to import pyarrow 0.16.0 (see below for error). Updating numpy to the most recent version fixes this, and I'm wondering if pyarrow needs update its requirements.txt.
>  
> {code:java}
> ➜  ~ ipython
> Python 3.7.5 (default, Nov  7 2019, 10:50:52)
> Type 'copyright', 'credits' or 'license' for more information
> IPython 7.9.0 -- An enhanced Interactive Python. Type '?' for help.
> In [1]: import numpy as npIn [2]: np.__version__
> Out[2]: '1.14.6'
> In [3]: import pyarrow
> ---------------------------------------------------------------------------
> ModuleNotFoundError                       Traceback (most recent call last)
> ModuleNotFoundError: No module named 'numpy.core._multiarray_umath'
> ---------------------------------------------------------------------------
> ImportError                               Traceback (most recent call last)
> <ipython-input-3-f1048abcb32d> in <module>
> ----> 1 import pyarrow~/.local/lib/python3.7/site-packages/pyarrow/__init__.py in <module>
>      47 import pyarrow.compat as compat
>      48
> ---> 49 from pyarrow.lib import cpu_count, set_cpu_count
>      50 from pyarrow.lib import (null, bool_,
>      51                          int8, int16, int32, int64,~/.local/lib/python3.7/site-packages/pyarrow/lib.pyx in init pyarrow.lib()ImportError: numpy.core.multiarray failed to import
> In [4]: import pyarrow
> ---------------------------------------------------------------------------
> AttributeError                            Traceback (most recent call last)
> <ipython-input-4-f1048abcb32d> in <module>
> ----> 1 import pyarrow~/.local/lib/python3.7/site-packages/pyarrow/__init__.py in <module>
>      47 import pyarrow.compat as compat
>      48
> ---> 49 from pyarrow.lib import cpu_count, set_cpu_count
>      50 from pyarrow.lib import (null, bool_,
>      51                          int8, int16, int32, int64,~/.local/lib/python3.7/site-packages/pyarrow/ipc.pxi in init pyarrow.lib()AttributeError: type object 'pyarrow.lib.Message' has no attribute '__reduce_cython__'
> {code}



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