You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Joris Van den Bossche (JIRA)" <ji...@apache.org> on 2019/04/24 13:43:00 UTC

[jira] [Comment Edited] (ARROW-5210) [Python] editable install (pip install -e .) is failing

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

Joris Van den Bossche edited comment on ARROW-5210 at 4/24/19 1:42 PM:
-----------------------------------------------------------------------

With pip 19.1 (released yesterday), one needs to do {{pip install -e . --no-use-pep517 --no-build-isolation}} to get it running with our current set-up.


was (Author: jorisvandenbossche):
With pip 19.1 (released yesterday), one needs to do {{{{pip install -e . --no-use-pep517 --no-build-isolation}}}} to get it running with our current set-up.

> [Python] editable install (pip install -e .) is failing 
> --------------------------------------------------------
>
>                 Key: ARROW-5210
>                 URL: https://issues.apache.org/jira/browse/ARROW-5210
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Python
>            Reporter: Joris Van den Bossche
>            Priority: Minor
>
> Following the python development documentation on building arrow and pyarrow ([https://arrow.apache.org/docs/developers/python.html#build-and-test),] building pyarrow inplace with {{python setup.py build_ext --inplace}} works fine.
>  
> But if you want to also install this inplace version in the current python environment (editable install / development install) using pip ({{pip install -e .}}), this fails during the {{built_ext}} / cmake phase:
> {code:none}
>  
>     -- Looking for python3.7m
>     -- Found Python lib /home/joris/miniconda3/envs/arrow-dev/lib/libpython3.7m.so
>     CMake Error at cmake_modules/FindNumPy.cmake:62 (message):
>       NumPy import failure:
>       Traceback (most recent call last):
>         File "<string>", line 1, in <module>
>       ModuleNotFoundError: No module named 'numpy'
>     Call Stack (most recent call first):
>       CMakeLists.txt:186 (find_package)
>     -- Configuring incomplete, errors occurred!
>     See also "/home/joris/scipy/repos/arrow/python/build/temp.linux-x86_64-3.7/CMakeFiles/CMakeOutput.log".
>     See also "/home/joris/scipy/repos/arrow/python/build/temp.linux-x86_64-3.7/CMakeFiles/CMakeError.log".
>     error: command 'cmake' failed with exit status 1
> Cleaning up...
> {code}
>  
> Alternatively, doing {{python setup.py develop}} to achieve the same still works.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)