pitrou opened a new issue, #46611:
URL: https://github.com/apache/arrow/issues/46611

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   ```python
   >>> a = pa.array([1.2, 3.5, None], type=pa.float16())
   Erreur de segmentation (core dumped)
   ```
   
   C++ traceback:
   ```
   #0  0x00007d05bdb07f52 in arrow::py::PyFloat_AsHalf(_object*, unsigned 
short*) ()
      from 
/home/antoine/t/venv-3.12/lib/python3.12/site-packages/pyarrow/libarrow_python.so.2000
   #1  0x00007d05bdb67862 in arrow::py::(anonymous 
namespace)::PyPrimitiveConverter<arrow::HalfFloatType, void>::Append(_object*) 
()
      from 
/home/antoine/t/venv-3.12/lib/python3.12/site-packages/pyarrow/libarrow_python.so.2000
   #2  0x00007d05bdb57741 in arrow::Status 
arrow::py::internal::VisitSequenceGeneric<arrow::py::internal::VisitSequence<arrow::py::(anonymous
 namespace)::PyConverter::Extend(_object*, long, long)::{lambda(_object*, 
bool*)#1}>(_object*, long, arrow::py::(anonymous 
namespace)::PyConverter::Extend(_object*, long, long)::{lambda(_object*, 
bool*)#1}&&)::{lambda(_object*, long, bool*)#1}>(_object*, long, 
arrow::py::(anonymous namespace)::PyConverter::Extend(_object*, long, 
long)::{lambda(_object*, bool*)#1}&&) () from 
/home/antoine/t/venv-3.12/lib/python3.12/site-packages/pyarrow/libarrow_python.so.2000
   #3  0x00007d05bdb5d8f6 in arrow::py::(anonymous 
namespace)::PyConverter::Extend(_object*, long, long) ()
      from 
/home/antoine/t/venv-3.12/lib/python3.12/site-packages/pyarrow/libarrow_python.so.2000
   #4  0x00007d05bdb6eedf in arrow::py::ConvertPySequence(_object*, _object*, 
arrow::py::PyConversionOptions, arrow::MemoryPool*) ()
      from 
/home/antoine/t/venv-3.12/lib/python3.12/site-packages/pyarrow/libarrow_python.so.2000
   #5  0x00007d05bde9e330 in __pyx_f_7pyarrow_3lib__sequence_to_array(_object*, 
_object*, _object*, __pyx_obj_7pyarrow_3lib_DataType*, arrow::MemoryPool*, 
bool) ()
      from 
/home/antoine/t/venv-3.12/lib/python3.12/site-packages/pyarrow/lib.cpython-312-x86_64-linux-gnu.so
   #6  0x00007d05bdea253c in __pyx_pf_7pyarrow_3lib_196array(_object*, 
_object*, _object*, _object*, _object*, _object*, int, 
__pyx_obj_7pyarrow_3lib_MemoryPool*) [clone .constprop.0] () from 
/home/antoine/t/venv-3.12/lib/python3.12/site-packages/pyarrow/lib.cpython-312-x86_64-linux-gnu.so
   #7  0x00007d05bdeaaff6 in __pyx_pw_7pyarrow_3lib_197array(_object*, _object* 
const*, long, _object*) ()
      from 
/home/antoine/t/venv-3.12/lib/python3.12/site-packages/pyarrow/lib.cpython-312-x86_64-linux-gnu.so
   
   (etc.)
   ```
   
   We should ensure that we are able to convert half-floats even without NumPy 
installed.
   
   ### Component(s)
   
   Python


-- 
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: issues-unsubscr...@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to