<?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 import arcpy freezes python, restart fixes momentarily in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/import-arcpy-freezes-python-restart-fixes/m-p/558440#M43639</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have multiple python scripts that work on my SDE. Has been working well for some time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just recently I have noticed that if I &lt;EM&gt;import arcpy&lt;/EM&gt; in one python console, it works great, but if I then try to &lt;EM&gt;import arcpy&lt;/EM&gt; again in another window or another script, it just hangs, not throwing any errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only way I can get my machine to run any import arcpy again is to reboot completely.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am running Python 2.7.12&amp;nbsp;from&amp;nbsp;C:\Python27\ArcGIS10.3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone else seeing arcpy play up like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Jul 2017 00:02:21 GMT</pubDate>
    <dc:creator>BenVan_Kesteren1</dc:creator>
    <dc:date>2017-07-10T00:02:21Z</dc:date>
    <item>
      <title>import arcpy freezes python, restart fixes momentarily</title>
      <link>https://community.esri.com/t5/python-questions/import-arcpy-freezes-python-restart-fixes/m-p/558440#M43639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have multiple python scripts that work on my SDE. Has been working well for some time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just recently I have noticed that if I &lt;EM&gt;import arcpy&lt;/EM&gt; in one python console, it works great, but if I then try to &lt;EM&gt;import arcpy&lt;/EM&gt; again in another window or another script, it just hangs, not throwing any errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only way I can get my machine to run any import arcpy again is to reboot completely.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am running Python 2.7.12&amp;nbsp;from&amp;nbsp;C:\Python27\ArcGIS10.3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone else seeing arcpy play up like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2017 00:02:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/import-arcpy-freezes-python-restart-fixes/m-p/558440#M43639</guid>
      <dc:creator>BenVan_Kesteren1</dc:creator>
      <dc:date>2017-07-10T00:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: import arcpy freezes python, restart fixes momentarily</title>
      <link>https://community.esri.com/t5/python-questions/import-arcpy-freezes-python-restart-fixes/m-p/558441#M43640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you confirm that you are trying to use more than one IDE? And which ones are they?&amp;nbsp; (I found Pycharm a drain for some reason.&amp;nbsp; Pythonwin is clean as are IPython and Spyder IDEs...&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use several python IDE's all the time and have no issue importing arcpy in any.&lt;/P&gt;&lt;P&gt;Here is what may differ from your situation to see if you can narrow it down&lt;/P&gt;&lt;P&gt;I use&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;windows 10 fully updated&lt;/LI&gt;&lt;LI&gt;I do not access the same script in any of the IDEs&lt;/LI&gt;&lt;LI&gt;I use window 3.5.x with ArcGIS PRO 2.0,...&amp;nbsp; 2.7.12 with ArcMap 10.5.2... but I also use 3.5.x with ArcMap as well&lt;/LI&gt;&lt;LI&gt;I never use Arc*'s builtin python IDE&lt;/LI&gt;&lt;LI&gt;I have tons of ram in the computer and on my video cards.&lt;/LI&gt;&lt;LI&gt;I always use foreground geoprocessing&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I suspect you are going to say that you are working on a memory and video starved laptop.&amp;nbsp; If it is not a laptop, and using you are using arcmap, you are limited to 4 Gb of ram and everything else that you run will steal any ram above that and when that runs out, it will eat into the 4 Gb, often leaving you memory starved (you may see your hard drive light flashing wildly showing caching to disk during processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anymore details might get some other opinions and things to check on to hopefully rectify your situation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2017 04:48:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/import-arcpy-freezes-python-restart-fixes/m-p/558441#M43640</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-07-10T04:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: import arcpy freezes python, restart fixes momentarily</title>
      <link>https://community.esri.com/t5/python-questions/import-arcpy-freezes-python-restart-fixes/m-p/558442#M43641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan, you are correct on most fronts... &amp;nbsp;since I posted this morning I bit the bullet and upgraded from 10.3 to 10.5, which has indeed fixed my issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was using pycharm, but I then went bare basics by running python.exe, which had the same issue. I narrowed it down to the arcpy module, and it was only on this PC, not my other backup machine, so I thought a repair was in order, and like I said, I did the upgrade instead of a simple repair.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All seems to be working now, but I do thank you for your comments and time in replying to my question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2017 05:30:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/import-arcpy-freezes-python-restart-fixes/m-p/558442#M43641</guid>
      <dc:creator>BenVan_Kesteren1</dc:creator>
      <dc:date>2017-07-10T05:30:47Z</dc:date>
    </item>
  </channel>
</rss>

