Select to view content in your preferred language

Model builder 2 Python Script 2 Task Scheduler

1172
3
05-21-2010 11:56 AM
SteveSawyer
Deactivated User
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
Occasional Contributor
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
Emerging Contributor
Can you give an example of what needs changed in the code?
0 Kudos
ChrisSnyder
Honored Contributor
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