<?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: arcpy.gp.createtoolboxsupportfiles cannot open toolbox file in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/arcpy-gp-createtoolboxsupportfiles-cannot-open/m-p/1384023#M27167</link>
    <description>&lt;P&gt;You need to edit the toolboxes metatada before running arcpy.gp.createtoolboxsupportfiles(r"path/to/toolbox.pyt").&lt;/P&gt;&lt;P&gt;From Arcpy docs: Once the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;Toolbox.pyt&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;toolbox has been created, the parameter help can be configured for the toolbox through the metadata. To edit a tool's metadata, from the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;Catalog&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;pane, right-click the tool in the toolbox and choose&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;Edit Metadata&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;After the metadata is updated for the tool and toolbox, the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;arcpy.gp.createtoolboxsupportfiles&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;function can be run to generate the supporting&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;.xml&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;files.&amp;nbsp;&lt;/P&gt;&lt;P&gt;A little late but hopefully this helps for someone down the road. Cheers.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Feb 2024 14:16:17 GMT</pubDate>
    <dc:creator>awesomeLLama27</dc:creator>
    <dc:date>2024-02-19T14:16:17Z</dc:date>
    <item>
      <title>arcpy.gp.createtoolboxsupportfiles cannot open toolbox file</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/arcpy-gp-createtoolboxsupportfiles-cannot-open/m-p/1297971#M26908</link>
      <description>&lt;P&gt;I'm trying to do the basic example of creating a geoprocessing module found at&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/geoprocessing_and_python/extending-geoprocessing-through-python-modules.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/arcpy/geoprocessing_and_python/extending-geoprocessing-through-python-modules.htm&lt;/A&gt;. I have a similar directory structure as in the example, up to the step where it says to run `arcpy.gp.createtoolboxsupportfiles()`. Thus, I don't have the `esri` folder yet. When I try to run the arcpy function, I get an error saying it cannot open the toolbox file.&lt;/P&gt;&lt;LI-CODE lang="markdown"&gt;python -c "import arcpy; arcpy.gp.createtoolboxsupportfiles(r'D:\misc_proj\arcgis\pkg_template\Src\ROOT\SampleToolbox.pyt')"
Traceback (most recent call last):
  File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;module&amp;gt;
  File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\_base.py", line 512, in &amp;lt;lambda&amp;gt;
    return lambda *args: val(*gp_fixargs(args, True))
RuntimeError: Cannot open D:\misc_proj\arcgis\pkg_template\Src\ROOT\SampleToolbox.pyt&lt;/LI-CODE&gt;&lt;P&gt;The file is definitely there, and definitely readable.&lt;/P&gt;&lt;P&gt;Any help about the error is appreciated. Thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2023 11:46:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/arcpy-gp-createtoolboxsupportfiles-cannot-open/m-p/1297971#M26908</guid>
      <dc:creator>quillaja</dc:creator>
      <dc:date>2023-06-12T11:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.gp.createtoolboxsupportfiles cannot open toolbox file</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/arcpy-gp-createtoolboxsupportfiles-cannot-open/m-p/1384023#M27167</link>
      <description>&lt;P&gt;You need to edit the toolboxes metatada before running arcpy.gp.createtoolboxsupportfiles(r"path/to/toolbox.pyt").&lt;/P&gt;&lt;P&gt;From Arcpy docs: Once the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;Toolbox.pyt&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;toolbox has been created, the parameter help can be configured for the toolbox through the metadata. To edit a tool's metadata, from the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;Catalog&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;pane, right-click the tool in the toolbox and choose&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;Edit Metadata&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;After the metadata is updated for the tool and toolbox, the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;arcpy.gp.createtoolboxsupportfiles&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;function can be run to generate the supporting&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;.xml&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;files.&amp;nbsp;&lt;/P&gt;&lt;P&gt;A little late but hopefully this helps for someone down the road. Cheers.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2024 14:16:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/arcpy-gp-createtoolboxsupportfiles-cannot-open/m-p/1384023#M27167</guid>
      <dc:creator>awesomeLLama27</dc:creator>
      <dc:date>2024-02-19T14:16:17Z</dc:date>
    </item>
  </channel>
</rss>

