<?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: Importing arcpy hanging for 30+ minutes in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/importing-arcpy-hanging-for-30-minutes/m-p/698457#M54161</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may want to try what tech support had&amp;nbsp;me do yesterday. It fun not fix my import in my&amp;nbsp;&lt;/P&gt;&lt;P&gt;IDE, but did help some with my import within the Desktop soft where. &amp;nbsp;I renamed the c:\python27\arcgis10.6 (10.4 for&amp;nbsp;you) and then dud a reoccur on the Desktop softwhere. &amp;nbsp;It rebuild the folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the only other thing I can think of, for me, is&amp;nbsp;if an OS or network update was pushed out. &amp;nbsp;It would not be the first time something like a MS update tweaked something with the GIS software.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Feb 2018 23:19:07 GMT</pubDate>
    <dc:creator>RebeccaStrauch__GISP</dc:creator>
    <dc:date>2018-02-09T23:19:07Z</dc:date>
    <item>
      <title>Importing arcpy hanging for 30+ minutes</title>
      <link>https://community.esri.com/t5/python-questions/importing-arcpy-hanging-for-30-minutes/m-p/698452#M54156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For context this is ArcGIS 10.4.1 for Desktop using arcpy python 2.7 module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I have been working all day messing around with arcpy to modify some shapefiles I have with no issues at all. About an hour ago, I ran the same script as I had previously been running, but this time instead of ~20 seconds to import arcpy, it wouldn't even import after 30+ minutes. I've tried restarting my IDE (PyCharm) and debugging the import code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I found is that at the line below, the import hangs and nothing happens after this line is reached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;envset &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;set&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;env &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; env &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; self&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;_gp&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;listEnvironments&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In the _base.py file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure if this is an issue on ESRI's side with validation of my license, but this problem has persisted for over an hour so far for what seems like no reason. I made absolutely no changes to my development environment and this is the first issue with importing since I got it to work about a month ago.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2018 21:15:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/importing-arcpy-hanging-for-30-minutes/m-p/698452#M54156</guid>
      <dc:creator>KyleBowman</dc:creator>
      <dc:date>2018-02-09T21:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Importing arcpy hanging for 30+ minutes</title>
      <link>https://community.esri.com/t5/python-questions/importing-arcpy-hanging-for-30-minutes/m-p/698453#M54157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just curious, any chance you upgrade to Pro 2.1.1, or hat you are using a borrowed/offline license (for desktop or pro)? &amp;nbsp; Long shot, but I've seen several issues with import arcpy suddenly being slow. &amp;nbsp;Seems like one of those to items might be involved. &amp;nbsp;I have a support ticket for mine. &amp;nbsp;My notes are found&amp;nbsp;&lt;A href="https://community.esri.com/message/749008-re-arcpy-import-is-really-slow-2-minutes"&gt;https://community.esri.com/message/749008-re-arcpy-import-is-really-slow-2-minutes&lt;/A&gt;&amp;nbsp; in the comments.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2018 21:41:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/importing-arcpy-hanging-for-30-minutes/m-p/698453#M54157</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2018-02-09T21:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Importing arcpy hanging for 30+ minutes</title>
      <link>https://community.esri.com/t5/python-questions/importing-arcpy-hanging-for-30-minutes/m-p/698454#M54158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, I read your thread earlier in search of a solution to the issue. AFAIK, my license is a single use license for ArcGIS for Desktop Basic version 10.4 and is a permanent license (check the below image)&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/396270_pastedImage_1.png" style="width: 620px; height: 473px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's just odd to me because it had been working all day and as I said all of the last month and just randomly stopped. I just removed a new import I had previously been using for arcpy.mapping even though that import was never even reached in my code, and the import for arcpy itself continues to hang.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2018 21:49:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/importing-arcpy-hanging-for-30-minutes/m-p/698454#M54158</guid>
      <dc:creator>KyleBowman</dc:creator>
      <dc:date>2018-02-09T21:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: Importing arcpy hanging for 30+ minutes</title>
      <link>https://community.esri.com/t5/python-questions/importing-arcpy-hanging-for-30-minutes/m-p/698455#M54159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Within your IDE or the arcmap python window... you are saying that this doesn't even work without issue?&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;import arcpy
arcpy.gp.listEnvironments()
['autoCommit', 'XYResolution', 'processingServerUser', 'XYDomain',
 'processingServerPassword', 'scratchWorkspace', 'cartographicPartitions',
 'terrainMemoryUsage', 'MTolerance', 'compression', 'coincidentPoints',
 'randomGenerator', 'outputCoordinateSystem', 'rasterStatistics', 'ZDomain',
 'transferDomains', 'S100FeatureCatalogueFile', 'maintainAttachments',
 'resamplingMethod', 'snapRaster', 'cartographicCoordinateSystem', 'configKeyword',
 'outputZFlag', 'qualifiedFieldNames', 'tileSize', 'parallelProcessingFactor', 'pyramid',
 'referenceScale', 'processingServer', 'extent', 'XYTolerance', 'tinSaveVersion',
 'nodata', 'MDomain', 'cellSize', 'outputZValue', 'outputMFlag', 'geographicTransformations', 'ZResolution', 'mask', 'maintainSpatialIndex', 'preserveGlobalIds', 'workspace',
 'MResolution', 'baDataSource', 'ZTolerance', 'scratchGDB', 'scratchFolder',
 'packageWorkspace', 'scriptWorkspace', 'addOutputsToMap']‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 05:23:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/importing-arcpy-hanging-for-30-minutes/m-p/698455#M54159</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-12T05:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: Importing arcpy hanging for 30+ minutes</title>
      <link>https://community.esri.com/t5/python-questions/importing-arcpy-hanging-for-30-minutes/m-p/698456#M54160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oddly enough, this does indeed work. However importing arcpy via my IDE (using a virtual environment with a .pth file), or even the arcgis python install python executable it will not work...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="396271" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/396271_pastedImage_1.png" style="width: 620px; height: 336px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nothing at all has been touched in my python install.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my zzArcGIS.pth file which has also not been modified at all and matches up with all directories listed.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;# zzArcGIS.pth 
# Path to ArcGIS arcpy modules
# Place in folder ...\&amp;lt;path to your virtual environment&amp;gt;\lib\site-packages\
C:\\Windows\\SYSTEM32\\python27.zip
C:\\Python27\\ArcGIS10.4\\DLLs
C:\\Python27\\ArcGIS10.4\\lib
C:\\Python27\\ArcGIS10.4\\lib\\plat-win
C:\\Python27\\ArcGIS10.4\\lib\\lib-tk
C:\\Python27\\ArcGIS10.4
C:\\Python27\\ArcGIS10.4\\lib\\site-packages
C:\\Program Files (x86)\\ArcGIS\\Desktop10.4\\bin
C:\\Program Files (x86)\\ArcGIS\\Desktop10.4\\ArcPy
C:\\Program Files (x86)\\ArcGIS\\Desktop10.4\\ArcToolBox\\Scripts&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 05:24:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/importing-arcpy-hanging-for-30-minutes/m-p/698456#M54160</guid>
      <dc:creator>KyleBowman</dc:creator>
      <dc:date>2021-12-12T05:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Importing arcpy hanging for 30+ minutes</title>
      <link>https://community.esri.com/t5/python-questions/importing-arcpy-hanging-for-30-minutes/m-p/698457#M54161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may want to try what tech support had&amp;nbsp;me do yesterday. It fun not fix my import in my&amp;nbsp;&lt;/P&gt;&lt;P&gt;IDE, but did help some with my import within the Desktop soft where. &amp;nbsp;I renamed the c:\python27\arcgis10.6 (10.4 for&amp;nbsp;you) and then dud a reoccur on the Desktop softwhere. &amp;nbsp;It rebuild the folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the only other thing I can think of, for me, is&amp;nbsp;if an OS or network update was pushed out. &amp;nbsp;It would not be the first time something like a MS update tweaked something with the GIS software.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2018 23:19:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/importing-arcpy-hanging-for-30-minutes/m-p/698457#M54161</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2018-02-09T23:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: Importing arcpy hanging for 30+ minutes</title>
      <link>https://community.esri.com/t5/python-questions/importing-arcpy-hanging-for-30-minutes/m-p/698458#M54162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't have 10.4, but the pth specs are listed here (you can change version)&lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/arcmap/latest/analyze/python/importing-arcpy.htm"&gt;http://desktop.arcgis.com/en/arcmap/latest/analyze/python/importing-arcpy.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;although they look fine, but I have no clue about virtualized environment use... sorry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2018 23:36:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/importing-arcpy-hanging-for-30-minutes/m-p/698458#M54162</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-02-09T23:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: Importing arcpy hanging for 30+ minutes</title>
      <link>https://community.esri.com/t5/python-questions/importing-arcpy-hanging-for-30-minutes/m-p/698459#M54163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The issue seems to have fixed itself and how it did is unknown. Thanks everyone for the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 20:50:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/importing-arcpy-hanging-for-30-minutes/m-p/698459#M54163</guid>
      <dc:creator>KyleBowman</dc:creator>
      <dc:date>2018-02-12T20:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: Importing arcpy hanging for 30+ minutes</title>
      <link>https://community.esri.com/t5/python-questions/importing-arcpy-hanging-for-30-minutes/m-p/698460#M54164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mine seems to be working better on one machine, but now is having an issue on another when I upgraded the IDE software.&amp;nbsp; I have a ticket in with the IDE tech support to see if it is maybe anything strange things happen witht hat update (which uses Ellipse behind the scenes I believe).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit:&amp;nbsp; I'll just add this in case it help others (longer info in another thread).&amp;nbsp; If you have issues, look to see if you have the&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-bare" href="https://support.esri.com/en/Products/Desktop/arcgis-desktop/arcmap/10-6#downloads?id=7521" title="https://support.esri.com/en/Products/Desktop/arcgis-desktop/arcmap/10-6#downloads?id=7521"&gt;https://support.esri.com/en/Products/Desktop/arcgis-desktop/arcmap/10-6#downloads?id=7521&lt;/A&gt;&amp;nbsp; &amp;nbsp;patch(es) installed.&amp;nbsp; IF so, uninstall (at least temporarily) and reboot and see if that helps.&amp;nbsp; It's the Flexara patch...having to do with the license manager.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 21:00:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/importing-arcpy-hanging-for-30-minutes/m-p/698460#M54164</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2018-02-12T21:00:19Z</dc:date>
    </item>
  </channel>
</rss>

