Re: [I] [Python] CMake not finding configuration for Arrow in 22.0.0 [arrow]

2025-11-25 Thread via GitHub


ricber commented on issue #48197:
URL: https://github.com/apache/arrow/issues/48197#issuecomment-3574690578

   Ah yes! I always forgot to use the latest release! Now everything is working 
fine, I could successfully install pyarrow 🎉  Thank you for your help!


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



Re: [I] [Python] CMake not finding configuration for Arrow in 22.0.0 [arrow]

2025-11-24 Thread via GitHub


kou commented on issue #48197:
URL: https://github.com/apache/arrow/issues/48197#issuecomment-3573602901

   How did you install Apache Arrow C++?
   It seems that you used main not 22.0.0.


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



Re: [I] [Python] CMake not finding configuration for Arrow in 22.0.0 [arrow]

2025-11-24 Thread via GitHub


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

Re: [I] [Python] CMake not finding configuration for Arrow in 22.0.0 [arrow]

2025-11-22 Thread via GitHub


kou commented on issue #48197:
URL: https://github.com/apache/arrow/issues/48197#issuecomment-3566134381

   Could you install `arrow-devel` before `pip install pyarrow`?
   See also: https://arrow.apache.org/install/
   
   Or could you upgrade to not EOL-ed OS?


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