<?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: Is it possible to include dependenices in a custom geoprocessing tool? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/is-it-possible-to-include-dependenices-in-a-custom/m-p/1628401#M74445</link>
    <description>&lt;P data-unlink="true"&gt;You can publish it, but whoever runs it needs the &lt;A href="https://github.com/Esri/large-network-analysis-tools?tab=readme-ov-file#requirements" target="_self"&gt;Network Analyst license to run your tool&lt;/A&gt;.&amp;nbsp;&amp;nbsp;You can run a license check at the top of your toolbox:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;if not arcpy.CheckExtension('Network') == 'Available':
    raise ImportError('Network Analyst extension required to run this tool')&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 30 Jun 2025 15:24:37 GMT</pubDate>
    <dc:creator>HaydenWelch</dc:creator>
    <dc:date>2025-06-30T15:24:37Z</dc:date>
    <item>
      <title>Is it possible to include dependenices in a custom geoprocessing tool?</title>
      <link>https://community.esri.com/t5/python-questions/is-it-possible-to-include-dependenices-in-a-custom/m-p/1628377#M74444</link>
      <description>&lt;P&gt;I would like to publish a tool which has a dependency on the ArcGIS &lt;A href="https://github.com/Esri/large-network-analysis-tools" target="_self"&gt;Large Network Analysis Tools&lt;/A&gt;. I can import this toolbox and use within a standalone script, but I'm wondering if I can ship these files along with my tool when publishing as a geoprocessing tool to ArcGIS Enterprise.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jun 2025 14:57:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-it-possible-to-include-dependenices-in-a-custom/m-p/1628377#M74444</guid>
      <dc:creator>mfcallahan</dc:creator>
      <dc:date>2025-06-30T14:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to include dependenices in a custom geoprocessing tool?</title>
      <link>https://community.esri.com/t5/python-questions/is-it-possible-to-include-dependenices-in-a-custom/m-p/1628401#M74445</link>
      <description>&lt;P data-unlink="true"&gt;You can publish it, but whoever runs it needs the &lt;A href="https://github.com/Esri/large-network-analysis-tools?tab=readme-ov-file#requirements" target="_self"&gt;Network Analyst license to run your tool&lt;/A&gt;.&amp;nbsp;&amp;nbsp;You can run a license check at the top of your toolbox:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;if not arcpy.CheckExtension('Network') == 'Available':
    raise ImportError('Network Analyst extension required to run this tool')&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 30 Jun 2025 15:24:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-it-possible-to-include-dependenices-in-a-custom/m-p/1628401#M74445</guid>
      <dc:creator>HaydenWelch</dc:creator>
      <dc:date>2025-06-30T15:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to include dependenices in a custom geoprocessing tool?</title>
      <link>https://community.esri.com/t5/python-questions/is-it-possible-to-include-dependenices-in-a-custom/m-p/1628409#M74446</link>
      <description>&lt;P&gt;Oof, that's a bummer, it sounds like what I was looking to do may not be possible. I was hoping to publish a tool which could be called from a standalone script I have running as a scheduled task on a server. The script periodically fetches data from a few different sources and updates a table, and one of the columns in that table contains a value derived from the output of the large network analysis. The server to which my scheduled task is deployed does not have ArcGIS Pro and does not have any individual ArcGIS Pro users. Is such a scenario just not possible?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jun 2025 15:37:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-it-possible-to-include-dependenices-in-a-custom/m-p/1628409#M74446</guid>
      <dc:creator>mfcallahan</dc:creator>
      <dc:date>2025-06-30T15:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to include dependenices in a custom geoprocessing tool?</title>
      <link>https://community.esri.com/t5/python-questions/is-it-possible-to-include-dependenices-in-a-custom/m-p/1628426#M74447</link>
      <description>&lt;P&gt;Sadly extensions that require a license need the license to be available in whatever environment the tool is being interpreted in. You could do what I do and implement the Network logic on your own and then ship that. You can use da.SearchCursors, da.UpdateCursors, and Networxx to replace the licensed code in that large-network-analysis tool.&lt;/P&gt;&lt;P&gt;The big issue is that the Network tools tend to make calls to ESRI servers and require tokens to run.&lt;/P&gt;&lt;P&gt;If the server you're running your code on has no Pro license, you can't run arcpy either, it patches directly into the Pro binaries to run, and without a valid ArcGIS Pro binary available, it won't work.&lt;/P&gt;&lt;P&gt;I believe that running it on an Enterprise server will work as those ship with the runtime.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jun 2025 16:38:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-it-possible-to-include-dependenices-in-a-custom/m-p/1628426#M74447</guid>
      <dc:creator>HaydenWelch</dc:creator>
      <dc:date>2025-06-30T16:38:14Z</dc:date>
    </item>
  </channel>
</rss>

