JamesRamm / archook

Searches the system for arcgis and makes arcpy available to python (regardless of pythonpath/system path/registry settings)
GNU General Public License v2.0
81 stars 28 forks source link

pro=True returns unexpected keyword #40

Open tmart42 opened 2 weeks ago

tmart42 commented 2 weeks ago

File "C:\Users\u\AppData\Local\ESRI\conda\envs\arcgispro-py3-updated-240716\Lib\site-packages\PyInstaller__main__.py", line 180, in run run_build(pyi_config, spec_file, vars(args)) File "C:\Users\u\AppData\Local\ESRI\conda\envs\arcgispro-py3-updated-240716\Lib\site-packages\PyInstaller__main__.py", line 61, in run_build PyInstaller.building.build_main.main(pyi_config, spec_file, kwargs) File "C:\Users\u\AppData\Local\ESRI\conda\envs\arcgispro-py3-updated-240716\Lib\site-packages\PyInstaller\building\build_main.py", line 1019, in main build(specfile, distpath, workpath, clean_build) File "C:\Users\u\AppData\Local\ESRI\conda\envs\arcgispro-py3-updated-240716\Lib\site-packages\PyInstaller\building\build_main.py", line 944, in build exec(code, spec_namespace) File "pyfile.spec", line 7, in archook.get_arcpy(pro=True) TypeError: get_arcpy() got an unexpected keyword argument 'pro'

maphew commented 2 weeks ago

Thanks for the report.

I don't know much about Pyinstaller, but in experiments a long time ago with other programs I learned that some libraries/modules need to be explicitly included as the auto-discovery mechanism doesn't always add them to the bundle. That's just a wild guess though.

Also look at #30.