<?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 ArcMap copying the default Python libraries like smtp.py while publishing GPService in \v101\&amp;lt;toolbox_name&amp;gt; folder. in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcmap-copying-the-default-python-libraries-like/m-p/124245#M9662</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;BR /&gt;I am facing a strange issue since last 2 days. I am trying a publish a GP service containing a simple code to send an email to the provided userid using smtplib. The tool is running successfully and the email is being sent.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;After the tool is published, when I am opening the folder&lt;/P&gt;&lt;P&gt;C:\arcgisserver\directories\arcgissystem\arcgisinput\&amp;lt;folder name&amp;gt;\&amp;lt;service_name&amp;gt;.GPServer\extracted&lt;BR /&gt;strangely I am finding a tilingservice.xml file.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;And when I am opening the folder:&lt;BR /&gt;C:\arcgisserver\directories\arcgissystem\arcgisinput\&amp;lt;folder name&amp;gt;\&amp;lt;service_name&amp;gt;.GPServer\extracted\v101\&amp;lt;toolbox_name&amp;gt;&lt;BR /&gt;I found that smtplib.py has been copied !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried publishing the service from a ArcMap in a different server to mine this issue is not getting reproduced. But when I am publishing my from ArcMap in my laptop to any other server the same issue is getting reproduced. &lt;BR /&gt;I have tried deleting the Python27 folder and repairing it but this does not help. &lt;BR /&gt;Any help or leads is really appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Shreya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Apr 2016 05:07:06 GMT</pubDate>
    <dc:creator>ShreyaChatterjee</dc:creator>
    <dc:date>2016-04-18T05:07:06Z</dc:date>
    <item>
      <title>ArcMap copying the default Python libraries like smtp.py while publishing GPService in \v101\&lt;toolbox_name&gt; folder.</title>
      <link>https://community.esri.com/t5/python-questions/arcmap-copying-the-default-python-libraries-like/m-p/124245#M9662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;BR /&gt;I am facing a strange issue since last 2 days. I am trying a publish a GP service containing a simple code to send an email to the provided userid using smtplib. The tool is running successfully and the email is being sent.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;After the tool is published, when I am opening the folder&lt;/P&gt;&lt;P&gt;C:\arcgisserver\directories\arcgissystem\arcgisinput\&amp;lt;folder name&amp;gt;\&amp;lt;service_name&amp;gt;.GPServer\extracted&lt;BR /&gt;strangely I am finding a tilingservice.xml file.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;And when I am opening the folder:&lt;BR /&gt;C:\arcgisserver\directories\arcgissystem\arcgisinput\&amp;lt;folder name&amp;gt;\&amp;lt;service_name&amp;gt;.GPServer\extracted\v101\&amp;lt;toolbox_name&amp;gt;&lt;BR /&gt;I found that smtplib.py has been copied !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried publishing the service from a ArcMap in a different server to mine this issue is not getting reproduced. But when I am publishing my from ArcMap in my laptop to any other server the same issue is getting reproduced. &lt;BR /&gt;I have tried deleting the Python27 folder and repairing it but this does not help. &lt;BR /&gt;Any help or leads is really appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Shreya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2016 05:07:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcmap-copying-the-default-python-libraries-like/m-p/124245#M9662</guid>
      <dc:creator>ShreyaChatterjee</dc:creator>
      <dc:date>2016-04-18T05:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: ArcMap copying the default Python libraries like smtp.py while publishing GPService in \v101\&lt;toolbox_name&gt; folder.</title>
      <link>https://community.esri.com/t5/python-questions/arcmap-copying-the-default-python-libraries-like/m-p/124246#M9663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've had this problem, where the publisher takes forever to publish a simple script, then I found it has imported lots of builtin python modules to the gp service folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I managed to workaround it though, by changing my imports so only the functions I needed were imported. E.g. change "import module" to "from module import a, b, c, etc."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://gis.stackexchange.com/questions/75138/how-to-publish-gp-service-with-importing-of-numpy-in-arcgis-for-server-10-1"&gt;This post&lt;/A&gt; pointed me in the right direction.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2016 09:05:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcmap-copying-the-default-python-libraries-like/m-p/124246#M9663</guid>
      <dc:creator>JonMorris2</dc:creator>
      <dc:date>2016-04-18T09:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: ArcMap copying the default Python libraries like smtp.py while publishing GPService in \v101\&lt;toolbox_name&gt; folder.</title>
      <link>https://community.esri.com/t5/python-questions/arcmap-copying-the-default-python-libraries-like/m-p/124247#M9664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A href="https://community.esri.com/migrated-users/103073"&gt;Jon Morris&lt;/A&gt; !&lt;BR /&gt;Thanks for replying!&lt;BR /&gt;As suggested by you I made the following amendments to the code:&lt;/P&gt;&lt;P&gt;from arcpy import *&lt;BR /&gt;from smtplib import SMTP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and it worked! &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;BR /&gt;Shreya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2016 12:39:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcmap-copying-the-default-python-libraries-like/m-p/124247#M9664</guid>
      <dc:creator>ShreyaChatterjee</dc:creator>
      <dc:date>2016-04-18T12:39:49Z</dc:date>
    </item>
  </channel>
</rss>

