<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ArcGIS Pro Notebook error in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcgis-pro-notebook-error/m-p/1153123#M64030</link>
    <description>&lt;P&gt;could be an install issue&lt;/P&gt;&lt;P&gt;C:\...Your_install_folder ...\bin\Python\envs\arcgispro-py3\Lib\site-packages\cachetools&lt;/P&gt;&lt;P&gt;try&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from cachetools import cache&lt;/LI-CODE&gt;&lt;P&gt;from your environment, it is installed with Pro 2.9&lt;/P&gt;&lt;P&gt;A related issue was noted previously&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/deep-learning-frameworks/issues/36" target="_blank"&gt;No module named 'cachetools' · Issue #36 · Esri/deep-learning-frameworks (github.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Mar 2022 22:31:04 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2022-03-11T22:31:04Z</dc:date>
    <item>
      <title>ArcGIS Pro Notebook error</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-pro-notebook-error/m-p/1153084#M64028</link>
      <description>&lt;P&gt;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:&amp;nbsp;&lt;/P&gt;&lt;P&gt;from arcgis.learn import prepare_data, UnetClassifier&lt;/P&gt;&lt;P&gt;Instead of the next cell opening, I get this message:&lt;/P&gt;&lt;P&gt;ImportError Traceback (most recent call last)&lt;BR /&gt;In [4]:&lt;BR /&gt;Line 1: from arcgis.learn import prepare_data, UnetClassifier&lt;/P&gt;&lt;P&gt;File C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\__init__.py, in &amp;lt;module&amp;gt;:&lt;BR /&gt;Line 4: from . import features, geoanalytics, geocoding, geometry&lt;/P&gt;&lt;P&gt;File C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\features\__init__.py, in &amp;lt;module&amp;gt;:&lt;BR /&gt;Line 26: from .feature import Feature, FeatureSet, FeatureCollection&lt;/P&gt;&lt;P&gt;File C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\features\feature.py, in &amp;lt;module&amp;gt;:&lt;BR /&gt;Line 25: from arcgis.gis import Layer&lt;/P&gt;&lt;P&gt;File C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\__init__.py, in &amp;lt;module&amp;gt;:&lt;BR /&gt;Line 34: from cachetools import cached, TTLCache&lt;/P&gt;&lt;P&gt;ImportError: cannot import name 'cached' from 'cachetools' (unknown location)&lt;/P&gt;&lt;P&gt;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?&lt;/P&gt;&lt;P&gt;I am working in ArcGIS Pro 2.9.2 and have installed the Deep Learning Libraries for 2.9&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 21:17:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-pro-notebook-error/m-p/1153084#M64028</guid>
      <dc:creator>MartyRyan</dc:creator>
      <dc:date>2022-03-11T21:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro Notebook error</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-pro-notebook-error/m-p/1153123#M64030</link>
      <description>&lt;P&gt;could be an install issue&lt;/P&gt;&lt;P&gt;C:\...Your_install_folder ...\bin\Python\envs\arcgispro-py3\Lib\site-packages\cachetools&lt;/P&gt;&lt;P&gt;try&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from cachetools import cache&lt;/LI-CODE&gt;&lt;P&gt;from your environment, it is installed with Pro 2.9&lt;/P&gt;&lt;P&gt;A related issue was noted previously&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/deep-learning-frameworks/issues/36" target="_blank"&gt;No module named 'cachetools' · Issue #36 · Esri/deep-learning-frameworks (github.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 22:31:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-pro-notebook-error/m-p/1153123#M64030</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2022-03-11T22:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro Notebook error</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-pro-notebook-error/m-p/1153338#M64037</link>
      <description>&lt;P&gt;Dan, Thank you for responding - I was hopeful but I am still not getting beyond this error: I tried entering "from cachetools import cache" and still get an error:&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------------------&lt;BR /&gt;ImportError Traceback (most recent call last)&lt;BR /&gt;In [1]:&lt;BR /&gt;Line 1: from cachetools import cache&lt;/P&gt;&lt;P&gt;ImportError: cannot import name 'cache' from 'cachetools' (unknown location)&lt;/P&gt;&lt;P&gt;I've tried other import functions and each one generates the same error. In some cases, instead of saying it cannot impart name "cache", it says cannot import name "cached" - this makes it even more confusing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am considering uninstalling the 2.9 DL Libraries for the second time and reinstalling them.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2022 13:57:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-pro-notebook-error/m-p/1153338#M64037</guid>
      <dc:creator>MartyRyan</dc:creator>
      <dc:date>2022-03-14T13:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro Notebook error</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-pro-notebook-error/m-p/1153391#M64038</link>
      <description>&lt;P&gt;Are you running the script from a cloned environment?&amp;nbsp; If so, it looks like your clone doesn't contain all the necessary elements and/or the DL package was not installed with the correct version or something went wrong.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just in case&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/deep-learning-frameworks" target="_blank"&gt;Esri/deep-learning-frameworks: Installation support for Deep Learning Frameworks for the ArcGIS System (github.com)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2022 15:36:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-pro-notebook-error/m-p/1153391#M64038</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2022-03-14T15:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro Notebook error</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-pro-notebook-error/m-p/1153396#M64039</link>
      <description>&lt;P&gt;Dan,&lt;/P&gt;&lt;P&gt;Thanks again - I just had a conference with my manager and the import functions work fine in his setup. We confirmed that I am not working in a cloned environment and my Python setup is fine -&lt;/P&gt;&lt;P&gt;His suggestion: Reinstall the 2.9 Libraries and if that doesn't work, do a new install of Pro 2.9 -&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm uninstalling the libraries now and will see how it goes - thanks again&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2022 15:40:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-pro-notebook-error/m-p/1153396#M64039</guid>
      <dc:creator>MartyRyan</dc:creator>
      <dc:date>2022-03-14T15:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro Notebook error</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-pro-notebook-error/m-p/1226067#M65952</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/279071"&gt;@MartyRyan&lt;/a&gt;&amp;nbsp;! Did you solve this? I have the same issue. Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 08:13:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-pro-notebook-error/m-p/1226067#M65952</guid>
      <dc:creator>ÅsaBlomberg</dc:creator>
      <dc:date>2022-10-27T08:13:18Z</dc:date>
    </item>
  </channel>
</rss>

