<?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: import arcinfo/SetProduct in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/import-arcinfo-setproduct/m-p/202661#M15593</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't think there's any way of releasing the license without restarting the IDE's python process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That said... I use an IDE called &lt;/SPAN&gt;&lt;A href="http://code.google.com/p/pyscripter/"&gt;PyScripter&lt;/A&gt;&lt;SPAN&gt; which has a remote debugger. This means it can be restarted (or crashed...) without restarting (or crashing...) the entire IDE.&amp;nbsp; To restart the remote python process and release a license after running an ArcPy script, right click the python interpreter section of the IDE and select Python Engine-&amp;gt;Reinitialize Python Engine. See attached screenshot. Or hit Ctrl+F2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]23535[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Apr 2013 02:43:29 GMT</pubDate>
    <dc:creator>Luke_Pinner</dc:creator>
    <dc:date>2013-04-16T02:43:29Z</dc:date>
    <item>
      <title>import arcinfo/SetProduct</title>
      <link>https://community.esri.com/t5/python-questions/import-arcinfo-setproduct/m-p/202660#M15592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I often use:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import arcinfo
import arcpy
&lt;/PRE&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in my Python IDE (see &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/SetProduct/018v00000009000000/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#/SetProduct/018v00000009000000/&lt;/A&gt;&lt;SPAN&gt;) to save mucking about switching licenses and firing up new sessions of ArcGIS Desktop, but would like to force the return of a floating ARC/INFO license without closing down my Python IDE.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tired importing the module as part of a function and this affects the scope of the imports but still hangs on to an ARC/INFO license.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It would be great if there was something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
arcpy.CheckInProduct("ArcInfo")
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:04:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/import-arcinfo-setproduct/m-p/202660#M15592</guid>
      <dc:creator>MatthewBrown1</dc:creator>
      <dc:date>2021-12-11T10:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: import arcinfo/SetProduct</title>
      <link>https://community.esri.com/t5/python-questions/import-arcinfo-setproduct/m-p/202661#M15593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't think there's any way of releasing the license without restarting the IDE's python process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That said... I use an IDE called &lt;/SPAN&gt;&lt;A href="http://code.google.com/p/pyscripter/"&gt;PyScripter&lt;/A&gt;&lt;SPAN&gt; which has a remote debugger. This means it can be restarted (or crashed...) without restarting (or crashing...) the entire IDE.&amp;nbsp; To restart the remote python process and release a license after running an ArcPy script, right click the python interpreter section of the IDE and select Python Engine-&amp;gt;Reinitialize Python Engine. See attached screenshot. Or hit Ctrl+F2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]23535[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2013 02:43:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/import-arcinfo-setproduct/m-p/202661#M15593</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2013-04-16T02:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: import arcinfo/SetProduct</title>
      <link>https://community.esri.com/t5/python-questions/import-arcinfo-setproduct/m-p/202662#M15594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the tip! Works well. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PyScripter looks pretty good.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2013 03:28:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/import-arcinfo-setproduct/m-p/202662#M15594</guid>
      <dc:creator>MatthewBrown1</dc:creator>
      <dc:date>2013-04-16T03:28:38Z</dc:date>
    </item>
  </channel>
</rss>

