Home | News | Documentation | Download

Problem Using Jupyter Notebook with conda built PyROOT

I have used the following command to create a conda environment named “myenv2” with root;

conda create --name myenv2 --channel conda-forge python=3 root

I then proceeded to activate said environment with;

conda activate myenv2 

After doing so I checked to see if I could import root in python so I opened python in this environment and was able to import ROOT;

(myenv2) boraulu@x86_64-apple-darwin13 ~ % python                
Python 3.8.3 | packaged by conda-forge | (default, Jun  1 2020, 17:21:09) 
[Clang 9.0.1 ] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import ROOT
>>> 

I then proceeded to open jupyter notebook via root --notebook and tried to import root with import ROOT however the python3 kernel died with the following error in the terminal;

Fatal Python error: _PyInterpreterState_Get(): no current thread state
Python runtime state: unknown

 *** Break *** abort
[/Users/boraulu/opt/anaconda3/envs/myenv2/lib/libCore.6.22.00.so] TUnixSystem::DispatchSignals(ESignals) (no debug info)
[/usr/lib/system/libsystem_platform.dylib] _sigtramp (no debug info)
[/usr/lib/dyld] dyld::sBatchHandlers (no debug info)
[/usr/lib/system/libsystem_c.dylib] abort (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/lib/libpython3.8.dylib] fatal_error (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/lib/libpython3.8.dylib] Py_FatalError (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/lib/libpython3.8.dylib] PyModule_Create2 (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/lib/libJupyROOT3_8.6.22.00.so] PyInit_libJupyROOT3_8 (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyImport_LoadDynamicModuleWithSpec (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _imp_create_dynamic (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] cfunction_vectorcall_FASTCALL (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] PyVectorcall_Call (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalCodeWithName (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyFunction_Vectorcall (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] call_function (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyFunction_Vectorcall (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] call_function (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyFunction_Vectorcall (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] call_function (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyFunction_Vectorcall (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] call_function (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyFunction_Vectorcall (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] call_function (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyFunction_Vectorcall (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] call_function (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalCodeWithName (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyFunction_Vectorcall (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] call_function (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalCodeWithName (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyFunction_Vectorcall (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] call_function (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalCodeWithName (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] builtin_exec (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] cfunction_vectorcall_FASTCALL (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] PyVectorcall_Call (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalCodeWithName (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyFunction_Vectorcall (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] call_function (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyFunction_Vectorcall (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] call_function (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyFunction_Vectorcall (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] call_function (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyFunction_Vectorcall (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] call_function (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyFunction_Vectorcall (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] object_vacall (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyObject_CallMethodIdObjArgs (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] PyImport_ImportModuleLevelObject (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] builtin___import__ (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] cfunction_call_varargs (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalCodeWithName (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyFunction_Vectorcall (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] call_function (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalCodeWithName (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyFunction_Vectorcall (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] object_vacall (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyObject_CallMethodIdObjArgs (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] PyImport_ImportModuleLevelObject (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] builtin___import__ (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] cfunction_call_varargs (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalCodeWithName (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyFunction_Vectorcall (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalCodeWithName (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] builtin_exec (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] cfunction_vectorcall_FASTCALL (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] PyVectorcall_Call (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalCodeWithName (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyFunction_Vectorcall (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] call_function (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyFunction_Vectorcall (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] call_function (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyFunction_Vectorcall (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] call_function (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyFunction_Vectorcall (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] call_function (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyFunction_Vectorcall (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] object_vacall (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyObject_CallMethodIdObjArgs (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] PyImport_ImportModuleLevelObject (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] builtin___import__ (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] cfunction_call_varargs (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalCodeWithName (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyFunction_Vectorcall (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] call_function (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalCodeWithName (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyFunction_Vectorcall (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] object_vacall (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyObject_CallMethodIdObjArgs (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] PyImport_ImportModuleLevelObject (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] builtin___import__ (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] cfunction_call_varargs (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalCodeWithName (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyFunction_Vectorcall (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalCodeWithName (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] builtin_exec (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] cfunction_vectorcall_FASTCALL (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] PyVectorcall_Call (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalCodeWithName (no debug info)
 *** Break *** abort
[/Users/boraulu/opt/anaconda3/envs/myenv2/lib/libCore.6.22.00.so] TUnixSystem::DispatchSignals(ESignals) (no debug info)
[/usr/lib/system/libsystem_platform.dylib] _sigtramp (no debug info)
[/usr/lib/dyld] dyld::sBatchHandlers (no debug info)
[/usr/lib/system/libsystem_c.dylib] abort (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/lib/libpython3.8.dylib] fatal_error (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/lib/libpython3.8.dylib] Py_FatalError (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/lib/libpython3.8.dylib] PyModule_Create2 (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/lib/libJupyROOT3_8.6.22.00.so] PyInit_libJupyROOT3_8 (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyImport_LoadDynamicModuleWithSpec (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _imp_create_dynamic (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] cfunction_vectorcall_FASTCALL (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] PyVectorcall_Call (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalCodeWithName (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyFunction_Vectorcall (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] call_function (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyFunction_Vectorcall (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] call_function (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyFunction_Vectorcall (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] call_function (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyFunction_Vectorcall (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] call_function (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyFunction_Vectorcall (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] call_function (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyFunction_Vectorcall (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] call_function (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalCodeWithName (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyFunction_Vectorcall (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] call_function (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalCodeWithName (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyFunction_Vectorcall (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] call_function (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalCodeWithName (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] builtin_exec (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] cfunction_vectorcall_FASTCALL (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] PyVectorcall_Call (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalCodeWithName (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyFunction_Vectorcall (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] call_function (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyFunction_Vectorcall (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] call_function (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyFunction_Vectorcall (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] call_function (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyFunction_Vectorcall (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] call_function (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyFunction_Vectorcall (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] object_vacall (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyObject_CallMethodIdObjArgs (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] PyImport_ImportModuleLevelObject (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] builtin___import__ (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] cfunction_call_varargs (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalCodeWithName (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyFunction_Vectorcall (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] call_function (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalCodeWithName (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyFunction_Vectorcall (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] object_vacall (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyObject_CallMethodIdObjArgs (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] PyImport_ImportModuleLevelObject (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] builtin___import__ (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] cfunction_call_varargs (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalCodeWithName (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyFunction_Vectorcall (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalCodeWithName (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] builtin_exec (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] cfunction_vectorcall_FASTCALL (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] PyVectorcall_Call (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalCodeWithName (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyFunction_Vectorcall (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] call_function (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyFunction_Vectorcall (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] call_function (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyFunction_Vectorcall (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] call_function (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyFunction_Vectorcall (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] call_function (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyFunction_Vectorcall (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] object_vacall (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyObject_CallMethodIdObjArgs (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] PyImport_ImportModuleLevelObject (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] builtin___import__ (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] cfunction_call_varargs (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalCodeWithName (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyFunction_Vectorcall (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] call_function (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalCodeWithName (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyFunction_Vectorcall (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] object_vacall (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyObject_CallMethodIdObjArgs (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] PyImport_ImportModuleLevelObject (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] builtin___import__ (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] cfunction_call_varargs (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalCodeWithName (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyFunction_Vectorcall (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalCodeWithName (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] builtin_exec (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] cfunction_vectorcall_FASTCALL (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] PyVectorcall_Call (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boraulu/opt/anaconda3/envs/myenv2/bin/python] _PyEval_EvalCodeWithName (no debug info)
[I 01:13:43.713 NotebookApp] KernelRestarter: restarting kernel (1/5), keep random ports
WARNING:root:kernel 0b2ce752-175e-4c33-9dd4-9b53dd9f30aa restarted

Then I checked from the terminal if something was wrong with ipython;

(myenv2) boraulu@x86_64-apple-darwin13 ~ % ipython
Python 3.8.3 | packaged by conda-forge | (default, Jun  1 2020, 17:21:09) 
Type 'copyright', 'credits' or 'license' for more information
IPython 7.15.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import ROOT                                                             

In [2]:

But it worked fine. So then I decided to check if I was using the correct kernel with the correct path so I opened jupyter notebook again and entered the following;

In [1] : import sys
           sys.version
Out [1] : '3.8.3 | packaged by conda-forge | (default, Jun  1 2020, 17:21:09) \n[Clang 9.0.1 ]'

In [2] : sys.executable
Out [2] : /Users/boraulu/opt/anaconda3/envs/myenv2/bin/python

In [3] : sys.path
Out [3] : ['/Users/boraulu', '/Users/boraulu/opt/anaconda3/envs/myenv/lib', '/Users/boraulu', '/Users/boraulu/opt/anaconda3/envs/myenv2/lib/python38.zip', '/Users/boraulu/opt/anaconda3/envs/myenv2/lib/python3.8', '/Users/boraulu/opt/anaconda3/envs/myenv2/lib/python3.8/lib-dynload', '', '/Users/boraulu/opt/anaconda3/envs/myenv2/lib/python3.8/site-packages', '/Users/boraulu/opt/anaconda3/envs/myenv2/lib/python3.8/site-packages/IPython/extensions', '/Users/boraulu/.ipython']

Looking at these, I saw that there was no problem (In path you can see a conspicuous “myenv” but it has been properly deleted so it does not affect path).

At this point, I tried to see if I could import another module;

import numpy

And it was successful. So now I am left baffled as I can import root in terminal python and ipython but not in jupyter notebook (or Atom-Hydrogen the same happens there also). Please help :disappointed_relieved:

_ROOT Version: 6.22.0
_Platform: MacOS 10.15.5 Catalina
_Compiler: Clang 9.0.1


I think @etejedor can help you.

It looks like a regression in the latest version of ROOT. Hopefully it will be fixed soon but for now it will work if you use root=6.20 in your call to conda create.

I opened a ticket for this issue:

https://sft.its.cern.ch/jira/browse/ROOT-10884

Thank you so much, it did work once I downgraded root.

Thank you.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.