DeprecationWarning importing from collections instead of from collections.abc
See original GitHub issueOn 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:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
Closing this as it’s not related to this library