paulscherrerinstitute / pcaspy

Portable Channel Access Server in Python
BSD 3-Clause "New" or "Revised" License
33 stars 24 forks source link

PVInfo._compareNumeric raises AttributeError on Python 3.10 #76

Closed duncanmmacleod closed 2 years ago

duncanmmacleod commented 2 years ago

The PVInfo._compareNumeric private method raises an AttributeError on Python 3.10 as follows:

  File "$PREFIX/lib/python3.10/site-packages/pcaspy/driver.py", line 482, in _compareNumeric
    if isinstance(value, collections.Iterable):
AttributeError: module 'collections' has no attribute 'Iterable'

The Iterable object was moved to collections.abc.

xiaoqiangwang commented 2 years ago

Thanks for the fix. I will add Python 3.10 to the CI.