Quantcast
Channel: Forums - Geoprocessing
Viewing all articles
Browse latest Browse all 1952

Tool executes from Toolbox but not from REST endpoint

$
0
0
I have a tool in a geoprocessing service that executes from Toolbox, but not from the REST endpoint on 10.1. In AGS 10.0, it executes fine from either. The problem is "No module named PParams". This is just a module in the same folder as the Tool (PParams.py and PParams.pyc).

the code to import it is just
Code:

from PParams import pparams
I did a "print sys.path" to check and that folder is in sys.path.

Any ideas why it cannot find the module when run through the REST endpoint?
THANKS!!!!!!

Viewing all articles
Browse latest Browse all 1952

Trending Articles