<?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 licence not available in Python ? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcgis-licence-not-available-in-python/m-p/238014#M18504</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not if you have it and are working in a single user environment and not one of those share-sy ones.&lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/arcmap/latest/analyze/python/access-to-licensing-and-extensions.htm" title="http://desktop.arcgis.com/en/arcmap/latest/analyze/python/access-to-licensing-and-extensions.htm"&gt;Accessing licenses and extensions in Python—Help | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;EM&gt;The setting of the product and extensions is only necessary within stand-alone scripts. If you are running tools from the Python window or using script tools, the product is already set from within the application, and the active extensions are based on the Extensions dialog box. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;​I never find any point in checking and getting a nice message, I would rather it fail and a real error message be thrown.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Mar 2016 13:27:05 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2016-03-31T13:27:05Z</dc:date>
    <item>
      <title>ArcGIS licence not available in Python ?</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-licence-not-available-in-python/m-p/238011#M18501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm using the Conversion &amp;gt; Polygon to Raster tool in ArcMap and it is working well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to do a Python script to use this but with a large amount of files, but it says that the tool is not licenced.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible that some tools are available in ArcMap but not with ArcPy ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2016 13:03:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-licence-not-available-in-python/m-p/238011#M18501</guid>
      <dc:creator>KevinCÃ_tÃ_</dc:creator>
      <dc:date>2016-03-31T13:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS licence not available in Python ?</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-licence-not-available-in-python/m-p/238012#M18502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;always go to the help topic for tools &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/conversion-toolbox/polygon-to-raster.htm" title="http://desktop.arcgis.com/en/arcmap/latest/tools/conversion-toolbox/polygon-to-raster.htm"&gt;Polygon to Raster—Help | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;P&gt;licensing requirements are listed at the bottom, so either you aren't licensed, or in this case, perhaps you don't have the appropriate extension toggled on in the Customize, Extensions menu option&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2016 13:05:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-licence-not-available-in-python/m-p/238012#M18502</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-03-31T13:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS licence not available in Python ?</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-licence-not-available-in-python/m-p/238013#M18503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For working with extensions in ArcPy, would it be good to always start the scripts off with :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy

if arcpy.CheckExtension("3D") == "Available":
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.CheckOutExtension("3D")
else:
&amp;nbsp;&amp;nbsp;&amp;nbsp; print "3D Analyst license is unavailable"&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or does that mess things up if the license is already checked on in the local desktop ArcMap?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 11:59:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-licence-not-available-in-python/m-p/238013#M18503</guid>
      <dc:creator>AdrianWelsh</dc:creator>
      <dc:date>2021-12-11T11:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS licence not available in Python ?</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-licence-not-available-in-python/m-p/238014#M18504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not if you have it and are working in a single user environment and not one of those share-sy ones.&lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/arcmap/latest/analyze/python/access-to-licensing-and-extensions.htm" title="http://desktop.arcgis.com/en/arcmap/latest/analyze/python/access-to-licensing-and-extensions.htm"&gt;Accessing licenses and extensions in Python—Help | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;EM&gt;The setting of the product and extensions is only necessary within stand-alone scripts. If you are running tools from the Python window or using script tools, the product is already set from within the application, and the active extensions are based on the Extensions dialog box. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;​I never find any point in checking and getting a nice message, I would rather it fail and a real error message be thrown.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2016 13:27:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-licence-not-available-in-python/m-p/238014#M18504</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-03-31T13:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS licence not available in Python ?</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-licence-not-available-in-python/m-p/238015#M18505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;Thanks for your answers !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;Adrian, I added your code to my script and now it's working ! My extensions were always checked in ArcMap (both Spatial and 3D analyst) but it wasn't working. Now with these 4 lines it works ! Thanks so much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2016 13:45:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-licence-not-available-in-python/m-p/238015#M18505</guid>
      <dc:creator>KevinCÃ_tÃ_</dc:creator>
      <dc:date>2016-03-31T13:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS licence not available in Python ?</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-licence-not-available-in-python/m-p/238016#M18506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt; &lt;EM&gt;&lt;STRONG&gt;The setting of the product and extensions is only necessary within stand-alone scripts&lt;/STRONG&gt;. If you are running tools from the Python window or using script tools, the product is already set from within the application, and the active extensions are based on the Extensions dialog box. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I would say "stand-alone scripts and or custom-tools from these stand-alone scripts".&amp;nbsp;&amp;nbsp; I find it is always better to check it out (and in at the end, if you want to keep it need) for my custom tools.&amp;nbsp; In theory, the tools you write should be able to move to other machines, setups and license manager (concurrent or single-use), so better to check it out if needed for your process.&amp;nbsp; I'm not sure if the second sentence is correct or not (haven't tested).&amp;nbsp; It may be, assuming a license is available, otherwise you would still get an error, in my opinion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/2122"&gt;Adrian Welsh&lt;/A&gt;&amp;nbsp; does a nicer user interface then I use....I just do the checkout since you will still get an error if no licenses/seats are available (lazy coding on my part I guess).&amp;nbsp; And no, it does not mess up what is already checked out as far as I can tell.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2016 15:53:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-licence-not-available-in-python/m-p/238016#M18506</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2016-03-31T15:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS licence not available in Python ?</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-licence-not-available-in-python/m-p/238017#M18507</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;SPAN class="keyword"&gt;if arcpy.CheckExtension(&lt;SPAN class="string"&gt;"3D"&lt;/SPAN&gt;) == &lt;SPAN class="string"&gt;"Available"&lt;/SPAN&gt;:&amp;nbsp; &lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.CheckOutExtension(&lt;SPAN class="string"&gt;"3D")&amp;nbsp; &lt;/SPAN&gt;
&lt;SPAN class="keyword"&gt;else:&amp;nbsp; &lt;/SPAN&gt;
&lt;SPAN class="keyword"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print &lt;SPAN class="string"&gt;"3D Analyst license is unavailable"&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN class="keyword"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="keyword"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN class="keyword"&gt;Hmmm I prefer that ONLY, if I am distributing to someone working in a 'shared' environment... which happens, never&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="keyword"&gt;It will fail miserably if associated with a tool in arctoolbox etc. you need to add&lt;/SPAN&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN class="keyword"&gt;arcpy.AddMessage("blah blah")&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="keyword"&gt;Or check for the existence of the tool prior to doing anything and use tool validation etc or simply&lt;/SPAN&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN class="keyword"&gt;sys.exit()&amp;nbsp; # without a message so that it quietly fails since they shouldn't be using it&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="keyword"&gt;You have to be prepared for ArcGIS PRO etc&lt;/SPAN&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN class="keyword"&gt;print("Print is now a function")&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN class="keyword"&gt;As a standalone script, I don't even bother checking since people should read the docs before running anything &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="keyword"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="keyword"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="keyword"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="keyword"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 11:59:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-licence-not-available-in-python/m-p/238017#M18507</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-11T11:59:11Z</dc:date>
    </item>
  </channel>
</rss>

