<?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 Packaging arcgis python library into an executable in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/packaging-arcgis-python-library-into-an-executable/m-p/1344199#M69087</link>
    <description>&lt;P&gt;Has anyone managed to bundle the arcgis(v2.2.0) python library into an executable? I've found that this code runs fine as separate python files but once bundled with pyinstaller into a .app file ends up in a crash on the first use of the library&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pypi.org/project/arcgis/" target="_blank" rel="noopener"&gt;https://pypi.org/project/arcgis/&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;`&lt;SPAN class=""&gt;ModuleNotFoundError: No module named 'arcgis.gis._impl._portalpy'`&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 31 Oct 2023 22:51:05 GMT</pubDate>
    <dc:creator>ArcDevelopment</dc:creator>
    <dc:date>2023-10-31T22:51:05Z</dc:date>
    <item>
      <title>Packaging arcgis python library into an executable</title>
      <link>https://community.esri.com/t5/python-questions/packaging-arcgis-python-library-into-an-executable/m-p/1344199#M69087</link>
      <description>&lt;P&gt;Has anyone managed to bundle the arcgis(v2.2.0) python library into an executable? I've found that this code runs fine as separate python files but once bundled with pyinstaller into a .app file ends up in a crash on the first use of the library&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pypi.org/project/arcgis/" target="_blank" rel="noopener"&gt;https://pypi.org/project/arcgis/&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;`&lt;SPAN class=""&gt;ModuleNotFoundError: No module named 'arcgis.gis._impl._portalpy'`&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 22:51:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/packaging-arcgis-python-library-into-an-executable/m-p/1344199#M69087</guid>
      <dc:creator>ArcDevelopment</dc:creator>
      <dc:date>2023-10-31T22:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Packaging arcgis python library into an executable</title>
      <link>https://community.esri.com/t5/python-questions/packaging-arcgis-python-library-into-an-executable/m-p/1344210#M69088</link>
      <description>&lt;P&gt;It isn't designed to be included in an executable.&amp;nbsp; It is designed to run in a python environment&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 23:06:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/packaging-arcgis-python-library-into-an-executable/m-p/1344210#M69088</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2023-10-31T23:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: Packaging arcgis python library into an executable</title>
      <link>https://community.esri.com/t5/python-questions/packaging-arcgis-python-library-into-an-executable/m-p/1344215#M69089</link>
      <description>&lt;P&gt;If pyscripter doesn't pick up on an import (pretty common with complex libraries like arcgis) you'll have to tweak the hidden imports for your build. Start with something high up in the import path (e.g. "arcgis.gis") and then get more specific until it works.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 23:21:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/packaging-arcgis-python-library-into-an-executable/m-p/1344215#M69089</guid>
      <dc:creator>DavidSolari</dc:creator>
      <dc:date>2023-10-31T23:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: Packaging arcgis python library into an executable</title>
      <link>https://community.esri.com/t5/python-questions/packaging-arcgis-python-library-into-an-executable/m-p/1344229#M69090</link>
      <description>&lt;P&gt;There's probably a lot in the API you just don't need that will add a lot size and introduce a few problems. I would consider the pieces you actually a need and maybe write something custom (if it's going to get repeated use) or else see how far you can get with the&amp;nbsp;&lt;SPAN&gt;--no-deps option when installing.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2023 01:05:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/packaging-arcgis-python-library-into-an-executable/m-p/1344229#M69090</guid>
      <dc:creator>EarlMedina</dc:creator>
      <dc:date>2023-11-01T01:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: Packaging arcgis python library into an executable</title>
      <link>https://community.esri.com/t5/python-questions/packaging-arcgis-python-library-into-an-executable/m-p/1345708#M69141</link>
      <description>&lt;P&gt;Had some luck with just importing the offending 'arcgis._impl' import into my app but yes if we had more time something more tailored would likely be the best approach&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 18:35:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/packaging-arcgis-python-library-into-an-executable/m-p/1345708#M69141</guid>
      <dc:creator>ArcDevelopment</dc:creator>
      <dc:date>2023-11-03T18:35:33Z</dc:date>
    </item>
  </channel>
</rss>

