<?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 Broken after Upgrade to Pro 3.2 in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/python-toolbox-broken-after-upgrade-to-pro-3-2/m-p/1605237#M94898</link>
    <description>&lt;P&gt;A Github repo is great, please post it when you can.&lt;/P&gt;</description>
    <pubDate>Fri, 11 Apr 2025 15:29:29 GMT</pubDate>
    <dc:creator>DavidSolari</dc:creator>
    <dc:date>2025-04-11T15:29:29Z</dc:date>
    <item>
      <title>Python Toolbox Broken after Upgrade to Pro 3.2</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/python-toolbox-broken-after-upgrade-to-pro-3-2/m-p/1604957#M94854</link>
      <description>&lt;P&gt;Displaying the broken path symbol (see screenshot).&amp;nbsp; Right Click --&amp;gt; Check Syntax yields "No syntax errors".&amp;nbsp; These were toolboxes that functioned fine from 2.9 thru 3.0.2, and then broke upon upgrading to 3.2.&amp;nbsp; I continued to 3.3 and 3.4, but still broken.&amp;nbsp; There are a couple toolboxes that did NOT break.&amp;nbsp; I can't determine why they survived and the others didn't.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-04-10 143452.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/130019i85F3DA4D3A430FFC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2025-04-10 143452.png" alt="Screenshot 2025-04-10 143452.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Zach&lt;/P&gt;</description>
      <pubDate>Thu, 10 Apr 2025 20:36:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/python-toolbox-broken-after-upgrade-to-pro-3-2/m-p/1604957#M94854</guid>
      <dc:creator>ZacharyUhlmann1</dc:creator>
      <dc:date>2025-04-10T20:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Python Toolbox Broken after Upgrade to Pro 3.2</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/python-toolbox-broken-after-upgrade-to-pro-3-2/m-p/1605017#M94867</link>
      <description>&lt;P&gt;Are you able to cut one of these toolboxes down to a minimum reproduction of the error and then post it here?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Apr 2025 23:30:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/python-toolbox-broken-after-upgrade-to-pro-3-2/m-p/1605017#M94867</guid>
      <dc:creator>DavidSolari</dc:creator>
      <dc:date>2025-04-10T23:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: Python Toolbox Broken after Upgrade to Pro 3.2</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/python-toolbox-broken-after-upgrade-to-pro-3-2/m-p/1605230#M94897</link>
      <description>&lt;P&gt;Hi David.&amp;nbsp; I think it's more efficient to include the entire .pyt as the they are 180 lines and 100 lines respectively.&amp;nbsp; I can share a GitHub repo with an example of a functioning Python Toolbox and one that doesn't?&amp;nbsp; For my part, I manually tried reconciling differences between the two and ruled out culprits.&amp;nbsp; For instance:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;modules and packages imported&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;This header:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;# -*- coding: utf-8 -*-&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Verified that the Python Toolbox datatypes were not deprecated in 3.4 i.e. "Layer", "DEFolder","GPString", etc.&lt;/LI&gt;&lt;LI&gt;the updateParameters method with either version (with or without code blocks in the method):&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;LI-CODE lang="python"&gt;# Version 1
def updateParameters(self, parameters):
        return parameters
# Version 2
def updateParameters(self, parameters):
        return&lt;/LI-CODE&gt;&lt;P&gt;Happy to share the repo.&amp;nbsp; I could drop 300 lines of python in a response if not.&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Zach&lt;/P&gt;</description>
      <pubDate>Fri, 11 Apr 2025 15:22:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/python-toolbox-broken-after-upgrade-to-pro-3-2/m-p/1605230#M94897</guid>
      <dc:creator>ZacharyUhlmann1</dc:creator>
      <dc:date>2025-04-11T15:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: Python Toolbox Broken after Upgrade to Pro 3.2</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/python-toolbox-broken-after-upgrade-to-pro-3-2/m-p/1605237#M94898</link>
      <description>&lt;P&gt;A Github repo is great, please post it when you can.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Apr 2025 15:29:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/python-toolbox-broken-after-upgrade-to-pro-3-2/m-p/1605237#M94898</guid>
      <dc:creator>DavidSolari</dc:creator>
      <dc:date>2025-04-11T15:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: Python Toolbox Broken after Upgrade to Pro 3.2</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/python-toolbox-broken-after-upgrade-to-pro-3-2/m-p/1605246#M94900</link>
      <description>&lt;P&gt;&lt;A href="https://github.com/zuhlmann/arcgis/blob/master/arcpy_script_tools_uhlmann/quick_sql.pyt" target="_self"&gt;Does NOT function&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/zuhlmann/arcgis/blob/master/arcpy_script_tools_uhlmann/xml_module.pyt" target="_self"&gt;does Function&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Possibly related to the &lt;STRONG&gt;updateParameters&lt;/STRONG&gt; method since my two functioning examples (only one shared) have no code block or functionality in that method.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks David&lt;/P&gt;</description>
      <pubDate>Fri, 11 Apr 2025 15:48:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/python-toolbox-broken-after-upgrade-to-pro-3-2/m-p/1605246#M94900</guid>
      <dc:creator>ZacharyUhlmann1</dc:creator>
      <dc:date>2025-04-11T15:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: Python Toolbox Broken after Upgrade to Pro 3.2</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/python-toolbox-broken-after-upgrade-to-pro-3-2/m-p/1605269#M94906</link>
      <description>&lt;P&gt;Alright, after swapping bits in and out of toolboxes, I managed to get something that looks virtually identical to your code working (attached). I can't even see what significant changes were made using a file diff tool, I have to assume there's some invalid whitespace characters in your source that I Ship of Theseus'd out of there. Let me know if this still gives you trouble.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Apr 2025 16:39:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/python-toolbox-broken-after-upgrade-to-pro-3-2/m-p/1605269#M94906</guid>
      <dc:creator>DavidSolari</dc:creator>
      <dc:date>2025-04-11T16:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: Python Toolbox Broken after Upgrade to Pro 3.2</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/python-toolbox-broken-after-upgrade-to-pro-3-2/m-p/1607789#M95144</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/4413"&gt;@DavidSolari&lt;/a&gt;&amp;nbsp;thanks, it worked.&amp;nbsp; However, I don't know how to apply this to my other .pyt files.&amp;nbsp; It appears the issue involves line endings, specifically that my files have linux line endings - I think.&amp;nbsp; I program in PyCharm on a Windows machine, so it could be a setting.&amp;nbsp; I cannot determine how to simply replace&amp;nbsp;&lt;STRONG&gt;/n&lt;/STRONG&gt; with&amp;nbsp;&lt;STRONG&gt;/r/n&lt;/STRONG&gt; when converting line endings from Linux to Windows.&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;Git Diff&lt;/STRONG&gt; shows the difference between my files and your as simply the removal of&amp;nbsp;&lt;STRONG&gt;^M&lt;/STRONG&gt;, which is a symbol for a carriage ending used in Windows.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) What editor did you use to edit my files?&lt;/P&gt;&lt;P&gt;2) If you get a chance, can you simply open and resave?&amp;nbsp; I wonder if it's that simple.&lt;/P&gt;&lt;P&gt;Something happened between Pro 3.0.2 and 3.1+ which may require tech support because I'm 6 hours into this troubleshooting.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Apr 2025 18:48:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/python-toolbox-broken-after-upgrade-to-pro-3-2/m-p/1607789#M95144</guid>
      <dc:creator>ZacharyUhlmann1</dc:creator>
      <dc:date>2025-04-21T18:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: Python Toolbox Broken after Upgrade to Pro 3.2</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/python-toolbox-broken-after-upgrade-to-pro-3-2/m-p/1607795#M95145</link>
      <description>&lt;P&gt;Unfortunately I didn't run any bulk edit, in the process of cutting and pasting different chunks around I must have slowly erased all the bad line endings. I use Notepad++ for general text editing and you can use Edit → EOL Conversion to bulk convert a file. If you need to fix a mixed-ending file something like this should work:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import re
bad_file = r"C:\path\to\file"
good_file = r"C:\path\to\output"
with open(bad_file , "r") as f1, open(good_file, "w", newline="\r\n") as f2:
    f2.write(re.sub(r"\r\n?|\n", "\n", f1.read()))&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 21 Apr 2025 19:10:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/python-toolbox-broken-after-upgrade-to-pro-3-2/m-p/1607795#M95145</guid>
      <dc:creator>DavidSolari</dc:creator>
      <dc:date>2025-04-21T19:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: Python Toolbox Broken after Upgrade to Pro 3.2</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/python-toolbox-broken-after-upgrade-to-pro-3-2/m-p/1607819#M95147</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/4413"&gt;@DavidSolari&lt;/a&gt; . For clarity, the line endings were my suspicion, but not identified as the culprit - since I haven't solved this yet.&amp;nbsp; I have tried: 1) matching your file visually (i.e. same number lines, etc.) 2) Involved in 1, I changed triple, single quotes to triple, double quotes in the method descriptions. 3) Tried changing line endings - unsure if executed properly 4) Ran your last code chunk successfully, but didn't fix problem.&lt;/P&gt;&lt;P&gt;You suppose this is eligible for tech support?&amp;nbsp; The issue was caused by upgrading versions.&lt;/P&gt;&lt;P&gt;much appreciated,&lt;/P&gt;&lt;P&gt;Zach&lt;/P&gt;</description>
      <pubDate>Mon, 21 Apr 2025 20:13:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/python-toolbox-broken-after-upgrade-to-pro-3-2/m-p/1607819#M95147</guid>
      <dc:creator>ZacharyUhlmann1</dc:creator>
      <dc:date>2025-04-21T20:13:47Z</dc:date>
    </item>
  </channel>
</rss>

