Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Importing ABC directly from collections has been deprecated and will be removed in Python 3.10 #3

Open
tirkarthi opened this issue Sep 26, 2020 · 0 comments

Comments

@tirkarthi
Copy link
Contributor

Use collections.abc for ABC import.

odin/backend/__init__.py:6
  /root/checked_repos/odin-ai/odin/backend/__init__.py:6: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
    from collections import Mapping

odin/utils/__init__.py:21
odin/utils/__init__.py:21
  /root/checked_repos/odin-ai/odin/utils/__init__.py:21: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
    from collections import Iterable, Iterator, Mapping, OrderedDict, deque

odin/utils/crypto.py:9
  /root/checked_repos/odin-ai/odin/utils/crypto.py:9: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
    from collections import Sequence

$ rg -t py 'time.clock|encodestring|decodestring|celementtree|collections.*(Awaitable|Coroutine|AsyncIterable|AsyncIterator|AsyncGenerator|Hashable|Iterable|Iterator|Generator|Reversible|Sized|Container|Callable|Set|MutableSet|Mapping|MutableMapping|MappingView|KeysView|ItemsView|ValuesView|Sequence|MutableSequence|ByteString)|asyncio.?coroutine|isAlive|readfp'
odin/stats.py
6:from collections import Iterator, Mapping, OrderedDict, defaultdict

odin/fuel/dataset.py
6:from collections import Mapping, OrderedDict

odin/fuel/databases.py
13:from collections import OrderedDict, Iterator, defaultdict, MutableMapping, Mapping

odin/preprocessing/processor.py
17:from collections import Mapping, defaultdict

odin/preprocessing/text.py
14:from collections import OrderedDict, Iterator, Iterable, defaultdict, Mapping

odin/preprocessing/speech.py
46:from collections import Mapping, OrderedDict, defaultdict

odin/preprocessing/_opensmile.py
17:from collections import Mapping

odin/preprocessing/base.py
7:from collections import Mapping
179:   - If the return is instance of `collections.Mapping`, the new features

odin/networks/util_layers.py
4:from collections import Iterable

odin/networks/base_networks.py
779:    if not isinstance(self.units, collections.Iterable):

odin/visual/bashplot.py
15:from collections import Mapping

odin/visual/figures.py
16:from collections import Mapping, OrderedDict, defaultdict

odin/utils/python_utils.py
14:from collections import (Iterable, Iterator, Mapping, OrderedDict, defaultdict,

odin/utils/decorators.py
16:from collections import MutableMapping, Mapping

odin/utils/__init__.py
21:from collections import Iterable, Iterator, Mapping, OrderedDict, deque

odin/utils/crypto.py
9:from collections import Sequence

odin/backend/__init__.py
6:from collections import Mapping

odin/ml/gmm_tmat.py
13:from collections import Mapping, OrderedDict, defaultdict

odin/bay/distributions/conditional.py
59:    slices = (tuple(slices) if isinstance(slices, collections.Sequence) else

odin/bay/vi/autoencoder/factor_vae.py
56:    if isinstance(v, collections.Sequence):

odin/bay/random_variable.py
6:from collections import MutableSequence, Sequence
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant