<?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: ArcPy fails to import when not logged into host machine in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-fails-to-import-when-not-logged-into-host/m-p/553409#M43199</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to run ArcPy 3.6 from SQL Server's EXEC xp_cmdshell&amp;nbsp; &amp;nbsp;This always worked in Python 2.7.&amp;nbsp; It is an integrated process so won't work to run it from like Windows Scheduler.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I attempt to run ArcPy 36,&amp;nbsp;&amp;nbsp;'C:\Python3x\arcgispro-py3-clone\Python.exe F:\TEST\TEST.py'&amp;nbsp; is says license is not initialized.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I integrated this into the script and it connects to the license on my portal if run from CMD.&amp;nbsp; Also tried single use license from SQL Server or just "Pro"&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This connects to license server at cmd line.&amp;nbsp;&lt;/P&gt;&lt;P&gt;from arcgis.gis import GIS&lt;BR /&gt;gis=GIS(url="https://MyPortal/portal", username="MyUser", password="MyPass")&lt;/P&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Aug 2020 19:05:38 GMT</pubDate>
    <dc:creator>SteveLewis</dc:creator>
    <dc:date>2020-08-27T19:05:38Z</dc:date>
    <item>
      <title>ArcPy fails to import when not logged into host machine</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-fails-to-import-when-not-logged-into-host/m-p/553399#M43189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #000000; font-size: 12px; margin: 0px 0px 1em;"&gt;I am trying to run a python script on a server that I am not logged into. The script runs fine when I log into the server and execute. However, when the python script is executed through an automated process (not logged in) I receive the following error:&amp;nbsp;&lt;/P&gt;&lt;P style="color: #000000; font-size: 12px; margin: 0px 0px 1em;"&gt;&lt;EM&gt;Traceback (most recent call last):&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; File ".\Python\Scripts\DeployGeodatabase.py", line 1, in &amp;lt;module&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; import arcpy&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\__init__.py", line 72, in &amp;lt;module&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; from arcpy.geoprocessing import gp&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\__init__.py", line 14, in &amp;lt;module&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; from ._base import *&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\_base.py", line 14, in &amp;lt;module&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; import arcgisscripting&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;RuntimeError: Not signed into Portal.&lt;/EM&gt;&lt;/P&gt;&lt;P style="color: #000000; font-size: 12px; margin: 0px 0px 1em;"&gt;arcpy is unable to be imported because, for some unknown reason, it can't determine there is an available ArcGIS Pro license when not directly logged in.&amp;nbsp;&lt;/P&gt;&lt;P style="color: #000000; font-size: 12px; margin: 0px 0px 1em;"&gt;The automated process consists of an Octopus deployment task. Essentially Octopus has a Windows service run by the Local System account. When a deployment occurs the service invokes a local powershell script that kicks off the python script. I tried switching the account that runs the service to a local administrator to no avail. Not sure where to go from here since I can successfully run the powershell script when logged in.&amp;nbsp;&lt;/P&gt;&lt;P style="color: #000000; font-size: 12px; margin: 0px 0px 1em;"&gt;How do I get this to work?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2018 16:23:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-fails-to-import-when-not-logged-into-host/m-p/553399#M43189</guid>
      <dc:creator>ShaneBuscher1</dc:creator>
      <dc:date>2018-11-08T16:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy fails to import when not logged into host machine</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-fails-to-import-when-not-logged-into-host/m-p/553400#M43190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The most common ArcGIS Pro license is Named User.&amp;nbsp; If you are using Named User licensing, there is no single license on the machine for ArcGIS Pro.&amp;nbsp; When ArcGIS Pro launches, it grabs a license for a user based on how the license information is configured for that user.&amp;nbsp; If ArcGIS Pro has never been launched by a user, or some registry modifications haven't been made, ArcPy will have no idea how to obtain a license when running under that user's credentials.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you test running the script under your credentials?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2018 19:22:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-fails-to-import-when-not-logged-into-host/m-p/553400#M43190</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2018-11-08T19:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy fails to import when not logged into host machine</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-fails-to-import-when-not-logged-into-host/m-p/553401#M43191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply Joshua. I can run the script fine when I physically log into the server with my credentials, but that's not really helpful. I need to have the script be executed when logged off.&amp;nbsp; This is more about an automated process kicking off the script offline. Even if I remote into the server via a powershell session (passing my credentials) and run the script, arcpy still can't be imported. This seems to indicate you have to be logged into Windows to get a Pro license to use arcpy. Ugly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using a named license. Are you hinting that using a single use license could resolve the problem? Is there a registry setting that can be tweaked?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2018 19:58:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-fails-to-import-when-not-logged-into-host/m-p/553401#M43191</guid>
      <dc:creator>ShaneBuscher1</dc:creator>
      <dc:date>2018-11-08T19:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy fails to import when not logged into host machine</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-fails-to-import-when-not-logged-into-host/m-p/553402#M43192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you search GeoNet, you will find getting Pro-based ArcPy to run as a scheduled task has been a challenge for quite a few, but it has been made to work.&amp;nbsp; Some of those threads provide good information.&amp;nbsp; I am not sure if you have read them and tried any of the suggestions, so I may repeat what I have already said elsewhere on GeoNet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There aren't many specifics here to go on, so feedback may be limited compared to previous discussions on this topic in GeoNet.&amp;nbsp; A few questions to start.&amp;nbsp; How is your licensing currently configured for Pro on the machine?&amp;nbsp; You mention Named User, is it configured for offline access or automatic login?&amp;nbsp; Regarding your comment, "the script is executed through an automated process...".&amp;nbsp; Are you using Task Scheduler or some other mean of automating it, and can you provide some specific of how that is configured.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2018 21:52:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-fails-to-import-when-not-logged-into-host/m-p/553402#M43192</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2018-11-08T21:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy fails to import when not logged into host machine</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-fails-to-import-when-not-logged-into-host/m-p/553403#M43193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can get the script to work through a scheduled task when not logged in. The reason is Task Scheduler directly supports logins (the radio button 'Run whether user is logged on or not'). As mentioned in the original post, I'm using Octopus to run a powershell script on the machine that invokes the python script. Here's the workflow:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;A build is kicked off on a separate build server.&lt;/LI&gt;&lt;LI&gt;The python script that needs to be run is found within our source control (git) and packaged up (zipped).&lt;/LI&gt;&lt;LI&gt;The package is deployed via Octopus to the the machine with ArcGIS Pro installed.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Octopus unzips the package with the python script&lt;/LI&gt;&lt;LI&gt;Octopus runs a powershell script that executes the python script on the machine.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no scheduled task in this situation. Octopus runs as a service on the ArcGIS Pro machine, running under the Local System account. This is what kicks off the powershell script. I've even run the service under my domain account, which is the account I use to log into the machine and use ArcGIS Pro. I still get the arcpy import error. I get the same error also if I shell into the machine with powershell using my domain credentials and try running the script.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My ArcGIS Pro License is configured as 'Sign me in automatically'. I know this works because I can use a scheduled task succesfully with arcpy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need any more info please let me know.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shane&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2018 22:40:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-fails-to-import-when-not-logged-into-host/m-p/553403#M43193</guid>
      <dc:creator>ShaneBuscher1</dc:creator>
      <dc:date>2018-11-08T22:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy fails to import when not logged into host machine</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-fails-to-import-when-not-logged-into-host/m-p/553404#M43194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shane,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where you able to come up with a solution to fix this issue? I am having&amp;nbsp;the same problem with one of our servers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brandon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Mar 2019 17:35:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-fails-to-import-when-not-logged-into-host/m-p/553404#M43194</guid>
      <dc:creator>BrandonLongenberger</dc:creator>
      <dc:date>2019-03-13T17:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy fails to import when not logged into host machine</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-fails-to-import-when-not-logged-into-host/m-p/553405#M43195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Brandon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my situation I did get things working. You will need to log into the server with the account that you want to run arcpy under and open ArcGIS Pro. This creates the esri profile under&amp;nbsp;C:\Users\&amp;lt;user&amp;gt;\AppData\Roaming\Esri required to get around the error. I recommend using a single use license of ArcGIS Pro for this user.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shane&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2019 12:13:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-fails-to-import-when-not-logged-into-host/m-p/553405#M43195</guid>
      <dc:creator>ShaneBuscher1</dc:creator>
      <dc:date>2019-03-14T12:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy fails to import when not logged into host machine</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-fails-to-import-when-not-logged-into-host/m-p/553406#M43196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, the part about actually&amp;nbsp;starting up Pro under the account that your script will run has tripped me up. Had it running beautifully on one server and then it didn't work on box #2. Well, I had never opened Pro under the login. So good point!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2019 23:26:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-fails-to-import-when-not-logged-into-host/m-p/553406#M43196</guid>
      <dc:creator>Arne_Gelfert</dc:creator>
      <dc:date>2019-12-19T23:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy fails to import when not logged into host machine</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-fails-to-import-when-not-logged-into-host/m-p/553407#M43197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; border: 0px; padding: 0px;"&gt;I think the problem I am having is related so I'll ask for help here.&amp;nbsp; I have a number of batch processes that run python scripts via task scheduler.&amp;nbsp; They run great and then all the sudden a few weeks into them running flawlessly my scripts fail.&amp;nbsp; Turns out my user name is getting signed out of ArcPro.&amp;nbsp; I have learn that automatic sign in is only good for 14 days and then you are no longer signed it.&amp;nbsp; If I manually open ArcPro and sing in my scripts go back to working fine.&amp;nbsp; I tired adding arcpy.SingInToPortal&amp;nbsp; to my scripts but it doesn't seem to sign me in to ArcPro and therefor does not fix the problem.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; padding: 0px;"&gt;If I remember correctly, arcmap with 2.7 had a way to check out a licence.&amp;nbsp; So I tested checking out an extension in 3.x for Arcpro.&amp;nbsp; Extension check out fine but did not sign me in.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; padding: 0px;"&gt;Any help would be greatly appreciated.&amp;nbsp; I don't want to have to manually start ArcPro and sign in every 13 days.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; padding: 0px;"&gt;Buy the way, I called Technical support to ask how to "sign in" via my python script and I have not gotten an answer back yet.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; padding: 0px;"&gt;PLEASE HELP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE style="color: #000000; background-color: #ffffff; font-size: 7.2pt;"&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2020 20:34:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-fails-to-import-when-not-logged-into-host/m-p/553407#M43197</guid>
      <dc:creator>maryandrews</dc:creator>
      <dc:date>2020-04-09T20:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy fails to import when not logged into host machine</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-fails-to-import-when-not-logged-into-host/m-p/553408#M43198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mary. I had the same issue with getting logged out. Requiring authentication through Portal to use a Python library is beyond ridiculous. Fortunately there is a workaround. You need to use a dedicated ArcPro single use license on the machine. Good luck!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2020 12:11:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-fails-to-import-when-not-logged-into-host/m-p/553408#M43198</guid>
      <dc:creator>ShaneBuscher1</dc:creator>
      <dc:date>2020-04-10T12:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy fails to import when not logged into host machine</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-fails-to-import-when-not-logged-into-host/m-p/553409#M43199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to run ArcPy 3.6 from SQL Server's EXEC xp_cmdshell&amp;nbsp; &amp;nbsp;This always worked in Python 2.7.&amp;nbsp; It is an integrated process so won't work to run it from like Windows Scheduler.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I attempt to run ArcPy 36,&amp;nbsp;&amp;nbsp;'C:\Python3x\arcgispro-py3-clone\Python.exe F:\TEST\TEST.py'&amp;nbsp; is says license is not initialized.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I integrated this into the script and it connects to the license on my portal if run from CMD.&amp;nbsp; Also tried single use license from SQL Server or just "Pro"&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This connects to license server at cmd line.&amp;nbsp;&lt;/P&gt;&lt;P&gt;from arcgis.gis import GIS&lt;BR /&gt;gis=GIS(url="https://MyPortal/portal", username="MyUser", password="MyPass")&lt;/P&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2020 19:05:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-fails-to-import-when-not-logged-into-host/m-p/553409#M43199</guid>
      <dc:creator>SteveLewis</dc:creator>
      <dc:date>2020-08-27T19:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy fails to import when not logged into host machine</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-fails-to-import-when-not-logged-into-host/m-p/1064867#M61292</link>
      <description>&lt;P&gt;Never could get 3.6 working from SQL Server&amp;nbsp;&lt;SPAN&gt;xp_cmdshell&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;integrated process (licensing issue), back to using ArcPy 2.7&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2021 20:30:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-fails-to-import-when-not-logged-into-host/m-p/1064867#M61292</guid>
      <dc:creator>SteveLewis</dc:creator>
      <dc:date>2021-06-03T20:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy fails to import when not logged into host machine</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-fails-to-import-when-not-logged-into-host/m-p/1671263#M74968</link>
      <description>&lt;P&gt;Hello, in case it helps anyone else, you can set up another task that runs a script that automatically opens and closes Pro regularly, thus keeping the licence fresh. See example here:&amp;nbsp;&lt;A href="https://support.esri.com/en-us/knowledge-base/how-to-automate-arcgis-pro-launch-and-shutdown-to-refre-000033675" target="_blank"&gt;https://support.esri.com/en-us/knowledge-base/how-to-automate-arcgis-pro-launch-and-shutdown-to-refre-000033675&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;I have got this script to work successfully with my named user, but my main script with arcpy still can't access the licence when I'm not logged into the server with the service account.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Dec 2025 16:03:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-fails-to-import-when-not-logged-into-host/m-p/1671263#M74968</guid>
      <dc:creator>SarahGe</dc:creator>
      <dc:date>2025-12-08T16:03:42Z</dc:date>
    </item>
  </channel>
</rss>

