<?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 What is needed to run a Python script as a scheduled task on my ArcSDE server? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/what-is-needed-to-run-a-python-script-as-a/m-p/548526#M42805</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What is needed to run a Python script as a scheduled task on a server that currently only has ArcSDE 10 and Python 2.6 installed on it?&amp;nbsp; Since the ArcSDE command "sdelocator" is no longer available starting with ArcSDE 10, I created a model on my ArcGIS 10 desktop PC and exported it to a python script to rebuild my ArcSDE-based locators.&amp;nbsp; When I try to manually run the script on the ArcSDE server, I get the "ImportError: No module named arcpy" message.&amp;nbsp; The solution (according to the help information) is to add a Desktop10.pth file containing references (paths) to the Desktop10.0\arcpy and Desktop10.0\bin folders into the C:\python26\Lib\site-packages folder but in order to access the arcpy and bin folders, it seems that will I also need to install Desktop 10 on my ArcSDE server in order to access these folders.&amp;nbsp; My infrastructure guys are concerned about having to load all this extra software on our main GIS data server just to run a script.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Dec 2012 18:01:29 GMT</pubDate>
    <dc:creator>RalphForbes</dc:creator>
    <dc:date>2012-12-20T18:01:29Z</dc:date>
    <item>
      <title>What is needed to run a Python script as a scheduled task on my ArcSDE server?</title>
      <link>https://community.esri.com/t5/python-questions/what-is-needed-to-run-a-python-script-as-a/m-p/548526#M42805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What is needed to run a Python script as a scheduled task on a server that currently only has ArcSDE 10 and Python 2.6 installed on it?&amp;nbsp; Since the ArcSDE command "sdelocator" is no longer available starting with ArcSDE 10, I created a model on my ArcGIS 10 desktop PC and exported it to a python script to rebuild my ArcSDE-based locators.&amp;nbsp; When I try to manually run the script on the ArcSDE server, I get the "ImportError: No module named arcpy" message.&amp;nbsp; The solution (according to the help information) is to add a Desktop10.pth file containing references (paths) to the Desktop10.0\arcpy and Desktop10.0\bin folders into the C:\python26\Lib\site-packages folder but in order to access the arcpy and bin folders, it seems that will I also need to install Desktop 10 on my ArcSDE server in order to access these folders.&amp;nbsp; My infrastructure guys are concerned about having to load all this extra software on our main GIS data server just to run a script.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Dec 2012 18:01:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/what-is-needed-to-run-a-python-script-as-a/m-p/548526#M42805</guid>
      <dc:creator>RalphForbes</dc:creator>
      <dc:date>2012-12-20T18:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: What is needed to run a Python script as a scheduled task on my ArcSDE server?</title>
      <link>https://community.esri.com/t5/python-questions/what-is-needed-to-run-a-python-script-as-a/m-p/548527#M42806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What is needed to run a Python script as a scheduled task on a server that currently only has ArcSDE 10 and Python 2.6 installed on it?&amp;nbsp; Since the ArcSDE command "sdelocator" is no longer available starting with ArcSDE 10, I created a model on my ArcGIS 10 desktop PC and exported it to a python script to rebuild my ArcSDE-based locators.&amp;nbsp; When I try to manually run the script on the ArcSDE server, I get the "ImportError: No module named arcpy" message.&amp;nbsp; The solution (according to the help information) is to add a Desktop10.pth file containing references (paths) to the Desktop10.0\arcpy and Desktop10.0\bin folders into the C:\python26\Lib\site-packages folder but in order to access the arcpy and bin folders, it seems that will I also need to install Desktop 10 on my ArcSDE server in order to access these folders.&amp;nbsp; My infrastructure guys are concerned about having to load all this extra software on our main GIS data server just to run a script.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you have ArcGIS Server installed on the SDE server, it should have arcpy in its install folder.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Dec 2012 19:58:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/what-is-needed-to-run-a-python-script-as-a/m-p/548527#M42806</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2012-12-20T19:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: What is needed to run a Python script as a scheduled task on my ArcSDE server?</title>
      <link>https://community.esri.com/t5/python-questions/what-is-needed-to-run-a-python-script-as-a/m-p/548528#M42807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Ralph,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1.&amp;nbsp; Share the following directory on your ArcGIS Desktop server:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;c:\Program Files\ArcGIS\Desktop10.0&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2.&amp;nbsp; Copy the Desktop10.pth to the python26\Lib\site-packages on your ArcSDE server&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3.&amp;nbsp; Edit the paths in the Desktop10.pth file to include UNC paths.&amp;nbsp; Ex:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;\\servername\Program Files\ArcGIS\Desktop10.0\arcpy &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;\\servername\Program Files\ArcGIS\Desktop10.0\bin&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;or, if you only shared the Desktop10.0 folder and not the Program Files folder it would be:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;\\servername\Desktop10.0\arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;\\servername\Desktop10.0\bin&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;4.&amp;nbsp; Create an environment variable on your ArcSDE server called PYTHONPATH and set this to the path of the Desktop10.pth file on your ArcSDE server&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Check if you are able to run the script on your ArcSDE server after these steps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2012 10:56:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/what-is-needed-to-run-a-python-script-as-a/m-p/548528#M42807</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2012-12-21T10:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: What is needed to run a Python script as a scheduled task on my ArcSDE server?</title>
      <link>https://community.esri.com/t5/python-questions/what-is-needed-to-run-a-python-script-as-a/m-p/548529#M42808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you both for the replies.&amp;nbsp; I do not have ArcGIS Server installed on my ArcSDE server and I am still getting the "ImportError: No module named arcpy" error message after trying JSkinn3's solution.&amp;nbsp; Our network guys really do not care for shared folders anyway.&amp;nbsp; I think my best bet is to have Desktop 10 installed on the server.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2012 11:39:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/what-is-needed-to-run-a-python-script-as-a/m-p/548529#M42808</guid>
      <dc:creator>RalphForbes</dc:creator>
      <dc:date>2012-12-21T11:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: What is needed to run a Python script as a scheduled task on my ArcSDE server?</title>
      <link>https://community.esri.com/t5/python-questions/what-is-needed-to-run-a-python-script-as-a/m-p/548530#M42809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yep.&amp;nbsp; That is the way that I have done it for years.&amp;nbsp; I install ArcGIS Desktop on the server that runs the script;&amp;nbsp; That way, the library that is required for geoprocessing exists where it is needed.&amp;nbsp; In a pooled ArcGIS license environment (using license manager instead of a local license), an ArcGIS Desktop license is only taken while the script is using it.&amp;nbsp; There are even geoprocessing tools for obtaining licenses and handling the case in which a license is not available.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Dec 2012 14:24:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/what-is-needed-to-run-a-python-script-as-a/m-p/548530#M42809</guid>
      <dc:creator>IvanBrown</dc:creator>
      <dc:date>2012-12-24T14:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: What is needed to run a Python script as a scheduled task on my ArcSDE server?</title>
      <link>https://community.esri.com/t5/python-questions/what-is-needed-to-run-a-python-script-as-a/m-p/548531#M42810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Why no running the script on the desktop machine and make it connect to the database on the remote machine?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That way you do not have to install anything and the script will share the desktop license in case somebody else using it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mody&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Dec 2012 04:03:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/what-is-needed-to-run-a-python-script-as-a/m-p/548531#M42810</guid>
      <dc:creator>ModyBuchbinder</dc:creator>
      <dc:date>2012-12-25T04:03:29Z</dc:date>
    </item>
  </channel>
</rss>

