<?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: Problem with Python execution using arcpy - ArcGIS Server in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/problem-with-python-execution-using-arcpy-arcgis/m-p/614519#M23615</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I deleted all .pyc files from "&lt;EM style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;D:\Program Files\Python27\ArcGISx6410.3\Lib&lt;/EM&gt;" folder and the python scripts that call arcpy back to work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Jun 2016 17:04:19 GMT</pubDate>
    <dc:creator>João_PauloBraga1</dc:creator>
    <dc:date>2016-06-03T17:04:19Z</dc:date>
    <item>
      <title>Problem with Python execution using arcpy - ArcGIS Server</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/problem-with-python-execution-using-arcpy-arcgis/m-p/614516#M23612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Until yesterday, all my published geoprocessing services and python scripts were working fine.&lt;/P&gt;&lt;P&gt;All of a sudden, during the execution of a script that has lots of calls of geoprocessing services, all python scripts stopped working. After this, every python execution returns the message above:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;esriJobMessageTypeError: Traceback (most recent call last): File "...main.py", line 4, in import arcpy&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;File "d:\program files\arcgis\server\arcpy\arcpy\__init__.py", line 24, in &amp;lt;module&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;from arcpy.toolbox import *&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;File "d:\program files\arcgis\server\arcpy\arcpy\toolbox.py", line 15, in &amp;lt;module&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;from .ddd import ASCII3DToFeatureClass as ASCII3DToFeatureClass_3d&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;File "d:\program files\arcgis\server\arcpy\arcpy\ddd.py", line 23, in &amp;lt;module&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;from arcpy.arcobjects.arcobjectconversion import convertArcObjectToPythonObject&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;File "d:\program files\arcgis\server\arcpy\arcpy\arcobjects\__init__.py", line 16, in &amp;lt;module&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;from arcobjects import *&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;File "d:\program files\arcgis\server\arcpy\arcpy\arcobjects\arcobjects.py", line 17, in &amp;lt;module&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;import mixins&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;File "d:\program files\arcgis\server\arcpy\arcpy\arcobjects\mixins.py", line 15, in &amp;lt;module&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;import collections&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;File "D:\Program Files\Python27\ArcGISx6410.3\Lib\collections.py", line 10, in &amp;lt;module&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;from keyword import iskeyword as _iskeyword&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;ImportError: cannot import name iskeyword&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking for some evidence, I found out that in the exact moment the script stopped working, the windows event viewer generated this log message&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;Windows successfully diagnosed a low virtual memory condition. The following programs consumed the most virtual memory: ArcSOC.exe (21672) consumed 2420084736 bytes, vapm.exe (3748) consumed 2265391104 bytes, and ArcGISPortal.exe (1532) consumed 926019584 bytes.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May this be the source of the problem? Maybe arcpy has been corrupted or something like that.&lt;/P&gt;&lt;P&gt;Can you help me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2016 20:00:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/problem-with-python-execution-using-arcpy-arcgis/m-p/614516#M23612</guid>
      <dc:creator>João_PauloBraga1</dc:creator>
      <dc:date>2016-06-02T20:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Python execution using arcpy - ArcGIS Server</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/problem-with-python-execution-using-arcpy-arcgis/m-p/614517#M23613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So just initial thoughts, trust the Windows Event Viewer first and figure out if you do have a resource problem on that machine.&amp;nbsp; You have an ArcSOC process using 2.4 GB, some vapm.exe process, (Kaspersky Anti Virus from a quick Google search) using 2.3 GB, and Portal using 9.2 GB.&amp;nbsp; I'm surprised at Portal using that much memory, and is the ArcSOC process a service?&amp;nbsp; You can turn on the Command Line column to check.&amp;nbsp; Anyway, take a look at the available memory on the machine, (both physical and swap/virtual memory), and see if those are the constraints on the machine.&amp;nbsp; To check the virtual memory, look at the Commited ration in the Task Manager:&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/206749_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Under your System &amp;gt; Advanced system settings &amp;gt; Advanced &amp;gt; Performance &amp;gt; Settings &amp;gt; Advanced &amp;gt; Virtual Memory, select Change and see if it's set to a Custom or Maximum Size, or if it's automatically managed by the system.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jun 2016 16:41:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/problem-with-python-execution-using-arcpy-arcgis/m-p/614517#M23613</guid>
      <dc:creator>JonathanQuinn</dc:creator>
      <dc:date>2016-06-03T16:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Python execution using arcpy - ArcGIS Server</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/problem-with-python-execution-using-arcpy-arcgis/m-p/614518#M23614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;About the memory problem I already headed for the infraestructure departament. Thank you for the tips.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jun 2016 17:01:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/problem-with-python-execution-using-arcpy-arcgis/m-p/614518#M23614</guid>
      <dc:creator>João_PauloBraga1</dc:creator>
      <dc:date>2016-06-03T17:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Python execution using arcpy - ArcGIS Server</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/problem-with-python-execution-using-arcpy-arcgis/m-p/614519#M23615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I deleted all .pyc files from "&lt;EM style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;D:\Program Files\Python27\ArcGISx6410.3\Lib&lt;/EM&gt;" folder and the python scripts that call arcpy back to work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jun 2016 17:04:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/problem-with-python-execution-using-arcpy-arcgis/m-p/614519#M23615</guid>
      <dc:creator>João_PauloBraga1</dc:creator>
      <dc:date>2016-06-03T17:04:19Z</dc:date>
    </item>
  </channel>
</rss>

