<?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 Toolbox causes serious Application Error in ArcCatalog in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/python-toolbox-causes-serious-application-error-in/m-p/395172#M31226</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I haven't had the exact issue but I have had development python toolboxes kill ArcCatalog with a serious error. I managed to track this error down to a function I was calling from an additional module having an error. I have notices that when you use an Python Toolbox in ArcCatalog the tools and any additional .py files used by the tools are compiled when you open Catalog not when the tool is run. If there is an error in the .pyt file you just get a red cross. If however the error is outside of this structure I believe that this is the source of the crash.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would guess that the toolbox is registered in the gxt file when you create the toolbox and until it is removed or the gxt re created the problem may persist.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you had any further instances of this error. Be interesting to see if anyone else has had this problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dave&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Sep 2013 16:02:57 GMT</pubDate>
    <dc:creator>DaveBarrett</dc:creator>
    <dc:date>2013-09-02T16:02:57Z</dc:date>
    <item>
      <title>Python Toolbox causes serious Application Error in ArcCatalog</title>
      <link>https://community.esri.com/t5/python-questions/python-toolbox-causes-serious-application-error-in/m-p/395171#M31225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have an intermittent error, which other colleagues have experienced as well, where having created working python toolboxes ArcCatalog 10.1 will crash on opening with a serious application error. I then delete the Normal.gxt file, which restores ArcCatalog but I cannot see the python toolboxes. Oddly eventually they do reappear, usually after a few uses of arcmap, and will function again. I find the crash is far more likely to happen if I am testing toolboxes but this is not always the case.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Furthermore I do not get this issue if I use the python toolboxes in ArcMap, they are always present and always work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone experienced this issue and if so know how to resolve it?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 07:13:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-toolbox-causes-serious-application-error-in/m-p/395171#M31225</guid>
      <dc:creator>EssamElhalhuli</dc:creator>
      <dc:date>2013-08-29T07:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: Python Toolbox causes serious Application Error in ArcCatalog</title>
      <link>https://community.esri.com/t5/python-questions/python-toolbox-causes-serious-application-error-in/m-p/395172#M31226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I haven't had the exact issue but I have had development python toolboxes kill ArcCatalog with a serious error. I managed to track this error down to a function I was calling from an additional module having an error. I have notices that when you use an Python Toolbox in ArcCatalog the tools and any additional .py files used by the tools are compiled when you open Catalog not when the tool is run. If there is an error in the .pyt file you just get a red cross. If however the error is outside of this structure I believe that this is the source of the crash.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would guess that the toolbox is registered in the gxt file when you create the toolbox and until it is removed or the gxt re created the problem may persist.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you had any further instances of this error. Be interesting to see if anyone else has had this problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dave&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Sep 2013 16:02:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-toolbox-causes-serious-application-error-in/m-p/395172#M31226</guid>
      <dc:creator>DaveBarrett</dc:creator>
      <dc:date>2013-09-02T16:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: Python Toolbox causes serious Application Error in ArcCatalog</title>
      <link>https://community.esri.com/t5/python-questions/python-toolbox-causes-serious-application-error-in/m-p/395173#M31227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;]I have notice(d) that when you use an Python Toolbox in ArcCatalog the tools and any additional .py files used by the tools are compiled when you open Catalog not when the tool is run.&amp;nbsp; &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This actually&amp;nbsp; makes a lot sense, because the .pyt would have to be imported for you to be able to browse the toolbox in catalog. For that reason, I would expect a compile/import when you browsed the folder in ArcMap as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have not warmed to .pyt development because of difficulties like this. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In case you haven't found it yet, I have found this blog post helpful:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGIS Blog 2012/12/14: &lt;/SPAN&gt;&lt;A href="http://blogs.esri.com/esri/arcgis/2012/12/14/how-to-debug-python-toolboxes-in-3-easy-steps/"&gt;How to Debug Python Toolboxes in 3 Easy Steps&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Sep 2013 19:22:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-toolbox-causes-serious-application-error-in/m-p/395173#M31227</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2013-09-02T19:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: Python Toolbox causes serious Application Error in ArcCatalog</title>
      <link>https://community.esri.com/t5/python-questions/python-toolbox-causes-serious-application-error-in/m-p/395174#M31228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;&lt;BR /&gt;In case you haven't found it yet, I have found this blog post helpful:&lt;BR /&gt;&lt;BR /&gt;ArcGIS Blog 2012/12/14: &lt;A href="http://blogs.esri.com/esri/arcgis/2012/12/14/how-to-debug-python-toolboxes-in-3-easy-steps/"&gt;How to Debug Python Toolboxes in 3 Easy Steps&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Curtis, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the link really helpful. I like some of the options available in the .pyt but got a few problems to work through. I'm heading down the site-package route to distribute our tools so it fits pretty well with the .pyt&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dave&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Sep 2013 19:32:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-toolbox-causes-serious-application-error-in/m-p/395174#M31228</guid>
      <dc:creator>DaveBarrett</dc:creator>
      <dc:date>2013-09-02T19:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: Python Toolbox causes serious Application Error in ArcCatalog</title>
      <link>https://community.esri.com/t5/python-questions/python-toolbox-causes-serious-application-error-in/m-p/395175#M31229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for the responses.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone have any ideas why this does not happen in the ArcCatalog window from ArcMap?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Because these pyt run perfectly fine from ArcMap (and most of the time from ArcCatalog) I am a bit stumped as to where to look for any coding errors?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2013 07:04:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-toolbox-causes-serious-application-error-in/m-p/395175#M31229</guid>
      <dc:creator>EssamElhalhuli</dc:creator>
      <dc:date>2013-09-03T07:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: Python Toolbox causes serious Application Error in ArcCatalog</title>
      <link>https://community.esri.com/t5/python-questions/python-toolbox-causes-serious-application-error-in/m-p/395176#M31230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Evening all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have had a bit more of a dig into this problem and possible solutions. I found this link in the forums that appears to show that there is a bug at 10.1 with loading python toolboxes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/91593-New-Python-Toolbox-will-Crash-Arc-Catalog?highlight=python+toolbox"&gt;http://forums.arcgis.com/threads/91593-New-Python-Toolbox-will-Crash-Arc-Catalog?highlight=python+toolbox&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is supposed to have been fixed at 10.2 but not tested that yet. I have also found that this will cause ArcMap to crash in the same way if you add a python toolbox to ArcToolbox and save the settings to default. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The work around is to delete the ArcToolbox.dat file stored in the user profile.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Users\[USER NAME]\AppData\Roaming\ESRI\Desktop10.1\ArcToolbox\ArcToolbox.dat&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are a couple of methods to fix ArcCatalog if this happening. Either remove the python toolbox from the last location you were using before encountering the problem or edit the following registry to change the last used location.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;HKEY_Current_User\Software\Esri\Desktop10.1\ArcCatalog\Settings\LastLocation&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The registry option worked for me and then I set the ArcCatalog option to forget the last used location. This is found at&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Customize|ArcCatalog Options then go to the general tab and at the bottom is a check box that is called:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Return to last used location when ArcCatalog starts up.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From all the testing and reading I have carried out this problem only seems to happen when the Applications are loading not when accessing a functioning toolbox after they have opened. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this is useful&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dave&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2013 18:39:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-toolbox-causes-serious-application-error-in/m-p/395176#M31230</guid>
      <dc:creator>DaveBarrett</dc:creator>
      <dc:date>2013-10-09T18:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: Python Toolbox causes serious Application Error in ArcCatalog</title>
      <link>https://community.esri.com/t5/python-questions/python-toolbox-causes-serious-application-error-in/m-p/395177#M31231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dave, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I appreciate you following up on this, thank you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I will share the work around with colleagues and hopefully see an end to this issue&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2013 07:52:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-toolbox-causes-serious-application-error-in/m-p/395177#M31231</guid>
      <dc:creator>EssamElhalhuli</dc:creator>
      <dc:date>2013-10-10T07:52:38Z</dc:date>
    </item>
  </channel>
</rss>

