Dear Clemens,
Thank you very much for your fast answer and apologies for unintentionally poking my nose into the GAMS test library. I am glad to hear, though, that there is a reason why the contents of this GAMS file looked slightly more mysterious to me than the ones I usually find on the site.
I slightly modified your code to point to my python installation located at
and ran it.
- bad news: code still crashes
- good news: it does so consistently, i.e. I get the same error message for model2tex1.gms that I got for my actual model
Result for model2tex1.gms:
Code: Select all
gams model2tex1.gms
--- Job model2tex1.gms Start 01/31/18 18:43:27 24.9.2 r64480 DEX-DEG x86 64bit/Mac OS X
GAMS 24.9.2 Copyright (C) 1987-2017 GAMS Development. All rights reserved
Licensee: GAMS Development Corporation, USA G871201/0000CA-ANY
Free Demo, +1 202-342-0180, support@gams.com, www.gams.com DC0000
--- Starting compilation
--- model2tex1.gms(5) 2 Mb
--- call gamslib -q trnsport
--- model2tex1.gms(7) 2 Mb
--- call rm -f transport.tex
--- model2tex1.gms(9) 2 Mb
--- call gams trnsport lo=1 docFile=transport
--- Job trnsport Start 01/31/18 18:43:27 24.9.2 r64480 DEX-DEG x86 64bit/Mac OS X
GAMS 24.9.2 Copyright (C) 1987-2017 GAMS Development. All rights reserved
Licensee: GAMS Development Corporation, USA G871201/0000CA-ANY
Free Demo, +1 202-342-0180, support@gams.com, www.gams.com DC0000
--- Starting compilation
--- trnsport.gms(68) 3 Mb
--- RefFile /myFolder/transport.ref
--- DocFile /myFolder/transport.txt
--- GDX File /myFolder/transport.gdx
*** Status: Normal completion
--- Job trnsport.gms Stop 01/31/18 18:43:27 elapsed 0:00:00.010
--- model2tex1.gms(20) 2 Mb
--- call /usr/bin/python2.7 /Applications/GAMS24.9/sysdir/model2tex.py transport > /dev/null
Traceback (most recent call last):
File "/Applications/GAMS24.9/sysdir/model2tex.py", line 17, in <module>
_gdxcc = swig_import_helper()
File "/Applications/GAMS24.9/sysdir/model2tex.py", line 16, in swig_import_helper
return importlib.import_module('_gdxcc')
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
ImportError: dlopen(/Applications/GAMS24.9/sysdir/_gdxcc.so, 2): Library not loaded: @loader_path/../../../libgcc_s.1.dylib
Referenced from: /Applications/GAMS24.9/sysdir/_gdxcc.so
Reason: image not found
--- model2tex1.gms(21) 2 Mb
***
*** Abort could not run python
***
--- model2tex1.gms(21) 2 Mb 1 Error
*** Status: Compilation error(s)
--- Job model2tex1.gms Stop 01/31/18 18:43:27 elapsed 0:00:00.214
And, for the sake of completeness, for my actual model:
Code: Select all
python /Applications/GAMS24.9/sysdir/model2tex.py AluSale
Traceback (most recent call last):
File "/Applications/GAMS24.9/sysdir/model2tex.py", line 17, in <module>
_gdxcc = swig_import_helper()
File "/Applications/GAMS24.9/sysdir/model2tex.py", line 16, in swig_import_helper
return importlib.import_module('_gdxcc')
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
ImportError: dlopen(/Applications/GAMS24.9/sysdir/_gdxcc.so, 2): Library not loaded: @loader_path/../../../libgcc_s.1.dylib
Referenced from: /Applications/GAMS24.9/sysdir/_gdxcc.so
Reason: image not found