Python API error message
Posted: Sun May 30, 2021 11:31 pm
Hi GAMS community,
I ran into an error message while running a python script to read GDX files on my Mac. The error is like:
GamsException: GAMS System directory not found or invalid. You need to set either PATH or DYLD_LIBRARY_PATH to a valid GAMS system directory or to specify one in the GamsWorkspace constructor.
I installed GAMS using the PKG installer (GAMS35.1.0.pkg), and it seems like the GAMS system directory should be automatically specified. When I test the program using the:
gamslib trnsport
gams transport
The terminal runs correctly.
Can you please help me with it?
Best,
Pei Huang
I ran into an error message while running a python script to read GDX files on my Mac. The error is like:
GamsException: GAMS System directory not found or invalid. You need to set either PATH or DYLD_LIBRARY_PATH to a valid GAMS system directory or to specify one in the GamsWorkspace constructor.
I installed GAMS using the PKG installer (GAMS35.1.0.pkg), and it seems like the GAMS system directory should be automatically specified. When I test the program using the:
gamslib trnsport
gams transport
The terminal runs correctly.
Can you please help me with it?
Best,
Pei Huang