<?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 ImportError: cannot import name 'Raster' from 'arcgis.raster' in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/importerror-cannot-import-name-raster-from-arcgis/m-p/880154#M5078</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am using arcgis 1.7.1 module in my local Python 3.7 environment.&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the following statement:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;from arcgis.raster import Raster&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I got import error:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #e75c58;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;ImportError&lt;/SPAN&gt;: cannot import name 'Raster' from 'arcgis.raster' (/Users/andy/opt/anaconda3/lib/python3.7/site-packages/arcgis/raster/__init__.py)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it error related to Raster add-on licence? &amp;nbsp;My account is restricted to ArcGIS Online. &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Andrey Korotkov&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 03 May 2020 09:14:28 GMT</pubDate>
    <dc:creator>AndreyKorotkov</dc:creator>
    <dc:date>2020-05-03T09:14:28Z</dc:date>
    <item>
      <title>ImportError: cannot import name 'Raster' from 'arcgis.raster'</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/importerror-cannot-import-name-raster-from-arcgis/m-p/880154#M5078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am using arcgis 1.7.1 module in my local Python 3.7 environment.&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the following statement:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;from arcgis.raster import Raster&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I got import error:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #e75c58;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;ImportError&lt;/SPAN&gt;: cannot import name 'Raster' from 'arcgis.raster' (/Users/andy/opt/anaconda3/lib/python3.7/site-packages/arcgis/raster/__init__.py)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it error related to Raster add-on licence? &amp;nbsp;My account is restricted to ArcGIS Online. &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Andrey Korotkov&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 May 2020 09:14:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/importerror-cannot-import-name-raster-from-arcgis/m-p/880154#M5078</guid>
      <dc:creator>AndreyKorotkov</dc:creator>
      <dc:date>2020-05-03T09:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: ImportError: cannot import name 'Raster' from 'arcgis.raster'</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/importerror-cannot-import-name-raster-from-arcgis/m-p/880155#M5079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcgis
&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;raster &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; Raster

arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;__version__
&lt;SPAN class="string token"&gt;'1.8.0'&lt;/SPAN&gt;

dir&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;Raster&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'__abs__'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'__add__'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'__and__'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'__class__'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt; snip &lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/python/api-reference/arcgis.raster.toc.html?highlight=raster#module-arcgis.raster" title="https://developers.arcgis.com/python/api-reference/arcgis.raster.toc.html?highlight=raster#module-arcgis.raster" rel="nofollow noopener noreferrer" target="_blank"&gt;arcgis.raster module — arcgis 1.8.0 documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;which indicates&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #404040; background-color: #fcfcfc;"&gt;Use arcgis.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #404040; background: #f1c40f; font-weight: bold; padding: 0px 6px;"&gt;raster&lt;/SPAN&gt;&lt;SPAN style="color: #404040; background-color: #fcfcfc;"&gt;.analytics.is_supported(gis) to check if raster analysis is supported in your GIS.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check with an active 'gis' environment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think it changed from version 1.7.1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 11:06:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/importerror-cannot-import-name-raster-from-arcgis/m-p/880155#M5079</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-12T11:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: ImportError: cannot import name 'Raster' from 'arcgis.raster'</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/importerror-cannot-import-name-raster-from-arcgis/m-p/880156#M5080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Dan&lt;/P&gt;&lt;P&gt;I have reinstalled arcgis to 1.8.0. Corrected. Possibly, my 1.7.1 installation was incomlete.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 May 2020 16:35:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/importerror-cannot-import-name-raster-from-arcgis/m-p/880156#M5080</guid>
      <dc:creator>AndreyKorotkov</dc:creator>
      <dc:date>2020-05-03T16:35:13Z</dc:date>
    </item>
  </channel>
</rss>

