heapdict will break in Python 3.8
When importing distributed, Python 3.7 emits the following:
heapdict.py:11: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working class heapdict(collections.MutableMapping):
Looking at the project page, the last commit is from 2012 and no issues raised since 2014 have ever been replied to. It may be a good idea to just copy-paste the heapdict implementation into zict and remove the external dependency.
Thanks. Agreed that an upstream fix doesn't look likely.
I have talked with the author of heapdict, I think a new release is likely.
Good to know, thanks.
Python 3.8 is scheduled for October 21. We can do a zict release just before then if needed.
On Mon, Sep 9, 2019 at 6:43 AM Thomas A Caswell [email protected] wrote:
I have talked with the author of heapdict, I think a new release is likely.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/dask/zict/issues/26?email_source=notifications&email_token=AAKAOIQWS72S6GQBXWDA4NLQIYZGHA5CNFSM4IUZQQGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6HIBMI#issuecomment-529432753, or mute the thread https://github.com/notifications/unsubscribe-auth/AAKAOIX7TNX4M5XTKRL332DQIYZGHANCNFSM4IUZQQGA .
@DanielStutzbach just released a new version of heapdict. Probably should bump up the minimum version on zict?
Thanks @DanielStutzbach and @tacaswell!
I think we're probably OK here. I don't expect zict requiring heapdict >= 1.1 (possibly for python 3.8 only) to fix any problems in practice. If someone is installing zict on 3.8, they're probably getting the latest heapdict anyway.