I am attempting to classify an image with a trained deep learning model that appeared to successfully work before. I enter the following as the first line in the Notebook:
from arcgis.learn import prepare_data, UnetClassifier
Instead of the next cell opening, I get this message:
ImportError Traceback (most recent call last)
In [4]:
Line 1: from arcgis.learn import prepare_data, UnetClassifier
File C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\__init__.py, in <module>:
Line 4: from . import features, geoanalytics, geocoding, geometry
File C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\features\__init__.py, in <module>:
Line 26: from .feature import Feature, FeatureSet, FeatureCollection
File C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\features\feature.py, in <module>:
Line 25: from arcgis.gis import Layer
File C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\__init__.py, in <module>:
Line 34: from cachetools import cached, TTLCache
ImportError: cannot import name 'cached' from 'cachetools' (unknown location)
I cannot find any information on this Import Error (I am not proficient in Python) - what is missing, or how to fix it. Can anyone help?
I am working in ArcGIS Pro 2.9.2 and have installed the Deep Learning Libraries for 2.9
Thanks