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<long int>’ 
and ‘std::optional<std::variant<long int, double> >’)
         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<class _Up> 
std::enable_if_t<((bool)__and_v<std::__not_<std::is_same<std::optional<_Tp>, 
typename std::remove_cv<typename std::remove_reference<_Up>::type>::type> >, 
std::__not_<std::__and_<std::is_scalar<_Tp>, 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,
                          from 
/home/rbertoglio/.conda/envs/diffusers/include/python3.10/Python.h:50,
                          from 
/tmp/pip-install-gnaq2pi1/pyarrow_424c3f5f12564a8fac35324d3616f1ed/build/temp.linux-x86_64-cpython-310/lib.cpp:19:
         /opt/core/gcc-14.2.0/include/c++/14.2.0/type_traits: In substitution 
of ‘template<bool _Cond, class _Tp> using std::enable_if_t = typename 
std::enable_if::type [with bool _Cond = false; _Tp = std::optional<long int>&]’:
         /opt/core/gcc-14.2.0/include/c++/14.2.0/optional:844:2:   required by 
substitution of ‘template<class _Up> 
std::enable_if_t<((bool)__and_v<std::__not_<std::is_same<std::optional<long 
int>, typename std::remove_cv<typename std::remove_reference<_Tp>::type>::type> 
>, std::__not_<std::__and_<std::is_scalar<long int>, std::is_same<long int, 
typename std::decay<_Tp>::type> > >, std::is_constructible<long int, _U1>, 
std::is_assignable<long int&, _U1> >), std::optional<long int>&> 
std::optional<long int>::operator=(_Up&&) [with _Up = 
std::optional<std::variant<long int, double> >&]’
         
/tmp/pip-install-gnaq2pi1/pyarrow_424c3f5f12564a8fac35324d3616f1ed/build/temp.linux-x86_64-cpython-310/lib.cpp:113791:54:
   required from here
         113791 |       __pyx_t_1 = 
__pyx_v_self->sp_statistics.get()->null_count;
                |                                                      
^~~~~~~~~~
         /opt/core/gcc-14.2.0/include/c++/14.2.0/type_traits:2696:11: error: no 
type named ‘type’ in ‘struct std::enable_if<false, std::optional<long int>&>’
          2696 |     using enable_if_t = typename enable_if<_Cond, _Tp>::type;
               |           ^~~~~~~~~~~
         /opt/core/gcc-14.2.0/include/c++/14.2.0/optional:864:9: note: 
candidate: ‘template<class _Up> 
std::enable_if_t<((bool)__and_v<std::__not_<std::is_same<_T1, _U1> >, 
std::is_constructible<_T1, const _U1&>, std::is_assignable<_T1&, const _U1&>, 
std::__not_<std::__or_<std::is_constructible<_Tp, const std::optional<_Up>&>, 
std::is_constructible<_Tp, std::optional<_Up>&>, std::is_constructible<_Tp, 
const std::optional<_Up>&&>, std::is_constructible<_Tp, std::optional<_Up>&&>, 
std::is_convertible<const std::optional<_Up>&, _Tp>, 
std::is_convertible<std::optional<_Up>&, _Tp>, std::is_convertible<const 
std::optional<_Up>&&, _Tp>, std::is_convertible<std::optional<_Up>&&, _Tp> > >, 
std::__not_<std::__or_<std::is_assignable<_Tp&, const std::optional<_Up>&>, 
std::is_assignable<_Tp&, std::optional<_Up>&>, std::is_assignable<_Tp&, const 
std::optional<_Up>&&>, std::is_assignable<_Tp&, std::optional<_Up>&&> > > >), 
std::optional<_Tp>&> std::optional<_Tp>::operator=(const std::optional<_Up
 >&) [with _Tp = long int]’
           864 |         operator=(const optional<_Up>& __u)
               |         ^~~~~~~~
         /opt/core/gcc-14.2.0/include/c++/14.2.0/optional:864:9: note:   
template argument deduction/substitution failed:
         /opt/core/gcc-14.2.0/include/c++/14.2.0/optional:890:9: note: 
candidate: ‘template<class _Up> 
std::enable_if_t<((bool)__and_v<std::__not_<std::is_same<_T1, _U1> >, 
std::is_constructible<_T1, _U1>, std::is_assignable<_T1&, _U1>, 
std::__not_<std::__or_<std::is_constructible<_Tp, const std::optional<_Up>&>, 
std::is_constructible<_Tp, std::optional<_Up>&>, std::is_constructible<_Tp, 
const std::optional<_Up>&&>, std::is_constructible<_Tp, std::optional<_Up>&&>, 
std::is_convertible<const std::optional<_Up>&, _Tp>, 
std::is_convertible<std::optional<_Up>&, _Tp>, std::is_convertible<const 
std::optional<_Up>&&, _Tp>, std::is_convertible<std::optional<_Up>&&, _Tp> > >, 
std::__not_<std::__or_<std::is_assignable<_Tp&, const std::optional<_Up>&>, 
std::is_assignable<_Tp&, std::optional<_Up>&>, std::is_assignable<_Tp&, const 
std::optional<_Up>&&>, std::is_assignable<_Tp&, std::optional<_Up>&&> > > >), 
std::optional<_Tp>&> std::optional<_Tp>::operator=(std::optional<_Up>&&) [with 
_Tp = lon
 g int]’
           890 |         operator=(optional<_Up>&& __u)
               |         ^~~~~~~~
         /opt/core/gcc-14.2.0/include/c++/14.2.0/optional:890:9: note:   
template argument deduction/substitution failed:
         /opt/core/gcc-14.2.0/include/c++/14.2.0/optional:830:7: note: 
candidate: ‘std::optional<_Tp>& std::optional<_Tp>::operator=(std::nullopt_t) 
[with _Tp = long int]’
           830 |       operator=(nullopt_t) noexcept
               |       ^~~~~~~~
         /opt/core/gcc-14.2.0/include/c++/14.2.0/optional:830:17: note:   no 
known conversion for argument 1 from ‘std::optional<std::variant<long int, 
double> >’ to ‘std::nullopt_t’
           830 |       operator=(nullopt_t) noexcept
               |                 ^~~~~~~~~
         /opt/core/gcc-14.2.0/include/c++/14.2.0/optional:703:11: note: 
candidate: ‘constexpr std::optional<long int>& std::optional<long 
int>::operator=(const std::optional<long int>&)’
           703 |     class optional
               |           ^~~~~~~~
         /opt/core/gcc-14.2.0/include/c++/14.2.0/optional:703:11: note:   no 
known conversion for argument 1 from ‘std::optional<std::variant<long int, 
double> >’ to ‘const std::optional<long int>&’
         /opt/core/gcc-14.2.0/include/c++/14.2.0/optional:703:11: note: 
candidate: ‘constexpr std::optional<long int>& std::optional<long 
int>::operator=(std::optional<long int>&&)’
         /opt/core/gcc-14.2.0/include/c++/14.2.0/optional:703:11: note:   no 
known conversion for argument 1 from ‘std::optional<std::variant<long int, 
double> >’ to ‘std::optional<long int>&&’
         gmake[2]: *** [CMakeFiles/lib.dir/lib.cpp.o] Error 1
         gmake[1]: *** [CMakeFiles/lib.dir/all] Error 2
         gmake: *** [all] Error 2
         error: command '/opt/core/cmake-3.31.6/bin/cmake' failed with exit 
code 2
         [end of output]
     
     note: This error originates from a subprocess, and is likely not a problem 
with pip.
     ERROR: Failed building wheel for pyarrow
   Failed to build pyarrow
   error: failed-wheel-build-for-install
   
   × Failed to build installable wheels for some pyproject.toml based projects
   ╰─> pyarrow
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to