Hi,
I'm trying to create a new question type to use Julia language with the following template:
import subprocess
julia_prog = """{{ STUDENT_ANSWER | e('py') }}"""
julia_prog += "\n" + """{{TEST.testcode | e('py')}}"""
with open("prog.jl", "w") as src:
print(julia_prog, file=src)
output = subprocess.check_output(["julia","prog.jl"], universal_newlines=True)
print(output)
However, when I test a question I get the following error:
***Error***
Traceback (most recent call last):
File "__tester__.python3", line 11, in <module>
output = subprocess.check_output(["julia","prog.jl"], universal_newlines=True)
File "/usr/lib/python3.6/subprocess.py", line 336, in check_output
**kwargs).stdout
File "/usr/lib/python3.6/subprocess.py", line 403, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/lib/python3.6/subprocess.py", line 709, in __init__
restore_signals, start_new_session)
File "/usr/lib/python3.6/subprocess.py", line 1344, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
PermissionError: [Errno 13] Permission denied: 'julia'Any idea of what could be wrong?