# Error when I try run code in codejail, in Open edX, can not find file subprocess.py

**URL:** <https://discuss.openedx.org/t/error-when-i-try-run-code-in-codejail-in-open-edx-can-not-find-file-subprocess-py/1416>\
**Category:** Site Operations Help\
**Created:** [February 14, 2020, 10:42am UTC](https://discuss.openedx.org/t/error-when-i-try-run-code-in-codejail-in-open-edx-can-not-find-file-subprocess-py/1416 "2020-02-14T10:42:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Edx\_Email.2](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/edx_email.2/32/514_2.png) [@Edx\_Email.2](https://discuss.openedx.org/u/Edx_Email.2)\
**Post date:** [February 14, 2020, 10:42am UTC](https://discuss.openedx.org/t/error-when-i-try-run-code-in-codejail-in-open-edx-can-not-find-file-subprocess-py/1416/1 "2020-02-14T10:42:04Z")

</div>

1. Before I’d installed codejail sandbox by instructions from [https://docs.bitnami.com/installer/apps/edx/configuration/sandbox-codejail](https://docs.bitnami.com/installer/apps/edx/configuration/sandbox-codejail).  
Also I talked about the problem with bitnami support in end of topic: [https://community.bitnami.com/t/unable-to-deliver-your-submission-to-grader-reason-queue-edx-demox-not-found-please-try-again-later/72080/5](https://community.bitnami.com/t/unable-to-deliver-your-submission-to-grader-reason-queue-edx-demox-not-found-please-try-again-later/72080/5). They just closed it, and wrote me, that on this forum I should ask about codejail.  
But I’d found instruction: [https://github.com/edx/codeja](https://github.com/edx/codeja)
2. In directory edx\_installdir/apps/edx/venvs/edxapp/src/codejail I’d found codejail
3. As wrote on page [https://github.com/edx/codejail](https://github.com/edx/codejail), I’ve activated command edx\_installdir/use\_edx
4. By the same instruction, I’d run python. And wrote next:  
import codejail.jail\_code  
codejail.jail\_code.configure(‘python’, ‘/bin/python’)  
import codejail.safe\_exec  
codejail.safe\_exec.safe\_exec(“a=5”, {})
5. As result I have an error. An info about the error is on a screenshoot: [https://drive.google.com/open?id=1Q0\_-uLlex3MnZWHhQ9YGUHVc-SIB2L0K](https://drive.google.com/open?id=1Q0_-uLlex3MnZWHhQ9YGUHVc-SIB2L0K)

---

<div class="post-metadata">

**Author:** ![joshm](https://avatars.discourse-cdn.com/v4/letter/j/4af34b/32.png) [@joshm](https://discuss.openedx.org/u/joshm)\
**Post date:** [February 24, 2020, 2:49pm UTC](https://discuss.openedx.org/t/error-when-i-try-run-code-in-codejail-in-open-edx-can-not-find-file-subprocess-py/1416/2 "2020-02-24T14:49:36Z")

</div>

@Edx_Email.2 It looks as though you’ve specified a binary that doesn’t exist.

Is `/bin/python` a binary on your system?  
Most systems I’ve seen have python installed in `/usr/bin/python`.

You can find your python installation location by running `type -P python`.  
Try configuring codejail with that path instead of `/bin/python`

---

<div class="post-metadata">

**Author:** ![Edx\_Email.2](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/edx_email.2/32/514_2.png) [@Edx\_Email.2](https://discuss.openedx.org/u/Edx_Email.2)\
**Post date:** [March 2, 2020, 10:14am UTC](https://discuss.openedx.org/t/error-when-i-try-run-code-in-codejail-in-open-edx-can-not-find-file-subprocess-py/1416/3 "2020-03-02T10:14:41Z")

</div>

No, I’ve specified true binary.  
I’ve tried and “/usr/bin/python”, and “edx\_directory/apps/edx/venvs/edxapp-sandbox/bin/python”
