<?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: python console fails in Python Snippets Questions</title>
    <link>https://community.esri.com/t5/python-snippets-questions/python-console-fails/m-p/845767#M526</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you say python console, do you mean the python window in ArcMap and/or ArcCatalog or the console window in your python ide?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Nov 2020 22:24:24 GMT</pubDate>
    <dc:creator>JoeBorgione</dc:creator>
    <dc:date>2020-11-05T22:24:24Z</dc:date>
    <item>
      <title>python console fails</title>
      <link>https://community.esri.com/t5/python-snippets-questions/python-console-fails/m-p/845766#M525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;FYI,&amp;nbsp;I did have a respectable early stage Geonet profile going, but had to abandon that profile in switch over to this account.&amp;nbsp; I&amp;nbsp;am good with Python and am experienced in ArcMap (not yet Pro - thinking I should).&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;An major ESRI bug that I'm sick of working around:&amp;nbsp;&amp;nbsp;Why does the Python console basically stop working randomly?&amp;nbsp; For instance, I start saving file paths, variables, mxd objects and running simple arcpy functions like:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;FeatureClassToFeatureClass&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fp_in&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; fp_out&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; feat_name&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;And nothing happens.&amp;nbsp; Python doesn't think, nothing processes, it just offers up a new line in the interpreter.&amp;nbsp; WHY!!! I have to restart the program, warm up all my directories again, all so I get arcpy related stuff to function for another hour or number of function calls and then it stops working again.&lt;/P&gt;&lt;P&gt;Another example in the same vein&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;mxd &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;mapping&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;MapDocument&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"CURRENT"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# it runs almost instantly&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# see what's there&lt;/SPAN&gt;
mxd
&lt;SPAN class="comment token"&gt;# should say: &lt;/SPAN&gt;
&lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;MapDocument object at &lt;SPAN class="number token"&gt;0x1b6c6c30&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0x1bc4fb40&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;#actually says:&lt;/SPAN&gt;
RUNTIME ERROR&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In both instances, the FeatureClassTo... and arcpy.mapping... it will work initially and for a bit.&amp;nbsp; And then just stop.&amp;nbsp; Like riding a bike and then the chain comes off the sprocket.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's killing my productivity and forcing me to undesirable GUI solutions or scripting for little stuff that should be in the console.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help, please!?&lt;/P&gt;&lt;P&gt;Zach&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:21:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/python-console-fails/m-p/845766#M525</guid>
      <dc:creator>ZacharyUhlmann1</dc:creator>
      <dc:date>2021-12-12T10:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: python console fails</title>
      <link>https://community.esri.com/t5/python-snippets-questions/python-console-fails/m-p/845767#M526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you say python console, do you mean the python window in ArcMap and/or ArcCatalog or the console window in your python ide?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2020 22:24:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/python-console-fails/m-p/845767#M526</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2020-11-05T22:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: python console fails</title>
      <link>https://community.esri.com/t5/python-snippets-questions/python-console-fails/m-p/845768#M527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ArcMap Python Console.&amp;nbsp; When the interpreter breaks like that, it won't even import packages.&amp;nbsp; For instance I type:&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;import pandas&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;hit enter and a new line comes up immediately&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;However when I try typing:&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;pandas.DataFrame(arg1, arg2, etc.)&amp;nbsp; I get&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;RUNTIME ERROR&lt;/P&gt;&lt;P&gt;and checking&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;dir()&lt;/P&gt;&lt;P&gt;no pandas, no mxd object in the first example, etc.&amp;nbsp; And I cannot diagnose what is causing it or determine how to fix it.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ArcMap 10.6.1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2020 22:58:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/python-console-fails/m-p/845768#M527</guid>
      <dc:creator>ZacharyUhlmann1</dc:creator>
      <dc:date>2020-11-05T22:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: python console fails</title>
      <link>https://community.esri.com/t5/python-snippets-questions/python-console-fails/m-p/845769#M528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might want to do a repair on your ArcGIS install.&amp;nbsp; I don't use ArcMap anymore, strictly Pro.&amp;nbsp; Where is your python install directory?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2020 23:17:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/python-console-fails/m-p/845769#M528</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2020-11-05T23:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: python console fails</title>
      <link>https://community.esri.com/t5/python-snippets-questions/python-console-fails/m-p/845770#M529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the time Joe.&amp;nbsp; Hope this isn't a Googleable question, but how do I repair my install?&amp;nbsp; Definitely a separate question, but why do you prefer Pro?&amp;nbsp; I understand it's 64 bit and has good functionality (can't think of a better word) with ArcGIS Online.&amp;nbsp; It just seems to have all the same arcpy basics as ArcMap.&amp;nbsp; I realize that ArcMap is being phased out.&amp;nbsp; Just curious your perspective.&amp;nbsp; I do make a fair amount of maps and I script in Python a lot.&amp;nbsp; I also manage some ArcGIS Online content using the GIS Python API.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate your help and hopefully perspective!&lt;/P&gt;&lt;P&gt;Zach&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2020 00:02:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/python-console-fails/m-p/845770#M529</guid>
      <dc:creator>ZacharyUhlmann1</dc:creator>
      <dc:date>2020-11-06T00:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: python console fails</title>
      <link>https://community.esri.com/t5/python-snippets-questions/python-console-fails/m-p/845771#M530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Windows start button,&lt;/P&gt;&lt;P&gt;Search&amp;nbsp; Add/Remove Programs&lt;/P&gt;&lt;P&gt;Select Remove&lt;/P&gt;&lt;P&gt;Select the option to "repair"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2020 00:29:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/python-console-fails/m-p/845771#M530</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2020-11-06T00:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: python console fails</title>
      <link>https://community.esri.com/t5/python-snippets-questions/python-console-fails/m-p/845772#M531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I started making the transition to Pro about 2 years ago and will admit at first it was painful. I changed jobs in January and we are strictly a Pro shop. Now that I've&amp;nbsp; been with it for a while its second nature to me. As far as preference,&amp;nbsp; software is a tool to me, not a lifestyle.&amp;nbsp; I would rather move forward than hang on to the past.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2020 14:26:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/python-console-fails/m-p/845772#M531</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2020-11-06T14:26:42Z</dc:date>
    </item>
  </channel>
</rss>

