-
Notifications
You must be signed in to change notification settings - Fork 268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Return "interrupt" on importing python additional module (e.g. numpy, scipy) #1120
Comments
Sorry, this is an unsupported configuration, and we don't have the resources to track down what's going on. Very likely something is running into the sandbox, and adding debug prints inside it may help you track down what. If you figure it out, feel free to leave a comment in case it's useful for others. |
Thank you for reply. I fought with debug print and finally it works (probably). The error on importing numpy was
This was not "datetime importing" issue as the message saying, but the solution is adding environment variable OPENBLAS_NUM_THREADS. It was referred on numpy/numpy#14474 (comment)
I think the reason why the environment variable is required is that the executed process is detached, but I don't know clearly . And I’m wondering adding directly to python_executer.py is not good idea. If there is a better way and/or knowledge, I would appreciate if you could share it. |
Good sleuthing. OpenBLAS is likely running into the
(Likely, you wouldn't need to set it to Regarding your modification to Rather than modify the judge-server/dmoj/executors/mono_executor.py Lines 49 to 56 in 82871ee
|
Many thanks! |
Hi, @falatak as a follow up: when you say "I set PYTHONPATH and python on docker judge container could import numpy as expected.", at which stage one should do this actually? |
@ktikhonov ,This process was performed to ensure that python and numpy were correctly installed in the judge container for troubleshooting. Therefore, it should be done at the initial stage. |
Hello,
My problem may be same as the last comment in #865, and it looks unresolved.
I may understand python is executed with -S option. So instead of modification of python_executer.py suggested in #865, I set PYTHONPATH and python on docker judge container could import numpy as expected.
But, judge ended up saying "interrupt" same as #865. It occur on importing numpy, like
Can you please tell us how to solve this problem?
Thank you for your cooperation!
The text was updated successfully, but these errors were encountered: