Search code examples
linux-kerneljupyterhub

Kernel keeps dying and restarting when running some lines in python Notebook


I get the error -->

/apps/anaconda3/bin/python: symbol lookup error: /apps/anaconda3/lib/python3.6/site-packages/mkl/../../../libmkl_intel_thread.so: undefined symbol: omp_get_num_procs

To fix this, I tried updating mkl package by doing a "conda update mkl", and then restarting the jupyterhub service. But still, the issue persists.

the libmkl_intel_thread.so file is located in the below paths -

/apps/anaconda3/envs/myEnv/lib/libmkl_intel_thread.so
/apps/anaconda3/lib/libmkl_intel_thread.so
/apps/anaconda3/pkgs/mkl-2017.0.1-0/lib/libmkl_intel_thread.so
/apps/anaconda3/pkgs/mkl-2019.4-243/lib/libmkl_intel_thread.so

my $PATH is -->

/apps/anaconda3/envs/myEnv/bin:/apps/anaconda3/condabin:/apps/anaconda3/bin:/opt/mssql-tools/bin:/apps/anaconda3/lib/python3.6/site-packages:/apps/anaconda3/envs/myEnv:/apps/anaconda3/envs/myEnv/bin:/apps/anaconda3/bin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

What could be wrong ?


Solution

  • Looks like you are missing libiomp5.so. Instead of updating, can you run conda update intel-openmp? Also make sure the file is in your LD_LIBRARY_PATH. Have a look at this bug report: github.com/ContinuumIO/anaconda-issues/issues/10195