I have problem publishing this simple python script as geoprocessing service with ArcGIS Server.
import urllib
import arcpy
u = arcpy.GetParameter(0)
url = "http://geoegl.msp.gouv.qc.ca/cgi-wms/mapcache.fcgi/tms/1.0.0/carte_gouv_qc_public@EPSG_3857/" + u
image = urllib.urlopen(url).read()
arcpy.SetParameter(1,image)
This is a simple proxy that uses urllib to redirect images. When I try to publish this script, ArcMap always go idle for a long long time. I think the cause of the problem is urllib
. If I try to publish a script that do not import urllib
, I have no problem.
After a long idle time, the Publisher returns the following errors:
High Unresolved 00178 Data: C:\Windows\bfsvc.exe, used by Script Script cannot be copied to the server
High Unresolved 24032 Data source used by Script Script is not registered with the server and will be copied to the server: C:\temp\arcgis\arcpy\
Can someone tell me why trying to publish a python script that import urllib
into ArcGIS Server could return those errors?