ricber commented on issue #48197:
URL: https://github.com/apache/arrow/issues/48197#issuecomment-3571827586
Hello, I have not admin privileges on this machine and cannot install any
package. I thus compiled pyarrow C++ manually. The compilation of pyarrow cpp
went good. However I am now retrying with "pip install --no-binary pyarrow
pyarrow" and I get this error
```
[ 1%] Built target lib_pyx
[ 3%] Generating pyarrow/src/arrow/python/lib_api.h,
pyarrow/src/arrow/python/lib.h
[ 3%] Built target cython_api_headers
[ 5%] Building CXX object
CMakeFiles/arrow_python.dir/pyarrow/src/arrow/python/arrow_to_pandas.cc.o
[ 7%] Building CXX object
CMakeFiles/arrow_python.dir/pyarrow/src/arrow/python/benchmark.cc.o
[ 9%] Building CXX object
CMakeFiles/arrow_python.dir/pyarrow/src/arrow/python/common.cc.o
[ 11%] Building CXX object
CMakeFiles/arrow_python.dir/pyarrow/src/arrow/python/config.cc.o
[ 13%] Building CXX object
CMakeFiles/arrow_python.dir/pyarrow/src/arrow/python/datetime.cc.o
[ 15%] Building CXX object
CMakeFiles/arrow_python.dir/pyarrow/src/arrow/python/decimal.cc.o
[ 17%] Building CXX object
CMakeFiles/arrow_python.dir/pyarrow/src/arrow/python/extension_type.cc.o
[ 19%] Building CXX object
CMakeFiles/arrow_python.dir/pyarrow/src/arrow/python/gdb.cc.o
[ 21%] Building CXX object
CMakeFiles/arrow_python.dir/pyarrow/src/arrow/python/helpers.cc.o
[ 23%] Building CXX object
CMakeFiles/arrow_python.dir/pyarrow/src/arrow/python/inference.cc.o
[ 25%] Building CXX object
CMakeFiles/arrow_python.dir/pyarrow/src/arrow/python/io.cc.o
[ 27%] Building CXX object
CMakeFiles/arrow_python.dir/pyarrow/src/arrow/python/ipc.cc.o
[ 29%] Building CXX object
CMakeFiles/arrow_python.dir/pyarrow/src/arrow/python/numpy_convert.cc.o
[ 31%] Building CXX object
CMakeFiles/arrow_python.dir/pyarrow/src/arrow/python/numpy_init.cc.o
[ 33%] Building CXX object
CMakeFiles/arrow_python.dir/pyarrow/src/arrow/python/numpy_to_arrow.cc.o
[ 35%] Building CXX object
CMakeFiles/arrow_python.dir/pyarrow/src/arrow/python/python_test.cc.o
[ 37%] Building CXX object
CMakeFiles/arrow_python.dir/pyarrow/src/arrow/python/python_to_arrow.cc.o
[ 39%] Building CXX object
CMakeFiles/arrow_python.dir/pyarrow/src/arrow/python/pyarrow.cc.o
[ 41%] Building CXX object
CMakeFiles/arrow_python.dir/pyarrow/src/arrow/python/udf.cc.o
[ 43%] Building CXX object
CMakeFiles/arrow_python.dir/pyarrow/src/arrow/python/util.cc.o
[ 45%] Building CXX object
CMakeFiles/arrow_python.dir/pyarrow/src/arrow/python/csv.cc.o
[ 47%] Building CXX object
CMakeFiles/arrow_python.dir/pyarrow/src/arrow/python/filesystem.cc.o
[ 49%] Linking CXX shared library release/libarrow_python.so
[ 49%] Built target arrow_python
[ 50%] Building CXX object CMakeFiles/lib.dir/lib.cpp.o
/tmp/pip-install-gnaq2pi1/pyarrow_424c3f5f12564a8fac35324d3616f1ed/build/temp.linux-x86_64-cpython-310/lib.cpp:
In function ‘PyObject*
__pyx_pf_7pyarrow_3lib_15ArrayStatistics_10null_count___get__(__pyx_obj_7pyarrow_3lib_ArrayStatistics*)’:
/tmp/pip-install-gnaq2pi1/pyarrow_424c3f5f12564a8fac35324d3616f1ed/build/temp.linux-x86_64-cpython-310/lib.cpp:113791:54:
error: no match for ‘operator=’ (operand types are ‘std::optional’
and ‘std::optional >’)
113791 | __pyx_t_1 =
__pyx_v_self->sp_statistics.get()->null_count;
|
^~
In file included from
/tmp/pip-install-gnaq2pi1/pyarrow_424c3f5f12564a8fac35324d3616f1ed/build/temp.linux-x86_64-cpython-310/lib.cpp:1195:
/opt/core/gcc-14.2.0/include/c++/14.2.0/optional:844:9: note:
candidate: ‘template
std::enable_if_t<((bool)__and_v,
typename std::remove_cv::type>::type> >,
std::__not_, std::is_same<_Tp, typename
std::decay<_Func>::type> > >, std::is_constructible<_T1, _U1>,
std::is_assignable<_T1&, _U1> >), std::optional<_Tp>&>
std::optional<_Tp>::operator=(_Up&&) [with _Tp = long int]’
844 | operator=(_Up&& __u)
| ^~~~
/opt/core/gcc-14.2.0/include/c++/14.2.0/optional:844:9: note:
template argument deduction/substitution failed:
In file included from
/opt/core/gcc-14.2.0/include/c++/14.2.0/bits/stl_pair.h:60,
from
/opt/core/gcc-14.2.0/include/c++/14.2.0/bits/stl_algobase.h:64,
from
/opt/core/gcc-14.2.0/include/c++/14.2.0/bits/specfun.h:43,
from
/opt/core/gcc-14.2.0/include/c++/14.2.0/cmath:3898,
from
/opt/core/gcc-14.2.0/include/c++/14.2.0/math.h:36,
from
/home/rbertoglio/.conda/envs/diffusers/include/python3.10/pyport.h:210,
fr