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
https://pypi.org/project/arcgis/
Error:
`ModuleNotFoundError: No module named 'arcgis.gis._impl._portalpy'`
Solved! Go to Solution.
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.
It isn't designed to be included in an executable. It is designed to run in a python environment
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.
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 --no-deps option when installing.
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