<?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: Running python using server in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/running-python-using-server/m-p/1401011#M70175</link>
    <description>&lt;P&gt;I have the same issue with the same versions&amp;nbsp;Python 3.9.16 Server 11.1 and Pro 3.1, works on the Pro desktop machine not when I run it via remote desktop on the server machine. The very same script from the same location.&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR 000732: Input Table:&amp;nbsp;does not exist or is not supported&lt;/P&gt;&lt;P&gt;The server is Standard the pro is advanced but this script uses arcpy.conversion.ExportTable which is available in either license.&lt;/P&gt;&lt;P&gt;One more thing, it was running on the server at 11.0, just upgraded to 11.1 and now doesn't run.&lt;/P&gt;</description>
    <pubDate>Tue, 26 Mar 2024 17:00:29 GMT</pubDate>
    <dc:creator>DarylHochhalter</dc:creator>
    <dc:date>2024-03-26T17:00:29Z</dc:date>
    <item>
      <title>Running python using server</title>
      <link>https://community.esri.com/t5/python-questions/running-python-using-server/m-p/1368322#M69593</link>
      <description>&lt;P&gt;I have a machine that has Pro 3.1.4 &amp;amp; server 11.1&lt;/P&gt;&lt;P&gt;When I run in CMD the python from server ("C:\Program Files\ArcGIS\Server\framework\runtime\ArcGIS\bin\Python\envs\arcgispro-py3\python.exe") and try to import arcpy I get an error (see attachment) When I do it with the Pro python ("C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python.exe") it works.&lt;/P&gt;&lt;P&gt;Both python version are the same (3.9.16)&lt;/P&gt;&lt;P&gt;I have tested it on a few machines that have both Pro &amp;amp; server installed. Some of them works, others do not.&lt;/P&gt;&lt;P&gt;Opened a case but the support does not have it on his machine.&lt;/P&gt;&lt;P&gt;Anybody have any idea?&lt;/P&gt;&lt;P&gt;When using the server python we should use the server license - this is the reason to use it.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 14:20:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/running-python-using-server/m-p/1368322#M69593</guid>
      <dc:creator>mody_buchbinder</dc:creator>
      <dc:date>2024-01-10T14:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: Running python using server</title>
      <link>https://community.esri.com/t5/python-questions/running-python-using-server/m-p/1368474#M69602</link>
      <description>&lt;P&gt;I had a similar problem a while ago.&amp;nbsp; Are you trying to use geoprocessing tools, and do you use Concurrent Use licenses for Pro?&amp;nbsp; Do you have a License Manager?&amp;nbsp; Through working with Esri, with a LOT of calls and back-and-forth, I learned that arcpy geoprocessing tools require that you're connected to the license manager in Pro.&amp;nbsp; It sounded like it's not possible to use arcpy geoprocessing tools via ArcGIS Server python... which just doesn't make any sense to me...&lt;/P&gt;&lt;P&gt;I don't know if any of that is relevant to your situation, but I thought I'd mention it just in case.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 17:41:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/running-python-using-server/m-p/1368474#M69602</guid>
      <dc:creator>AllenDailey1</dc:creator>
      <dc:date>2024-01-10T17:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: Running python using server</title>
      <link>https://community.esri.com/t5/python-questions/running-python-using-server/m-p/1368767#M69616</link>
      <description>&lt;P&gt;Hi Allen&lt;/P&gt;&lt;P&gt;Thanks for your answer.&lt;/P&gt;&lt;P&gt;When I use the Pro python and the Pro have any licenses it works.&lt;/P&gt;&lt;P&gt;Many users does not want to use Pro license for this and would like to use Server license.&lt;/P&gt;&lt;P&gt;In ArcMap&amp;nbsp; python you should do "import arcserver" (&lt;A href="https://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-functions/setproduct.htm" target="_blank"&gt;https://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-functions/setproduct.htm&lt;/A&gt;) This does not exists in Pro arcpy.&lt;/P&gt;&lt;P&gt;The solution is to use the server python.exe that should use the server license automatically.&lt;/P&gt;&lt;P&gt;It does work on many machines but sometime does not on machines that have both Pro and Server installed.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 06:06:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/running-python-using-server/m-p/1368767#M69616</guid>
      <dc:creator>mody_buchbinder</dc:creator>
      <dc:date>2024-01-11T06:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: Running python using server</title>
      <link>https://community.esri.com/t5/python-questions/running-python-using-server/m-p/1369017#M69634</link>
      <description>&lt;P&gt;Can you try to run the propy.bat included with the Server installation and see if the issue reproduces there? The documentation at &lt;A href="https://enterprise.arcgis.com/en/server/latest/develop/windows/scripting-service-publishing-with-arcpy.htm" target="_blank" rel="noopener"&gt;https://enterprise.arcgis.com/en/server/latest/develop/windows/scripting-service-publishing-with-arcpy.htm&lt;/A&gt; provides some additional information. You can also try running the &lt;SPAN class=""&gt;Python 3 Command Prompt&lt;/SPAN&gt; from the start group shortcut and start your Python session from that to confirm it works when activated through conda.&lt;BR /&gt;&lt;BR /&gt;Cheers, Shaun&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 16:58:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/running-python-using-server/m-p/1369017#M69634</guid>
      <dc:creator>ShaunWalbridge</dc:creator>
      <dc:date>2024-01-11T16:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: Running python using server</title>
      <link>https://community.esri.com/t5/python-questions/running-python-using-server/m-p/1369967#M69647</link>
      <description>&lt;P&gt;Hi Shaun&lt;/P&gt;&lt;P&gt;In most cases the reason to run server python is that we need to run python by scheduler a few times a day so the interactive mod does not help.&lt;/P&gt;&lt;P&gt;I tested the propy.bat at least on one machine and it did not worked. I will test it on other machines too.&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jan 2024 06:27:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/running-python-using-server/m-p/1369967#M69647</guid>
      <dc:creator>mody_buchbinder</dc:creator>
      <dc:date>2024-01-14T06:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: Running python using server</title>
      <link>https://community.esri.com/t5/python-questions/running-python-using-server/m-p/1401011#M70175</link>
      <description>&lt;P&gt;I have the same issue with the same versions&amp;nbsp;Python 3.9.16 Server 11.1 and Pro 3.1, works on the Pro desktop machine not when I run it via remote desktop on the server machine. The very same script from the same location.&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR 000732: Input Table:&amp;nbsp;does not exist or is not supported&lt;/P&gt;&lt;P&gt;The server is Standard the pro is advanced but this script uses arcpy.conversion.ExportTable which is available in either license.&lt;/P&gt;&lt;P&gt;One more thing, it was running on the server at 11.0, just upgraded to 11.1 and now doesn't run.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 17:00:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/running-python-using-server/m-p/1401011#M70175</guid>
      <dc:creator>DarylHochhalter</dc:creator>
      <dc:date>2024-03-26T17:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Running python using server</title>
      <link>https://community.esri.com/t5/python-questions/running-python-using-server/m-p/1611319#M74123</link>
      <description>&lt;P&gt;Did you ever figure this out?&lt;BR /&gt;&lt;BR /&gt;I'm running into the same issue with propy.bat in ArcGIS\Server\framework\runtime\ArcGIS\bin\Python\Scripts&lt;/P&gt;&lt;P&gt;One machine, two different accounts. Account#1 Server propy.bat works just fine when I try to import arcpy. Account #2 Server propy.bat opens but import arcpy has RunTimeError: The software is not authorized for use.&lt;/P&gt;&lt;P&gt;Being signed into ArcGIS Pro has zero effect on the outcome, on either account. Server should just be licensed to use arcpy, right?&lt;/P&gt;</description>
      <pubDate>Fri, 02 May 2025 22:56:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/running-python-using-server/m-p/1611319#M74123</guid>
      <dc:creator>alex_friant</dc:creator>
      <dc:date>2025-05-02T22:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: Running python using server</title>
      <link>https://community.esri.com/t5/python-questions/running-python-using-server/m-p/1611391#M74125</link>
      <description>&lt;P&gt;As far as i understand the order of installations (Pro and server) define if this will be a problem or not.&lt;/P&gt;&lt;P&gt;If you remove Pro from the server it works for me every time.&lt;/P&gt;&lt;P&gt;Sometime uninstall the Pro and then reinstall (if you must have it) works too&lt;/P&gt;</description>
      <pubDate>Sun, 04 May 2025 04:55:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/running-python-using-server/m-p/1611391#M74125</guid>
      <dc:creator>ModyBuchbinder</dc:creator>
      <dc:date>2025-05-04T04:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: Running python using server</title>
      <link>https://community.esri.com/t5/python-questions/running-python-using-server/m-p/1611677#M74127</link>
      <description>&lt;P&gt;Thanks for the tip - that seems strange if true. The Pro installation should have nothing to do with the ArcGIS Server installation. If it does, then that means Pro is interfering with the normal operations of ArcGIS Server, which is concerning.&lt;BR /&gt;I'll give it a shot to see what I can figure out/duplicate the suggested work around.&lt;/P&gt;</description>
      <pubDate>Mon, 05 May 2025 15:40:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/running-python-using-server/m-p/1611677#M74127</guid>
      <dc:creator>alex_friant</dc:creator>
      <dc:date>2025-05-05T15:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: Running python using server</title>
      <link>https://community.esri.com/t5/python-questions/running-python-using-server/m-p/1611732#M74128</link>
      <description>&lt;P&gt;I would appreciate a bug being logged on this, or sufficient detail for us to reproduce it in house. While the products and their registry keys should not interact, Python environments are a fairly special case. Why? Because once you create custom environments, they can be located anywhere on disk, and potentially map back to either Pro or Server or one of the other four products that also produce custom environments. In that case, mixing between environment types installed with different products can be problematic, because the versions won't align between those cases, and I suspect there is some interaction in that area at play here.&lt;/P&gt;</description>
      <pubDate>Mon, 05 May 2025 17:56:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/running-python-using-server/m-p/1611732#M74128</guid>
      <dc:creator>ShaunWalbridge</dc:creator>
      <dc:date>2025-05-05T17:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: Running python using server</title>
      <link>https://community.esri.com/t5/python-questions/running-python-using-server/m-p/1611741#M74129</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/89710"&gt;@ShaunWalbridge&lt;/a&gt;&amp;nbsp;- Great suggestion, because I looked for it and bingo:&lt;BR /&gt;&lt;A href="https://support.esri.com/en-us/bug/running-python-scripts-from-within-the-arcgis-enterpris-bug-000128742" target="_blank" rel="noopener"&gt;https://support.esri.com/en-us/bug/running-python-scripts-from-within-the-arcgis-enterpris-bug-000128742&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I haven't tested the work around, but I'm about to try...&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;UPDATE: Resolved&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The work around in that bug report didn't work for our situation. The issue persisted, even after uninstalling ArcGIS Pro all together.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;However...&lt;/EM&gt;&lt;/STRONG&gt; I was able to resolve the issue and document it. I'll post that next...&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2025 19:23:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/running-python-using-server/m-p/1611741#M74129</guid>
      <dc:creator>alex_friant</dc:creator>
      <dc:date>2025-05-06T19:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: Running python using server</title>
      <link>https://community.esri.com/t5/python-questions/running-python-using-server/m-p/1612151#M74135</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Background&lt;/STRONG&gt;: I was gratefully advised by &lt;A href="https://www.esri.com/partners/pro-west-associates-a2T70000000TNbwEAG" target="_blank" rel="noopener"&gt;Pro-West Associates&lt;/A&gt; that they have seen this issue before, and it appears to be related to if the user account experiencing the RuntimeError has signed into ArcGIS Pro before. The issue is tied to the Windows Registry, and while I can confirm that's the case with our user experiencing issues, it's not always the case, only that the fix lies in the registry. I had two other User accounts on the same server that had also opened ArcGIS Pro, but import arcpy worked just fine for them when using the ArcGIS Server Python 3 environment. So, replicating the issue is difficult.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;These are the steps taken&lt;/EM&gt; to solve the RuntimeError for that one user we needed to be able to use arcpy in the&amp;nbsp;ArcGIS Server Python 3 environment:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Make sure ArcGIS Pro is uninstalled (I also had ArcGIS Desktop 10.8 uninstalled as well, so if you still have that installed, you may want to take that into consideration at step 5 below)&lt;/LI&gt;&lt;LI&gt;Sign in as user that was experiencing the issue of RuntimeError during import arcpy&lt;/LI&gt;&lt;LI&gt;Open the Windows Registry Editor&amp;nbsp;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Danger!&lt;/STRONG&gt; Only do these steps in an environment you can recover catastrophic failures with, as Windows Registry is a core component of the Windows OS and can cause instability or corrupt the Windows OS. Proceed at own risk and if you know what you are doing!&lt;/FONT&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;Note the settings for [Computer\HKEY_CURRENT_USER\Software\ESRI\ArcGISPro] are:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alex_friant_7-1746559767075.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/131647iCD428024649CE3F7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="alex_friant_7-1746559767075.png" alt="alex_friant_7-1746559767075.png" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;LI&gt;Make those &amp;gt; ArcGISPro settings look like so:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alex_friant_5-1746559564192.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/131645i2ED1FF49F399B85C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="alex_friant_5-1746559564192.png" alt="alex_friant_5-1746559564192.png" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;LI&gt;Close Registry Editor&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Sign out the user from Windows, Sign the user back in&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Test using Server’s Python 3 command prompt:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alex_friant_4-1746559529585.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/131644i648E4582038626A8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="alex_friant_4-1746559529585.png" alt="alex_friant_4-1746559529585.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Reinstalling ArcGIS Pro after this point still results in a success as above. We will not have that user sign in to ArcGIS Pro out of concern that it might cause issues again (we've burned too much time on this issue at this point and must march forward.)&lt;/P&gt;&lt;P&gt;I hope this solution works for others - it was hard to discover!&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2025 21:03:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/running-python-using-server/m-p/1612151#M74135</guid>
      <dc:creator>alex_friant</dc:creator>
      <dc:date>2025-05-06T21:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: Running python using server</title>
      <link>https://community.esri.com/t5/python-questions/running-python-using-server/m-p/1626060#M74421</link>
      <description>&lt;P&gt;THANK YOU!&lt;BR /&gt;&lt;BR /&gt;I'm using ArcGIS Server basic on a machine that had pro on it. For use as our FME Flow Engine Server&lt;BR /&gt;&lt;BR /&gt;once I had authorised Server Basic I still couldn't run python.exe and "import arcpy"&lt;/P&gt;&lt;P&gt;I was getting the error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;RuntimeError: The software is not authorized for use.&lt;BR /&gt;&lt;BR /&gt;Work around was to rename the reg folder&amp;nbsp;&lt;BR /&gt;Computer\HKEY_CURRENT_USER\Software\ESRI\ArcGISPro\Licensing to&amp;nbsp;Computer\HKEY_CURRENT_USER\Software\ESRI\ArcGISPro\Licensing2&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GrahamWoodHWC_0-1750737292548.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/134907iCC83E23FFEC4B994/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GrahamWoodHWC_0-1750737292548.png" alt="GrahamWoodHWC_0-1750737292548.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jun 2025 03:55:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/running-python-using-server/m-p/1626060#M74421</guid>
      <dc:creator>GrahamWood-HWC</dc:creator>
      <dc:date>2025-06-24T03:55:11Z</dc:date>
    </item>
  </channel>
</rss>

