You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On my computer with python 3.10.4 with dnsdb 0.2.5
> from dnsdb import Dnsdb
File ~/env/default3/lib/python3.10/site-packages/diskcache/persistent.py:8, in <module>
5 import operator as op
6 import sys
----> 8 from collections import MutableMapping, OrderedDict, Sequence
9 from collections import KeysView, ValuesView, ItemsView
10 from itertools import islice
ImportError: cannot import name 'MutableMapping' from 'collections' (/usr/lib/python3.10/collections/__init__.py)
On python > 3.8, you need to import MutableMapping fromcollections.abc (ref). This code should solve the issue :
import sys
if sys.version_info[:2] >= (3, 8):
from collections.abc import MutableMapping
else:
from collections import MutableMapping
The text was updated successfully, but these errors were encountered:
My bad, I realize it is actually an issue with diskcache, dnsdb 0.2.5 requires diskcache<4.0,>=3.1, but you have diskcache 5.4.0 which is incompatible.. So upgrading diskcache should solve the issue (but may create other problems with changes in the API)
On my computer with python 3.10.4 with dnsdb 0.2.5
On python > 3.8, you need to import MutableMapping from
collections.abc
(ref). This code should solve the issue :The text was updated successfully, but these errors were encountered: