rdforbes

What is needed to run a Python script as a scheduled task on my ArcSDE server?

Discussion created by rdforbes on Dec 20, 2012
Latest reply on Dec 24, 2012 by modybsystematics-co-il-esridist
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?  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.  When I try to manually run the script on the ArcSDE server, I get the "ImportError: No module named arcpy" message.  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.  My infrastructure guys are concerned about having to load all this extra software on our main GIS data server just to run a script.

Outcomes