1

I created a new toolbox with a script tool that successfully works for me when I run it. I have it saved in a shared folder that my coworkers can access but when they try to run it, it doesn't work. One coworker gets an error message that says they can't locate the Python script even though when they checked the properties it showed the correct file and when another coworker runs it, it stuck in a loop and nothing happens.

I have no idea why it works for me but no one else.

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
asked Oct 12, 2018 at 15:55
3
  • 4
    Are you sure there are no hardcoded file path relative to your setting (like network drive letter) in your script or toolbox or that the script need to write on an emplacement where your coworker doesn't have proper right ? Commented Oct 12, 2018 at 16:23
  • 1
    What you might the "p" drive (or what ever letter you have used for your network drive) may not be the same for other users... For example they access the same location but call it the z drive. Commented Oct 12, 2018 at 17:00
  • What is the precise wording of the error? I think you should try writing a simple test tool that illustrates the same error so that you can present that code here. Commented Oct 12, 2018 at 19:39

1 Answer 1

2

The python script has to be pathed to the shared folder that the geoprocessing tool resides in, not by the partition. For instance if you have source script set to C:/myscripts/python then when the tool launches and tries to find the script that its sourced to, so it can run it will look on that users computer for that path C:/myscripts/python. And then of course the path will not exist. To fix this, on your PC in ArcCatalog, right click the tool, go to properties, then Source tab. Change the path for the script to the network path. Example //yourcomputername/C$(orpartitionletter)/sharedfolder/pathtoscript. Then save the tool. This will allow other users to run the tool in their instance of ArcCatalog, because it will use the shared folder that you created. Also if the script relies on any local folders they will need to be repathed to the network path pattern referenced above.

answered Oct 12, 2018 at 18:59
1
  • Thanks, I looked at my links and I think they should match everyone else's. Next week I will check my coworkers computers, maybe that will help me identify what isn't matching up. Commented Oct 12, 2018 at 19:47

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.