Open PetitLepton opened 5 years ago
Hi,
it turns out that the problem seems to come from a call to /dev/random
on the server I am using.
The following example test.py
from nbconvert.preprocessors import ExecutePreprocessor
ep = ExecutePreprocessor(kernel_name="python3")
km, kc = ep.start_new_kernel()
km.shutdown_kernel()
can get stuck on (using strace python test.py
)
open("/dev/random", O_RDONLY) = 6
poll([{fd=6, events=POLLIN}], 1, -1
while the running script goes on as
open("/dev/random", O_RDONLY) = 6
poll([{fd=6, events=POLLIN}], 1, -1) = 1 ([{fd=6, revents=POLLIN}])
close(6) = 0
open("/dev/urandom", O_RDONLY) = 6
This is a similar issue: https://github.com/ipython/ipykernel/issues/342
I am running into a strange bug related to the sequential execution of Jupyter notebooks (Python 3 kernels). The main loop runs sequentially the following execution of a set of notebooks through
nbconvert
The executions are run on a daily basis. Some days, the loop over the notebooks works smoothly but other it fails when the program tries to execute the second notebook with
After the failures, if I run the loop again or if I run the execution one by one, it works. It “looks” really random and I do not know how to reproduce the problem.
The executions are run on a Debian server from a
conda
virtual environment with Python 3.6.6 and the following list of relevant packagesIs there a way to log more information during the execution so that, the next time it fails, I could have clues on the behaviour?
Thank you very much for your help!