Model builder 2 Python Script 2 Task Scheduler

907
3
05-21-2010 11:56 AM
SteveSawyer
New Contributor II
I have had great success with Model Builder.
Using the Export into Python Script function was easy too. 
I figured I'd shoot the moon and set up the Task Scheduler even...OK., Server 2005 OS...
    
Much to my surprise, the event fired off and kinda worked......LOL

So, the python error message read unable to see the toolbox?  Same server and everything?
     Anyone out here know what these means??

gp.AddToolbox("C:/Program Files (x86)/ArcGIS/ArcToolbox/Toolboxes/Data Management Tools.tbx")
RuntimeError: Toolbox C:/Program Files (x86)/ArcGIS/ArcToolbox/Toolboxes/Data Management Tools.tbx does not exist

SteveS
0 Kudos
3 Replies
JoelSmith1
New Contributor III
Do you have ArcGIS Desktop installed on the GIS Server? If so, is it installed in the typical C: directory? If you don't have ArcGIS Desktop installed, installing it should resolve the issue. If you do have it installed, check to see which directory it was installed on and change you're script code accordingly.

Hope that helps!
Joel
0 Kudos
AustinRoelfs
New Contributor
Can you give an example of what needs changed in the code?
0 Kudos
ChrisSnyder
Regular Contributor III
Could it be that the machine that you developed the .py script is 64 bit OS and uses the path:

C:/Program Files (x86)/ArcGIS/ArcToolbox/Toolboxes/Data Management Tools.tbx

while your server machine is 32 bit OS and uses the path

C:/Program Files/ArcGIS/ArcToolbox/Toolboxes/Data Management Tools.tbx
0 Kudos