You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Antoine Pitrou (JIRA)" <ji...@apache.org> on 2019/04/23 09:32:00 UTC

[jira] [Commented] (ARROW-5201) [Python] Import ABCs from collections is deprecated in Python 3.7

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

Antoine Pitrou commented on ARROW-5201:
---------------------------------------

That's right. Do you want to submit a PR?

> [Python] Import ABCs from collections is deprecated in Python 3.7
> -----------------------------------------------------------------
>
>                 Key: ARROW-5201
>                 URL: https://issues.apache.org/jira/browse/ARROW-5201
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Python
>            Reporter: Joris Van den Bossche
>            Priority: Major
>
> From running the tests, I see a few deprecation warnings related to that on Python 3, abstract base classes should be imported from `collections.abc` instead of `collections`:
> {code:none}
> pyarrow/tests/test_array.py:808
>   /home/joris/scipy/repos/arrow/python/pyarrow/tests/test_array.py:808: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
>     pa.struct([pa.field('a', pa.int64()), pa.field('b', pa.string())]))
> pyarrow/tests/test_table.py:18
>   /home/joris/scipy/repos/arrow/python/pyarrow/tests/test_table.py:18: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
>     from collections import OrderedDict, Iterable
> pyarrow/tests/test_feather.py::TestFeatherReader::test_non_string_columns
>   /home/joris/scipy/repos/arrow/python/pyarrow/pandas_compat.py:294: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
>     elif isinstance(name, collections.Sequence):{code}
> Those could be imported depending on python 2/3 in the ``pyarrow.compat`` module.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)