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 12:32:00 UTC
[jira] [Updated] (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:all-tabpanel ]
Joris Van den Bossche updated ARROW-5210:
-----------------------------------------
Description:
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.
was:
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 does work.
> [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)