<?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 How to insure that arcpy/Pro license is &amp;quot;returned&amp;quot; by script? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-to-insure-that-arcpy-pro-license-is-quot/m-p/380733#M30018</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any way that a 'named user' Pro license that is being consumed by a service account has&amp;nbsp;to be released so that the same account can "check out" this license on another machine? I know there is no real check in/out for named users. But I'm running into an issue where I want to have the same account running the same script on different machines but it will only complete on the first machine. I&amp;nbsp;can&amp;nbsp;schedule it to run on either machine over night and it runs fine. As soon as I want to run it on both machines, it will fail on the second one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've wrapped my&amp;nbsp;import&amp;nbsp;into try/except to make sure that's really where it's failing:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;try&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
   &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy

&lt;SPAN class="keyword token"&gt;except&lt;/SPAN&gt; Exception&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
   &lt;SPAN class="keyword token"&gt;with&lt;/SPAN&gt; open&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;r&lt;SPAN class="string token"&gt;'C:\temp\arcpyIssue.log'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'w'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; failurelog&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
      failurelog&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;write&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Unable to get arcpy license"&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and that&amp;nbsp;appears&amp;nbsp;to indicate the arcpy import is the issue? Any thoughts? Shouldn't I be able to run as many instances of Pro or Pro licensed Python under the same account as I want? I seem to have no issues having instances of Pro open on multiple machines using my own account.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 17:33:39 GMT</pubDate>
    <dc:creator>Arne_Gelfert</dc:creator>
    <dc:date>2021-12-11T17:33:39Z</dc:date>
    <item>
      <title>How to insure that arcpy/Pro license is "returned" by script?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-insure-that-arcpy-pro-license-is-quot/m-p/380733#M30018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any way that a 'named user' Pro license that is being consumed by a service account has&amp;nbsp;to be released so that the same account can "check out" this license on another machine? I know there is no real check in/out for named users. But I'm running into an issue where I want to have the same account running the same script on different machines but it will only complete on the first machine. I&amp;nbsp;can&amp;nbsp;schedule it to run on either machine over night and it runs fine. As soon as I want to run it on both machines, it will fail on the second one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've wrapped my&amp;nbsp;import&amp;nbsp;into try/except to make sure that's really where it's failing:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;try&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
   &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy

&lt;SPAN class="keyword token"&gt;except&lt;/SPAN&gt; Exception&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
   &lt;SPAN class="keyword token"&gt;with&lt;/SPAN&gt; open&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;r&lt;SPAN class="string token"&gt;'C:\temp\arcpyIssue.log'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'w'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; failurelog&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
      failurelog&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;write&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Unable to get arcpy license"&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and that&amp;nbsp;appears&amp;nbsp;to indicate the arcpy import is the issue? Any thoughts? Shouldn't I be able to run as many instances of Pro or Pro licensed Python under the same account as I want? I seem to have no issues having instances of Pro open on multiple machines using my own account.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:33:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-insure-that-arcpy-pro-license-is-quot/m-p/380733#M30018</guid>
      <dc:creator>Arne_Gelfert</dc:creator>
      <dc:date>2021-12-11T17:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to insure that arcpy/Pro license is "returned" by script?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-insure-that-arcpy-pro-license-is-quot/m-p/380734#M30019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;According to &lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/get-started/faq.htm" title="https://pro.arcgis.com/en/pro-app/get-started/faq.htm"&gt;Frequently asked questions—ArcGIS Pro | Documentation&lt;/A&gt; :&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;DIV class="" style="color: #4c4c4c; font-family: 'Avenir Next W01', 'Avenir Next W00', 'Avenir Next', Avenir, 'Helvetica Neue', sans-serif; font-size: 17px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;P style="margin-top: 0px; margin-bottom: 0px; font-weight: 600;"&gt;Can I run&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;ArcGIS Pro&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;on more than one machine?&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #4c4c4c; font-family: 'Avenir Next W01', 'Avenir Next W00', 'Avenir Next', Avenir, 'Helvetica Neue', sans-serif; font-size: 17px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;P style="margin-top: 0px; margin-bottom: 1.55rem;"&gt;The answer depends on the licensing model you're using:&lt;/P&gt;&lt;UL style="margin-top: 0px; margin-bottom: 1.55rem; padding: 0px; list-style-position: inside; margin-left: 0.775rem; font-size: 0.9375rem; line-height: 1.55rem;"&gt;&lt;LI style="list-style-position: outside; margin: 0.3875rem 0px 0.3875rem 1.5rem;"&gt;When connected to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;ArcGIS Online&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;or&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;ArcGIS Enterprise&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;with a&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A class="" href="https://pro.arcgis.com/en/pro-app/get-started/named-user-licenses.htm" style="color: #0074b8; text-decoration: none;"&gt;Named User&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;account, you can log in on up to three machines at the same time. If you're disconnected and have your license set to work offline, you can work with the one machine that has been taken offline.&lt;/LI&gt;&lt;LI style="list-style-position: outside; margin: 0.3875rem 0px 0.3875rem 1.5rem;"&gt;One&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A class="" href="https://pro.arcgis.com/en/pro-app/get-started/single-use-licenses.htm" style="color: #0074b8; text-decoration: none;"&gt;Single Use&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;license can be used to authorize one user on one machine.&lt;/LI&gt;&lt;LI style="list-style-position: outside; margin: 0.3875rem 0px 0.3875rem 1.5rem;"&gt;&lt;A class="" href="https://pro.arcgis.com/en/pro-app/get-started/concurrent-use-licenses.htm" style="color: #0074b8; text-decoration: none;"&gt;Concurrent Use&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;licenses allow authorization of one machine per license at a time, drawing from a pool of shared licenses.&lt;/LI&gt;&lt;/UL&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Assuming you are running online Named User licensing, you should be able to run three sessions at the same time.&amp;nbsp; It is probably going to be an Esri Support case to work through this one, especially because it seems like a defect if running a stand-alone ArcPy script doesn't adhere to licensing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2020 20:59:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-insure-that-arcpy-pro-license-is-quot/m-p/380734#M30019</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-03-10T20:59:06Z</dc:date>
    </item>
  </channel>
</rss>

