AnsweredAssumed Answered

Importing some python modules in script cause problem when publishing to arcgis server

Question asked by DemersM on Jul 20, 2016
Latest reply on Jul 28, 2016 by DemersM

My organization just been equiped with ArcMap and ArcGIS Server and I already encountered problem when trying to publish python script as geoprocessing services when some python modules are imported

 

Those problematic python modules I have encoutered so far are urllib2 and uuid

 

If you do

 

import urllib2 or import uuid , your script cannot published on the server, the publishing tool go idle and you have to kill the process.

 

But, if you do from urllib2 import * or from uuid import * , your script can be published.

This workaround can be problematic if classes or method in two modules have the same name.

 

Is this a problem ESRI is aware of? Why those particular modules are causing this error?

Outcomes