ioi / isolate

Sandbox for securely executing untrusted programs
Other
1.05k stars 157 forks source link

How to use different env of python #73

Closed rohanraarora closed 5 years ago

rohanraarora commented 5 years ago

I have been using isolate in a project where I need to run a few python programs for data science problems. I am able to run isolate with the default python env i.e. /usr/bin/python3 but if I change this to a diff env such as anaconda python env ( /opt/conda/bin/python3 ) then I get an exception execve("/opt/conda/bin/python3"): No such file or directory . So how can I use anaconda python env to run my programs?

gollux commented 5 years ago

Do you have a directory rule for /opt set up? Otherwise, /opt is not present inside the sandbox.

rohanraarora commented 5 years ago

No, I am not using any directory rule. I am not sure how to use it properly. Can you share an example to do so? Thanks in advance.

gollux commented 5 years ago

Did you read the manual page? The rules are described there in quite a detail.

rohanraarora commented 5 years ago

Got it, thanks.