[
https://issues.apache.org/jira/browse/ARROW-7852?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17036853#comment-17036853
]
Joris Van den Bossche commented on ARROW-7852:
----------------------------------------------
This was indeed recently changed when python 3.8 wheels were added:
https://github.com/apache/arrow/commit/6c6754aa5fb840466dfd618ca5b6ae7ca72ebbfa#diff-94dc694d92cc1b6b76aec59e5b36a1c1R4
The numpy version that gets installed in the environment to build wheels needs
to be dependent on the python version. See eg how scipy does this:
https://github.com/scipy/scipy/blob/566ce19b81478df7418f6bf73641491a7b8937cb/pyproject.toml#L6-L8
> Update pyarrow numpy requirement
> --------------------------------
>
> Key: ARROW-7852
> URL: https://issues.apache.org/jira/browse/ARROW-7852
> Project: Apache Arrow
> Issue Type: Bug
> Affects Versions: 0.16.0
> Reporter: Stephanie Gott
> Priority: Minor
>
> 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)