I'm trying to publish a geoprocessing service (10.2.1) that will be used to generate a PDF from a webmap using an MXD layout as a template.
The problem is that if I try to import any module besides
arcpy, the publishing just runs forever until I kill it.
For example, I tried to
import os, and it just hangs while it's publishing. When I remove
import os, it publishes just fine. Same thing happens with any other module I try to import.
Any idea what's wrong here?
I found this thread that has the exact same problem, but there wasn't really a solution:
I tried @KHibma's suggestion, and created a "script" with only
import os, and no parameters at all. Of course it runs with no errors, but the same thing happens when I try to publish the geoprocessing tool. It just hangs until I decide to kill it.
I also did the same thing, but with only
import arcpy, and it publishes fine.