Wes McKinney created ARROW-8684:
-----------------------------------

             Summary: [Packaging][Python] "SystemError: Bad call flags in 
_PyMethodDef_RawFastCallDict" in Python 3.7.7 on macOS when using pyarrow wheel
                 Key: ARROW-8684
                 URL: https://issues.apache.org/jira/browse/ARROW-8684
             Project: Apache Arrow
          Issue Type: Bug
          Components: Python
            Reporter: Wes McKinney
             Fix For: 1.0.0


[~npr] reported this on the 0.17.0 RC0 vote thread but I have confirmed it 
independently. It was also reported at

https://github.com/apache/arrow/issues/7082

Here are steps to reproduce on macOS:

{code}
conda create -yn py-3.7-defaults python=3.7 -c defaults
conda activate py-3.7-defaults
pip install pyarrow
{code}

Now open the Python interpreter, run {{import pyarrow}}, then exit the 
interpreter ({{python -c "import pyarrow"}} didn't trigger it for me):

{code}
$ python
Python 3.7.7 (default, Mar 26 2020, 10:32:53) 
[Clang 4.0.1 (tags/RELEASE_401/final)] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyarrow
>>> 
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "pyarrow/types.pxi", line 2638, in 
pyarrow.lib._unregister_py_extension_types
SystemError: Bad call flags in _PyMethodDef_RawFastCallDict. METH_OLDARGS is no 
longer supported!
Segmentation fault: 11
{code}

It fails with Python 3.7.6 when using {{-c conda-forge}} also, so it is not 
particular to defaults.

Frustratingly, the problem doesn't exist in Python 3.7.4 but occurs for me with 
3.7.5, 3.7.6, and 3.7.7. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to