Python subprocess check_output issue

September 19, 2015 783 views
Python Linux Commands Ubuntu

Just moved my site to Digitalocean and encountered and error.

From python program I run the following command:

res = check_output(["/opt/mathenv/sage-6.8/sage","/opt/mathenv/mathsite/mathsite/scripts/eq_solver.sage","x-5", "x",'-oo', '1', 'oo', '1', '14'])

But this piece of code gives me the following error:

CalledProcessError: Command '['/opt/mathenv/sage-6.8/sage', '/opt/mathenv/mathsite/mathsite/scripts/eq_solver.sage', 'x-5', 'x', '-oo', '1', 'oo', '1', '14']' returned non-zero exit status 1

It worked on my previous host, it works perfectly if I enter the command directly in shell, so there are no errors with the script.

Is there any way digitalocean is somehow blocking it? Maybe ssh or something else?

Be the first one to answer this question.