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

Joris Van den Bossche commented on ARROW-8685:
----------------------------------------------

[~coady] you are using Python 3.8, correct? 
Since numpy 1.15 was released well before the existance of Python 3.8, it is 
not fully compatible with that python version. Therefore, for Python 3.8, the 
wheels are indeed built against numpy 1.17 (which means you need to have numpy 
>= 1.17 installed to have it working)

I tested on Python 3.6, and can confirm the wheel correctly imports there when 
installed with numpy 1.15.



> [Python] ImportError with NumPy<1.16.
> -------------------------------------
>
>                 Key: ARROW-8685
>                 URL: https://issues.apache.org/jira/browse/ARROW-8685
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Packaging, Python
>    Affects Versions: 0.17.0
>            Reporter: A. Coady
>            Priority: Major
>
> {noformat}
> # pip install 'numpy<1.16' pyarrow...
> Successfully built numpy
> Installing collected packages: numpy, pyarrow
> Successfully installed numpy-1.15.4 pyarrow-0.17.0
> # 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
> {noformat}
> Arrow's setup.py requires numpy>=1.14, but the actual requirement appears to 
> be >=1.16.  
> This is related to ARROW-7852; users will still see an ImportError if an 
> older NumPy was already installed.



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

Reply via email to