Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Deprecations about imports from collections #203

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

Closed
QuLogic opened this issue Aug 31, 2019 · 4 comments · Fixed by #243
Closed

Deprecations about imports from collections #203

QuLogic opened this issue Aug 31, 2019 · 4 comments · Fixed by #243

Comments

@QuLogic
Copy link

QuLogic commented Aug 31, 2019

The Mapping import causes a deprecation warning and will be removed in 3.9:

.../pydap/model.py:175
  .../pydap/model.py:175: 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 OrderedDict, Mapping

Also, Iterable:

.../pydap/responses/das.py:14
  .../pydap/responses/das.py:14: 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 Iterable
@tirkarthi
Copy link

I have created #210 to fix this. Thanks.

@theochit
Copy link

I'm getting this warning in my project using PyDAP, is there any chance to merge that PR?

@captainkirk99
Copy link
Collaborator

I believe this PR should be merged.

@tirkarthi
Copy link

The deprecations were removed in Python 3.10 where they will now raise ImportError.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment