RE: [PyInstaller] Set interpreter when creating executable

2024-03-07 Thread Steve Barnes
Hi Adam, Have you tried installing pyinstaller, and its dependencies, into the ArcGIS python and then using the ArcGIS python to build the executable. This should at least install the correct python interpreter into the exe bundle. You could then set the import path to the ArcGIS installation

Re: [PyInstaller] Set interpreter when creating executable

2024-03-07 Thread bwoodsend
If you expect to use a Python interpreter on the user’s machine then PyInstaller is completely the wrong tool. Assuming that Python interpreter is at a fixed location, you’re probably better off shipping your raw Python code along with a .bat file along the lines of: cd /D "%~dp0" "C:\Program

[PyInstaller] Re: Issue running the exe (Part 2)

2024-03-07 Thread bwoodsend
For ModuleNotFoundErrors use --hidden-import=photutils.geometry.core ​ -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To unsubscribe from this group and stop receiving emails from it, send an email to

[PyInstaller] Set interpreter when creating executable

2024-03-07 Thread Adam Fackler
Hello all, I built out a python script that utilizes a python library called ArcPy which is part of the ArcGIS Pro Desktop program. To run a script using this python library, I must run the script using the python interpreter found in the ArcGIS Pro folder structure, in this case the default