DOMjudge / domjudge-packaging

DOMjudge packaging for (Linux) distributions and live image
32 stars 40 forks source link

Supporting additional python libraries #141

Closed matko031 closed 1 year ago

matko031 commented 1 year ago

I am running judgehost in docker container. I would like to allow the participants to use numpy in their submissions. I have tried running /opt/domjudge/judgehost/bin/dj_run_chroot and then apt install python3-pip && pip3 install numpy inside the chroot. Everything goes smoothly and import numpy in a python shell inside chroot works fine. However, when I upload submission with import numpy in it, I still get ModuleNotFoundError: No module named 'numpy'

vmcj commented 1 year ago

I think it is better to ask for help in Slack , as I suspect we will not add numpy to the chroot so will never package a docker container which will have this installed.

matko031 commented 1 year ago

The issue is not that numpy is not present in the chroot by default, but that when I install it manually, the submissions using numpy still don't work. But I'll ask about it in Slack, thanks!

vmcj commented 1 year ago

I think this was resolved in Slack so I'll close this issue.