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.

DeprecationWarning importing from collections instead of from collections.abc

See original GitHub issue

On Archlinux, I did the following:

pacman -S extra/python-pip
pip install O365

Then I ran the example a tweak a bit with basic and message_all scopes.

from O365 import Account
credentials = ('client_id', 'client_secret')
account = Account(credentials)

if account.authenticate(scopes=['basic', 'message_all']):
   print('Authenticated!')

m = account.new_message()
m.to.add('to_example@example.com')
m.subject = 'Testing!'
m.body = "George Best quote: I've stopped drinking, but only while I'm asleep."
m.send()

It sent the message successfully after supplying the authenticated url.

BUT it did give the following error/warning output:

Authentication Flow Completed. 
Oauth Access Token Stored. You can now use the API.
Authenticated!
/usr/lib/python3.8/site-packages/html5lib/_trie/_base.py:3: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.9 it will stop working from collections import Mapping

Thank you for listening.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
omac777commented, Apr 30, 2020

I’m just dropping by to say the python-o365 package has been very useful. Thank you for maintaining it. There is a great deal of complexity within office365 and your python package succeeds in simplifying it to an extent that mere mortals can use it within minutes. The python-o365 team are masters of python, office 365, and software design.

1reaction
janscascommented, Apr 30, 2020

Closing this as it’s not related to this library

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to use collections.abc from both Python 3.8+ and Python ...
Place this at the top of the script: import collections try: collectionsAbc = collections.abc except AttributeError: collectionsAbc = ...
Read more >
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 >
Issue #50032: Using or importing the ABCs from 'collections ...
Issue #50032: Using or importing the ABCs from 'collections' instead of from 'collections. abc' is deprecated in Python 3.7 - 389-ds-base - Pagure.io....
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 >
Fix a deprecation warning of 'collections' · 0617cebcc9 - nova
DeprecationWarning : Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.9 it will...
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