-------------------------------------------------------------------
# -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(['GekkoTest.py'],
pathex=['C:\\Users\\jcm\\.spyder-py3\\OTSG'],
binaries=[],
datas=[],
hiddenimports=['gekko'],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
[],
name='GekkoTest',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=True )
Upon running the script I get errors related to results.json not found. Long story short, the python executable is not creating the problem's solution files. I am not completely familiar, but I believe Gekko optimization solves problems in fortran/C and writes to json files which are then loaded back into python. It is likely that pyinstaller is not wrapping up some of the necessary files related to these other languages. Does anyone know a way to make Gekko Optimization work correctly using pyinstaller?