Skip to content

Failed to build pyarrow on python 3.8 #5987

@blcksrx

Description

@blcksrx

Failed to build pyarrow on python3.8. Here is the installation error:

running build_ext
  creating build/temp.linux-x86_64-3.8
  -- Running cmake for pyarrow
  cmake -DPYTHON_EXECUTABLE=/home/blcksrx/Projects/incubator-superset/venv/bin/python3  -DPYARROW_BOOST_USE_SHARED=on -DCMAKE_BUILD_TYPE=release /tmp/pip-install-qfyq6u3d/pyarrow
  -- The C compiler identification is GNU 9.2.0
  -- The CXX compiler identification is GNU 9.2.0
  -- Check for working C compiler: /usr/bin/cc
  -- Check for working C compiler: /usr/bin/cc -- works
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Detecting C compile features
  -- Detecting C compile features - done
  -- Check for working CXX compiler: /usr/bin/c++
  -- Check for working CXX compiler: /usr/bin/c++ -- works
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  -- Detecting CXX compile features
  -- Detecting CXX compile features - done
  -- Compiler command: env LANG=C /usr/bin/c++ -v
  -- Compiler version: Using built-in specs.
  COLLECT_GCC=/usr/bin/c++
  COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/lto-wrapper
  Target: x86_64-pc-linux-gnu
  Configured with: /build/gcc/src/gcc/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++,d --enable-shared --enable-threads=posix --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --enable-gnu-indirect-function --enable-multilib --disable-werror --enable-checking=release --enable-default-pie --enable-default-ssp --enable-cet=auto gdc_include_dir=/usr/include/dlang/gdc
  Thread model: posix
  gcc version 9.2.0 (GCC)
  
  -- Compiler id: GNU
  Selected compiler gcc 9.2.0
  -- Performing Test CXX_SUPPORTS_SSE4_2
  -- Performing Test CXX_SUPPORTS_SSE4_2 - Success
  -- Performing Test CXX_SUPPORTS_ALTIVEC
  -- Performing Test CXX_SUPPORTS_ALTIVEC - Failed
  -- Performing Test CXX_SUPPORTS_ARMCRC
  -- Performing Test CXX_SUPPORTS_ARMCRC - Failed
  -- Performing Test CXX_SUPPORTS_ARMV8_CRC_CRYPTO
  -- Performing Test CXX_SUPPORTS_ARMV8_CRC_CRYPTO - Failed
  -- Arrow build warning level: PRODUCTION
  Using ld linker
  Configured for RELEASE build (set with cmake -DCMAKE_BUILD_TYPE={release,debug,...})
  -- Build Type: RELEASE
  -- Build output directory: /tmp/pip-install-qfyq6u3d/pyarrow/build/temp.linux-x86_64-3.8/release
  -- Found PythonInterp: /home/blcksrx/Projects/incubator-superset/venv/bin/python3 (found version "3.8")
  -- Searching for Python libs in /home/blcksrx/Projects/incubator-superset/venv/lib64;/home/blcksrx/Projects/incubator-superset/venv/lib;/usr/lib/python3.8/config-3.8-x86_64-linux-gnu
  -- Looking for python3.8
  -- Found Python lib /usr/lib/python3.8/config-3.8-x86_64-linux-gnu/libpython3.8.a
  -- Found PythonLibs: /usr/lib/python3.8/config-3.8-x86_64-linux-gnu/libpython3.8.a
  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:189 (find_package)
  
  
  -- Configuring incomplete, errors occurred!
  See also "/tmp/pip-install-qfyq6u3d/pyarrow/build/temp.linux-x86_64-3.8/CMakeFiles/CMakeOutput.log".
  See also "/tmp/pip-install-qfyq6u3d/pyarrow/build/temp.linux-x86_64-3.8/CMakeFiles/CMakeError.log".
  error: command 'cmake' failed with exit status 1

This error happens while I have been installed numpy

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions