You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Frederik (Jira)" <ji...@apache.org> on 2020/05/04 09:16:00 UTC

[jira] [Commented] (ARROW-8684) [Python] "SystemError: Bad call flags in _PyMethodDef_RawFastCallDict" in Python 3.7.7 on macOS when using pyarrow wheel

    [ https://issues.apache.org/jira/browse/ARROW-8684?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17098798#comment-17098798 ] 

Frederik commented on ARROW-8684:
---------------------------------

As requested here is some information about my environment. Running MacOS Catalina 10.15.3. Running python version 3.7.7 compiled with pyenv.

 

This is reproducible for me in a virtual environment, let me know if I can dump more debugging information for you.

 {{>>> import pyarrow}}
{{>>>}}
{{KeyboardInterrupt}}
{{>>>}}
{{KeyboardInterrupt}}
{{>>> exit}}
{{Use exit() or Ctrl-D (i.e. EOF) to exit}}
{{>>> exit()}}
{{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!}}
{{[1] 92131 segmentation fault python}}

> [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
>            Priority: Blocker
>             Fix For: 1.0.0, 0.17.1
>
>
> [~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)