Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-5210

[Python] editable install (pip install -e .) is failing

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Python
    • Labels:
      None

      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:

       
          -- 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...
      

       

      Alternatively, doing python setup.py develop to achieve the same still works.

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jorisvandenbossche Joris Van den Bossche
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: