python-OBD icon indicating copy to clipboard operation
python-OBD copied to clipboard

Some classes in the collections library are deprecated

Open ortunoa opened this issue 2 years ago • 2 comments

Obd uses MutableMapping and Mapping, which are in util.py and chainmap.py

"from collections import Mapping" needs to be changed to "from collections.abc import Mapping" on util.py "from collections import MutableMapping" needs to be changed to "from collections.abc import MutableMapping" on chainmap.py

ortunoa avatar Feb 15 '23 01:02 ortunoa

How did you install the package? There's a discrepancy between what's in the repo and what's in pypi (pip). For me, the pint issues were revolved via: python3 -m pip install git+https://github.com/brendan-w/python-OBD#egg=obd instead of the suggested python3 -m pip install obd. See #252 for more.

Not sure what the state of the project is now, but some docs updates & a new package release would be sweet.

lamemakes avatar May 18 '23 04:05 lamemakes

How did you install the package? There's a discrepancy between what's in the repo and what's in pypi (pip). For me, the pint issues were revolved via: python3 -m pip install git+https://github.com/brendan-w/python-OBD#egg=obd instead of the suggested python3 -m pip install obd. See #252 for more.

Not sure what the state of the project is now, but some docs updates & a new package release would be sweet.

in trying this, importing OBD failed due to the pint requirement. Detailed it in #252

CaptainKatsuura avatar May 30 '23 19:05 CaptainKatsuura