# \[Errno 2\] No such file or directory: &#39;TMPDIR=tmp&#39;

**URL:** <https://discuss.openedx.org/t/errno-2-no-such-file-or-directory-39-tmpdir-tmp-39/18132>\
**Category:** Site Operations Help\
**Created:** [January 8, 2026, 4:41pm UTC](https://discuss.openedx.org/t/errno-2-no-such-file-or-directory-39-tmpdir-tmp-39/18132 "2026-01-08T16:41:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ersoy](https://avatars.discourse-cdn.com/v4/letter/e/22d042/32.png) [@Ersoy](https://discuss.openedx.org/u/Ersoy)\
**Post date:** [January 8, 2026, 4:41pm UTC](https://discuss.openedx.org/t/errno-2-no-such-file-or-directory-39-tmpdir-tmp-39/18132/1 "2026-01-08T16:41:22Z")

</div>

Hello I am Ersoy, a student from TU/e. I am part of a team that is working on creating a course on the OpenLearnity edX platform. Recently, I started seeing errors on some questions that I created earlier that had no problems. Specifically for the Python Evaluated question types on the platform, I get the error `[Errno 2] No such file or directory: &#39;TMPDIR=tmp&#39 `. As I said, the questions used to work fine but somehow I get this error for basically and Python or Javascript evaluated questions.

Furthermore, to test if the issue was with my scripts (even though they were not changed) I tried to create a default Python Evaluated question and the same error showed up even before I wrote my script.

I found some similar errors on different forms but none of them really addressed my issue. I also provided the full error displayed on the platform below:

```auto
Error formatting HTML for problem:

cannot create LoncapaProblem block-v1:MCS+2IC30+2026+type@problem+block@f2d254a1729e4066acb6a00c630ca62b: Error while executing script code: [Errno 2] No such file or directory: &#39;TMPDIR=tmp&#39;

```

---

<div class="post-metadata">

**Author:** ![MoisesGonzalezS](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/moisesgonzalezs/32/1996_2.png) [@MoisesGonzalezS](https://discuss.openedx.org/u/MoisesGonzalezS)\
**Post date:** [January 8, 2026, 7:34pm UTC](https://discuss.openedx.org/t/errno-2-no-such-file-or-directory-39-tmpdir-tmp-39/18132/2 "2026-01-08T19:34:55Z")

</div>

Those kind of problems require a properly configured [code sandbox](https://github.com/openedx/codejail) to be able to run.

You need to contact your site operator and ask them to enable such sandbox. If your platform is deployed using [Tutor](https://github.com/overhangio/tutor), then the easiest option is to use the [codejail plugin](https://github.com/eduNEXT/tutor-contrib-codejail/). If it was working before maybe they can check if there’s a misconfiguration error.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/openedx/original/2X/e/e0015f89e879bc75925b71fd11133ab15fe98297.png) [@system](https://discuss.openedx.org/u/system)\
**Post date:** [April 8, 2026, 7:35pm UTC](https://discuss.openedx.org/t/errno-2-no-such-file-or-directory-39-tmpdir-tmp-39/18132/3 "2026-04-08T19:35:28Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
