<?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 PyScripter seems to be grabbing an arcinfo license in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/pyscripter-seems-to-be-grabbing-an-arcinfo-license/m-p/659298#M51253</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Any time I start PyScripter it grabs our floating Advanced (arcinfo) license if it's available.&amp;nbsp; I'm not talking about when the script is actually running (we've solved the problem in that context).&amp;nbsp; I'm asking about when I'm only in the editor writing code.&amp;nbsp; In that context if my code has an "import arcpy" line in it then it actually checks out the license as soon as I start PyScripter and without any code execution started.&amp;nbsp; I'm assuming that this is happening when PyScripter is getting the code-completion (intellisense) data, though I'm not sure.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have successfully resolved forcing a command line executed script to use an arceditor license by putting a "import arceditor" line prior to the "import arcpy" line; (See:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//002z0000000z000000" rel="nofollow noopener noreferrer" target="_blank"&gt;Accessing licenses and extensions in Python&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import arceditor&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Standard level license
import arcpy
&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;HOWEVER, the PyScripter editor itself seems to ignore this.&amp;nbsp; The code I'm using does not need arcinfo.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In short, how can I force arcpy to only take a Standard (arceditor) level license no matter the context?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone else had this problem?&amp;nbsp; Any thoughts?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[Win 7-64 SP1, Arc 10.1 SP1, 64-bit background geoprocessing installed, license mgr is 10.1]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 03:53:44 GMT</pubDate>
    <dc:creator>StormwaterWater_Resources</dc:creator>
    <dc:date>2021-12-12T03:53:44Z</dc:date>
    <item>
      <title>PyScripter seems to be grabbing an arcinfo license</title>
      <link>https://community.esri.com/t5/python-questions/pyscripter-seems-to-be-grabbing-an-arcinfo-license/m-p/659298#M51253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Any time I start PyScripter it grabs our floating Advanced (arcinfo) license if it's available.&amp;nbsp; I'm not talking about when the script is actually running (we've solved the problem in that context).&amp;nbsp; I'm asking about when I'm only in the editor writing code.&amp;nbsp; In that context if my code has an "import arcpy" line in it then it actually checks out the license as soon as I start PyScripter and without any code execution started.&amp;nbsp; I'm assuming that this is happening when PyScripter is getting the code-completion (intellisense) data, though I'm not sure.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have successfully resolved forcing a command line executed script to use an arceditor license by putting a "import arceditor" line prior to the "import arcpy" line; (See:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//002z0000000z000000" rel="nofollow noopener noreferrer" target="_blank"&gt;Accessing licenses and extensions in Python&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import arceditor&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Standard level license
import arcpy
&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;HOWEVER, the PyScripter editor itself seems to ignore this.&amp;nbsp; The code I'm using does not need arcinfo.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In short, how can I force arcpy to only take a Standard (arceditor) level license no matter the context?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone else had this problem?&amp;nbsp; Any thoughts?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[Win 7-64 SP1, Arc 10.1 SP1, 64-bit background geoprocessing installed, license mgr is 10.1]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:53:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/pyscripter-seems-to-be-grabbing-an-arcinfo-license/m-p/659298#M51253</guid>
      <dc:creator>StormwaterWater_Resources</dc:creator>
      <dc:date>2021-12-12T03:53:44Z</dc:date>
    </item>
  </channel>
</rss>

