[Errno 2] No such file or directory: 'TMPDIR=tmp'

Those kind of problems require a properly configured code sandbox 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, then the easiest option is to use the codejail plugin. If it was working before maybe they can check if there’s a misconfiguration error.