I need to call and run gams at background from a Python script.
I'm using:
import subprocess
subprocess.check_call([r"C:\GAMS\win64\24.4\gams.exe",r"F:\Otim\Interface\ElGr.gms"])
And it gives me this error:
Traceback (most recent call last): File "F:/Otim/Interface/tent_backgroundgams.py", line 91, in subprocess.check_call([r"C:\GAMS\win64\24.4\gams.exe",r"F:\Otim\Interface\ElGrs. gms"]) File "C:\Python27\ArcGIS10.2\lib\subprocess.py", line 511, in check_call raise CalledProcessError(retcode, cmd) CalledProcessError: Command '['C:\GAMS\win64\24.4\gams.exe', 'F:\Otim\Interface\ElGr. gms']' returned non-zero exit status 6
How can I solve it?
r"F:\Otim\Interface\ElGrs. gms"
, there is a whitespace after ElGrs. , that doesn't seem to be a valid path – BPL