Open hoba87 opened 4 years ago
No idea, sorry. Like you, my first suspicion is that some environment variable is different — not that you can set environment variables for notebooks in the Jupyter kernelspec file so maybe you could experiment with that.
Just out of curiosity I have tried again to import meep, and now it works also for jupyter with jupyterhub. I don't exactly remember what I have changed since I had this issue, but perhaps it is the env_keep in the jupyterhub_config.py:
c.Spawner.env_keep = ['PATH', 'LD_LIBRARY_PATH', 'PYTHONPATH', 'VIRTUAL_ENV', 'LANG', 'LC_ALL', 'MKL_NUM_THREADS', 'OMP_NUM_THREADS', 'OPENBLAS_NUM_THREADS', 'BASH_FUNC__moduleraw', 'BASH_FUNC_switchml', 'BASH_FUNC_module', 'MODULESHOME', 'MODULEPATH', 'MODULES_CMD']
I'm using jupyter with jupyterhub and when I try to import meep the kernel is crashing during the MPI init:
If I use python or ipython from the console or even start a jupyter notebook directly from the console the import of meep is no problem. The environment variables PATH and LD_LIBRARY_PATH are nearly the same. Jupyterhub:
console, etc:
Any idea why this could happen?