question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Warning: Using or importing ABCs from collections is deprecated

See original GitHub issue

I recently encountered the following warning while running python-docx:

section.py:7: 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 Sequence

I noticed that other third-party packages have encountered this same issue and resolved it. See https://github.com/marshmallow-code/marshmallow/issues/1027 for example.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
scannycommented, Aug 16, 2019

Hmm, quite right, apologies for that. I’ll get that fixed up this weekend and drop a new release.

3reactions
scannycommented, Feb 20, 2019

Ah, right, I’ve seen this before elsewhere. Thanks for reporting this. I’ll get this fixed up for the next release.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using or importing the ABCs from 'collections' instead ... - GitHub
DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working #1401.
Read more >
How to use collections.abc from both Python 3.8+ and Python ...
abc ' is deprecated, and in 3.8 it will stop working elif isinstance(value, (collections.MutableMapping, collections.MutableSequence)) == True:.
Read more >
Issue #50032: Using or importing the ABCs from 'collections ...
#50032 Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated in Python 3.7 ... Deprecation warning is issued.
Read more >
Bug #1936667 “Using or importing the ABCs from 'collections ...
Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3 ; OpenStack Object Storage (swift).
Read more >
Using or importing the ABCs from 'collections' instead of from ...
Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working. Closed, ResolvedPublic.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found