<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ArcGIS Server - problem publishing python script that uses urllib in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcgis-server-problem-publishing-python-script/m-p/15160#M1164</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After letting the publisher running idle for a while some errors shows up:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;High&amp;nbsp;&amp;nbsp;&amp;nbsp; Unresolved&amp;nbsp;&amp;nbsp;&amp;nbsp; 00178&amp;nbsp;&amp;nbsp;&amp;nbsp; Data: C:\Windows\bfsvc.exe, used by Script Script cannot be copied to the server&lt;/P&gt;&lt;P&gt;High&amp;nbsp;&amp;nbsp;&amp;nbsp; Unresolved&amp;nbsp;&amp;nbsp;&amp;nbsp; 24032&amp;nbsp;&amp;nbsp;&amp;nbsp; Data source used by Script Script is not registered with the server and will be copied to the server: C:\temp\arcgis\arcpy\ &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea what is going wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 11:46:39 GMT</pubDate>
    <dc:creator>MaxDemars</dc:creator>
    <dc:date>2016-06-15T11:46:39Z</dc:date>
    <item>
      <title>ArcGIS Server - problem publishing python script that uses urllib</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-server-problem-publishing-python-script/m-p/15159#M1163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have problem publishing a simple python script as geoprocessing service with ArcGIS Server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import urllib&lt;/P&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u = arcpy.GetParameter(0)&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;url = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fgeoegl.msp.gouv.qc.ca%2Fcgi-wms%2Fmapcache.fcgi%2Ftms%2F1.0.0%2Fcarte_gouv_qc_public%40EPSG_3857%2F" rel="nofollow" target="_blank"&gt;http://geoegl.msp.gouv.qc.ca/cgi-wms/mapcache.fcgi/tms/1.0.0/carte_gouv_qc_public@EPSG_3857/&lt;/A&gt;&lt;SPAN&gt;" + u&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;image = urllib.urlopen(url).read()&lt;/P&gt;&lt;P&gt;arcpy.SetParameter(1,image)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a simple proxy that uses urllib to redirect images. When I try to publish this script, ArcMap always go idle and finally crash. If I try to publish a script that do not import urllib, I have no problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone tell me if trying to publish a python script that import urllib into ArcGIS Server could make the Publisher crashing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 19:02:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-server-problem-publishing-python-script/m-p/15159#M1163</guid>
      <dc:creator>MaxDemars</dc:creator>
      <dc:date>2016-06-14T19:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server - problem publishing python script that uses urllib</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-server-problem-publishing-python-script/m-p/15160#M1164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After letting the publisher running idle for a while some errors shows up:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;High&amp;nbsp;&amp;nbsp;&amp;nbsp; Unresolved&amp;nbsp;&amp;nbsp;&amp;nbsp; 00178&amp;nbsp;&amp;nbsp;&amp;nbsp; Data: C:\Windows\bfsvc.exe, used by Script Script cannot be copied to the server&lt;/P&gt;&lt;P&gt;High&amp;nbsp;&amp;nbsp;&amp;nbsp; Unresolved&amp;nbsp;&amp;nbsp;&amp;nbsp; 24032&amp;nbsp;&amp;nbsp;&amp;nbsp; Data source used by Script Script is not registered with the server and will be copied to the server: C:\temp\arcgis\arcpy\ &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea what is going wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 11:46:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-server-problem-publishing-python-script/m-p/15160#M1164</guid>
      <dc:creator>MaxDemars</dc:creator>
      <dc:date>2016-06-15T11:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server - problem publishing python script that uses urllib</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-server-problem-publishing-python-script/m-p/15161#M1165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you looked at the following post:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/178346"&gt;geoprocessing service analysis/publish errors, trying to copy "data" that isn't needed&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks like if you change your import from:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;import urllib&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;from urllib import *&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this may resolve your problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:03:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-server-problem-publishing-python-script/m-p/15161#M1165</guid>
      <dc:creator>AnthonyPopp</dc:creator>
      <dc:date>2016-06-15T19:03:56Z</dc:date>
    </item>
  </channel>
</rss>

