ROOT Version: 6.14
Platform: MacOS High Sierra
Compiler: Not Provided
Hi everyone. I have problems with importing ROOT when computing on python (both 2.7 and 3.6.6). The error is as follows (without source .bashrc):
import ROOT
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'ROOT'
But when I do source .bashrc I get the following:
import ROOT
*** Break *** segmentation violation
[/usr/lib/system/libsystem_platform.dylib] _sigtramp (no debug info)
[<unknown binary>] (no debug info)
[/Users/boldrinicoder/anaconda3/lib/libpython3.6m.dylib] PyUnicode_InternFromString (no debug info)
[/Users/boldrinicoder/buildroot/lib/libPyROOT.so] PyROOT::CreatePyStrings() /Users/boldrinicoder/root/root-6.14.06 2/bindings/pyroot/src/PyStrings.cxx:64
[/Users/boldrinicoder/buildroot/lib/libPyROOT.so] PyInit_libPyROOT /Users/boldrinicoder/root/root-6.14.06 2/bindings/pyroot/src/RootModule.cxx:848
[/Users/boldrinicoder/anaconda3/bin/python] _PyImport_LoadDynamicModuleWithSpec (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] _imp_create_dynamic (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] PyCFunction_Call (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] _PyEval_EvalCodeWithName (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] fast_function (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] call_function (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] fast_function (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] call_function (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] fast_function (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] call_function (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] fast_function (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] call_function (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] fast_function (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] call_function (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] _PyFunction_FastCallDict (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] _PyObject_FastCallDict (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] _PyObject_CallMethodIdObjArgs (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] PyImport_ImportModuleLevelObject (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] _PyEval_EvalCodeWithName (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] builtin_exec (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] PyCFunction_Call (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] _PyEval_EvalCodeWithName (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] fast_function (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] call_function (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] fast_function (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] call_function (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] fast_function (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] call_function (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] fast_function (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] call_function (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] _PyFunction_FastCallDict (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] _PyObject_FastCallDict (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] _PyObject_CallMethodIdObjArgs (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] PyImport_ImportModuleLevelObject (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] _PyEval_EvalCodeWithName (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] builtin_exec (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] PyCFunction_Call (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] _PyEval_EvalCodeWithName (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] fast_function (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] call_function (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] fast_function (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] call_function (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] fast_function (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] call_function (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] fast_function (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] call_function (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] _PyFunction_FastCallDict (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] _PyObject_FastCallDict (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] _PyObject_CallMethodIdObjArgs (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] PyImport_ImportModuleLevelObject (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] _PyEval_EvalFrameDefault (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] _PyEval_EvalCodeWithName (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] PyRun_InteractiveOneObjectEx (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] PyRun_InteractiveLoopFlags (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] PyRun_AnyFileExFlags (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] Py_Main (no debug info)
[/Users/boldrinicoder/anaconda3/bin/python] main (no debug info)
[/usr/lib/system/libdyld.dylib] start (no debug info)
[<unknown binary>] (no debug info)
This is what I wrote in the bashrc:
source /Users/boldrinicoder/buildroot/bin/thisroot.sh
export PYTHONDIR=/Users/boldrinicoder/anaconda3/bin/python
export PYTHONPATH=$ROOTSYS:$PYTHONDIR:/lib:/Users/boldrinicoder/anaconda3/bin/python:/lib:$PYTHONPATH
So I think the problem is in here. I installed ROOT via the root build description in the root building page. I can’t figure out what’s the problem