[ 
https://issues.apache.org/jira/browse/ARROW-15541?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joris Van den Bossche reassigned ARROW-15541:
---------------------------------------------

    Assignee: Joris Van den Bossche

> [Python] Cannot build pyarrow with older version of cython
> ----------------------------------------------------------
>
>                 Key: ARROW-15541
>                 URL: https://issues.apache.org/jira/browse/ARROW-15541
>             Project: Apache Arrow
>          Issue Type: Bug
>            Reporter: Yue Sun
>            Assignee: Joris Van den Bossche
>            Priority: Major
>
> Hi There,
> I installed arrow/5.0.0 as the following.
> """
> git clone https://github.com/apache/arrow.git
> cd arrow
> git checkout apache-arrow-5.0.0
> export ARROW_HOME=/g/data/z00/yxs900/.local/environments/arrow
> mkdir cpp/build
> cd cpp/build
> cmake -DCMAKE_INSTALL_PREFIX=$ARROW_HOME \
>       -DCMAKE_INSTALL_LIBDIR=lib64 \
>       -DCMAKE_BUILD_TYPE=release \
>       -DPython3_EXECUTABLE=/apps/python3/3.7.4/bin/python3 \
>       -DARROW_PARQUET=ON \
>       -DARROW_PYTHON=ON \
>       -DARROW_CUDA=ON \
>       -DARROW_DATASET=ON \
>       -DARROW_BUILD_TESTS=OFF \
>       ..
>  
> make -j1 VERBOSE=1
> make install
> """
> The build is successful and installed properly. But when I try to install the 
> python wrapper as the following
> """
> cd ../../python
> export PYARROW_WITH_CUDA=1
> export PYARROW_WITH_DATASET=1
> export PYARROW_WITH_PARQUET=1
> export LD_LIBRARY_PATH=${ARROW_HOME}/lib64:${LD_LIBRARY_PATH}
> python3 setup.py build_ext --inplace
> """
> It stopped at the error message
> """
> Error compiling Cython file:
> ------------------------------------------------------------
> ...
>                                                           Writable):
>         pass
>  
>     cdef cppclass CInputStream" arrow::io::InputStream"(FileInterface,
>                                                         Readable):
>         CResult[shared_ptr[const CKeyValueMetadata]] ReadMetadata()
>                                 ^
> ------------------------------------------------------------
>  
> pyarrow/includes/libarrow.pxd:1199:33: Expected ']', found 'CKeyValueMetadata'
> """
> Did you see this error before? I am using cmake/3.21.4, cuda/11.0.3, 
> mccl/2.8.4, and python 3.7.4. The cython version is 0.29.14. 
> Let me know what else do you need for the diagnosis.
> Cheers,
> Yue



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to