Problem with loading libs
dwarg opened this issue · 0 comments
dwarg commented
I have a problem with the obd library. Anyone know how to fix it?
`Traceback (most recent call last):
File "D:\Projects\iDrive\env\lib\site-packages\pint\compat\__init__.py", line 64, in <module>
from collections import Chainmap
ImportError: cannot import name 'Chainmap' from 'collections' (C:\Users\dwarg\AppData\Local\Programs\Python\Python310\lib\collections\__init__.py)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Projects\iDrive\ob.py", line 1, in <module>
import obd
File "D:\Projects\iDrive\env\lib\site-packages\obd\__init__.py", line 41, in <module>
from .obd import OBD
File "D:\Projects\iDrive\env\lib\site-packages\obd\obd.py", line 38, in <module>
from .commands import commands
File "D:\Projects\iDrive\env\lib\site-packages\obd\commands.py", line 36, in <module>
from .decoders import *
File "D:\Projects\iDrive\env\lib\site-packages\obd\decoders.py", line 38, in <module>
from .UnitsAndScaling import Unit, UAS_IDS
File "D:\Projects\iDrive\env\lib\site-packages\obd\UnitsAndScaling.py", line 33, in <module>
import pint
File "D:\Projects\iDrive\env\lib\site-packages\pint\__init__.py", line 19, in <module>
from .unit import (UnitRegistry, LazyRegistry)
File "D:\Projects\iDrive\env\lib\site-packages\pint\unit.py", line 27, in <module>
from . import registry_helpers
File "D:\Projects\iDrive\env\lib\site-packages\pint\registry_helpers.py", line 14, in <module>
from .compat import string_types, zip_longest
File "D:\Projects\iDrive\env\lib\site-packages\pint\compat\__init__.py", line 66, in <module>
from .chainmap import ChainMap
File "D:\Projects\iDrive\env\lib\site-packages\pint\compat\chainmap.py", line 16, in <module>
from collections import MutableMapping
ImportError: cannot import name 'MutableMapping' from 'collections' (C:\Users\dwarg\AppData\Local\Programs\Python\Python310\lib\collections\__init__.py)`