<?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: .pyt file has red x in Spatial Data Science Questions</title>
    <link>https://community.esri.com/t5/spatial-data-science-questions/pyt-file-has-red-x/m-p/256521#M608</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using the ArcMap Catalog window (or ArcCatalog itself), browse to the offending pyt (don't use the ArcToolbox -&amp;gt; Add Toolbox dialog for this test).&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Does the toolbox have the "X" or the tools inside?&lt;BR /&gt;i.e&lt;BR /&gt;&lt;IMG __jive_id="217478" alt="toolbox and tool errors" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/217478_Capture.PNG" style="height: auto;" /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it's the toolbox (pyt) - right click on the .pyt and select "Check syntax...".&lt;/P&gt;&lt;P&gt;If it's the tool - right click on the tool and select "Why...".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Post the output (as text, not screenshot).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Aug 2016 00:04:09 GMT</pubDate>
    <dc:creator>Luke_Pinner</dc:creator>
    <dc:date>2016-08-24T00:04:09Z</dc:date>
    <item>
      <title>.pyt file has red x</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/pyt-file-has-red-x/m-p/256520#M607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to add a .pyt toolbox file to the ArcToolbox. &amp;nbsp;When browsing to the .pyt file to add it, it has a red x on the icon. &amp;nbsp;Once selected and Opened, it won't add the toolbox/tools to the ArcToolbox list. &amp;nbsp;It added fine last week.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 18:18:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/pyt-file-has-red-x/m-p/256520#M607</guid>
      <dc:creator>ToddTurner1</dc:creator>
      <dc:date>2016-08-23T18:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: .pyt file has red x</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/pyt-file-has-red-x/m-p/256521#M608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using the ArcMap Catalog window (or ArcCatalog itself), browse to the offending pyt (don't use the ArcToolbox -&amp;gt; Add Toolbox dialog for this test).&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Does the toolbox have the "X" or the tools inside?&lt;BR /&gt;i.e&lt;BR /&gt;&lt;IMG __jive_id="217478" alt="toolbox and tool errors" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/217478_Capture.PNG" style="height: auto;" /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it's the toolbox (pyt) - right click on the .pyt and select "Check syntax...".&lt;/P&gt;&lt;P&gt;If it's the tool - right click on the tool and select "Why...".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Post the output (as text, not screenshot).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2016 00:04:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/pyt-file-has-red-x/m-p/256521#M608</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2016-08-24T00:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: .pyt file has red x</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/pyt-file-has-red-x/m-p/256522#M609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also have this question when trying to add my Python Toolbox to ArcMap. ArcMap is using Python 2.x, so that it's a bit different from ArcGIS Pro and there is also some strict limit. I finally fixed this issue by checking two aspects: Syntax and Encoding.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. Syntax Errors&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Please make sure there are no syntax errors before adding to ArcMap.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2. Encoding&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Please make sure the encoding of your *.pyt is correct (Python 2.x needs you to define the encoding). You can use all English characters or adding an encoding at the header of the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV class="jfk-bubble gtx-bubble" style="visibility: visible; left: 161px; top: -96px; opacity: 1;"&gt;&lt;DIV class="jfk-bubble-content-id"&gt;&lt;DIV style="min-width: 200px; max-width: 400px;"&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="jfk-bubble-closebtn-id jfk-bubble-closebtn"&gt;&lt;/DIV&gt;&lt;DIV class="jfk-bubble-arrow-id jfk-bubble-arrow jfk-bubble-arrowdown" style="left: 500px;"&gt;&lt;DIV class="jfk-bubble-arrowimplbefore"&gt;&lt;/DIV&gt;&lt;DIV class="jfk-bubble-arrowimplafter"&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2020 14:55:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/pyt-file-has-red-x/m-p/256522#M609</guid>
      <dc:creator>XuewenZhang</dc:creator>
      <dc:date>2020-09-07T14:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: .pyt file has red x</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/pyt-file-has-red-x/m-p/1503802#M1887</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;Finally how you have add it can you please explain&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2024 20:01:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/pyt-file-has-red-x/m-p/1503802#M1887</guid>
      <dc:creator>DhanjitDeka</dc:creator>
      <dc:date>2024-07-10T20:01:29Z</dc:date>
    </item>
  </channel>
</rss>

