ImportError with Python 3.10
As noted in https://github.com/BCDA-APS/apstools/pull/620#issuecomment-1014746302, the ImportError: cannot import name 'Iterable' from 'collections' error happens with Py3.10:
conda create -n py310 python=3.10
conda env update -f environment.yml -n py310
conda activate py310
python
import databroker
Expected Behavior
No exception should be raised due to import databroker.
Current Behavior
see the comment referenced above
Possible Solution
Could this be a problem upstream with the intake package?
Steps to Reproduce (for bugs)
see the comment referenced above
Context
Unit tests of apstools fail when using Python 3.10
Your Environment
Linux
This was fixed in pims in https://github.com/soft-matter/pims/pull/383 but I do not think we have done a release over there in a while.
Might be a good idea. Warnings such as this one have been raised by pims for some time:
2022-01-17T20:51:37.1162836Z /opt/conda/conda-bld/apstools_1642452057613/_test_env_placehold_..._placehold/lib/python3.9/site-packages/pims/image_reader.py:26: RuntimeWarning: PIMS image_reader.py could not find scikit-image. Falling back to matplotlib's imread(), which uses floats instead of integers. This may break your scripts.
2022-01-17T20:51:37.1164164Z (To ignore this warning, include the line "warnings.simplefilter("ignore", RuntimeWarning)" in your script.)
2022-01-17T20:51:37.1164607Z warnings.warn(RuntimeWarning(ski_preferred))
Not sure how to control that in apstools other than heed the directiions of ignore this warning (apstools does not call pims directly).