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

DeprecationWarning importing from collections instead of from collections.abc #414

Closed
omac777 opened this issue Mar 26, 2020 · 5 comments
Closed

Comments

@omac777
Copy link

omac777 commented Mar 26, 2020

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.

@alejcas
Copy link
Member

alejcas commented Mar 27, 2020

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

This warning is not from O365 it comes from htm5lib

@tirkarthi
Copy link

The html5lib issue is fixed in master but needs a release . See html5lib/html5lib-python#419

@alejcas
Copy link
Member

alejcas commented Apr 30, 2020

Closing this as it's not related to this library

@alejcas alejcas closed this as completed Apr 30, 2020
@omac777
Copy link
Author

omac777 commented 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.

@alejcas
Copy link
Member

alejcas commented Apr 30, 2020

Thank you! Your comment is greatly appreciated

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

3 participants