Describe the bug, including details regarding any error messages, version, and platform.
We use a nightlies version of Cython for free-threaded PyArrow:
https://pypi.anaconda.org/scientific-python-nightly-wheels/simple/cython/3.3.0a0/cython-3.3.0a0-py3-none-any.whl
This is currently failing with:
[13/115] CompilingCythonCXXsourceforlib...
FAILED: CMakeFiles/lib_pyx/arrow/python/build/temp.linux-x86_64-cpython-313t/CMakeFiles/lib_pyxcd/arrow/python/build/temp.linux-x86_64-cpython-313t&&/opt/python/cp313-cp313t/bin/python-mcython--cplus--warning-errors--no-c-in-traceback-Xfreethreading_compatible=True--directiveembedsignature=True--working/arrow/python--output-file/arrow/python/build/temp.linux-x86_64-cpython-313t/lib.cpp/arrow/python/pyarrow/lib.pyxErrorcompilingCythonfile:
------------------------------------------------------------
...
options.field_merge_options=_parse_field_merge_options(
"default"ifpromote_options=="none"elsepromote_options
)
withnogil:
options.unify_schemas=promote_options!="none"^------------------------------------------------------------pyarrow/table.pxi:6320:48: CoercionfromPythonnotallowedwithouttheGILErrorcompilingCythonfile:
------------------------------------------------------------
...
options.field_merge_options=_parse_field_merge_options(
"default"ifpromote_options=="none"elsepromote_options
)
withnogil:
options.unify_schemas=promote_options!="none"^------------------------------------------------------------pyarrow/table.pxi:6320:48: Operationnotallowedwithoutgil
Taking a look at latest Cython commits the following could be related:
cython/cython@46e961e
I am unsure what the problem is and whether is a regression on Cython or we should fix the comparison to require the GIL.
This is happening both on main and the 23.0.1 maintenance branch so it has to be fixed for the release.
Component(s)
Packaging, Python
Describe the bug, including details regarding any error messages, version, and platform.
We use a nightlies version of Cython for free-threaded PyArrow:
This is currently failing with:
Taking a look at latest Cython commits the following could be related:
cython/cython@46e961e
I am unsure what the problem is and whether is a regression on Cython or we should fix the comparison to require the GIL.
This is happening both on main and the 23.0.1 maintenance branch so it has to be fixed for the release.
Component(s)
Packaging, Python