Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accessing pyROOT #10676

Closed
ethereal-space-cadet16 opened this issue May 31, 2022 · 5 comments
Closed

Accessing pyROOT #10676

ethereal-space-cadet16 opened this issue May 31, 2022 · 5 comments
Labels

Comments

@ethereal-space-cadet16
Copy link

I'm trying to work on this tutorial: https://indico.cern.ch/event/704163/contributions/2936719/attachments/1693833/2726445/Tutorial-PyROOT.pdf, but when I tried to import ROOT initially with my base environment and base ROOT installation, I got a module not found error. So in order to go around that, I redownloaded ROOT via conda and tried to run the myScript.py I wrote but I ended up getting this very large error, saying that the code broke:

he lines below might hint at the cause of the crash.
You may get help by asking at the ROOT forum https://root.cern.ch/forum
Only if you are really convinced it is a bug in ROOT then please submit a
report at https://root.cern.ch/bugs Please post the ENTIRE stack trace
from above as an attachment in addition to anything else
that might help us fixing this issue.

#6 0x00007ffa4ee78781 in llvm::sys::DynamicLibrary::addPermanentLibrary(void*, std::__cxx11::basic_string<char, std::char_traits, std::allocator >) () from /home/rebrobles/root/lib/libCling.so
#7 0x00007ffa4bf271ed in CreateInterpreter () from /home/rebrobles/root/lib/libCling.so
#8 0x00007ffa4fe05673 in TROOT::InitInterpreter() () from /home/rebrobles/root/lib/libCore.so.6.24
#9 0x00007ffa4fe05b6f in ROOT::Internal::GetROOT2() () from /home/rebrobles/root/lib/libCore.so.6.24
#10 0x00007ffa4bf1f89e in TClingLookupHelper__ExistingTypeCheck(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator >&) () from /home/rebrobles/root/lib/libCling.so
#11 0x00007ffa4fee83ba in TClassEdit::ResolveTypedef[abi:cxx11](char const
, bool) () from /home/rebrobles/root/lib/libCore.so.6.24
#12 0x00007ffa4feeea6c in TClassEdit::TSplitType::ShortType(std::__cxx11::basic_string<char, std::char_traits, std::allocator >&, int) () from /home/rebrobles/root/lib/libCore.so.6.24
#13 0x00007ffa4feecde6 in TClassEdit::GetNormalizedName(std::__cxx11::basic_string<char, std::char_traits, std::allocator >&, std::experimental::fundamentals_v1::basic_string_view<char, std::char_traits >) () from /home/rebrobles/root/lib/libCore.so.6.24
#14 0x00007ffa4ff370b4 in ROOT::TSchemaRule::SetTargetClass(TString const&) () from /home/rebrobles/root/lib/libCore.so.6.24
#15 0x00007ffa4ff3a7f0 in ROOT::TSchemaRule::SetFromRule(char const*) () from /home/rebrobles/root/lib/libCore.so.6.24
#16 0x00007ffa4ff0ba65 in TClass::AddRule(char const*) () from /home/rebrobles/root/lib/libCore.so.6.24
#17 0x00007ffa4ff0bd0f in (anonymous namespace)::ReadRulesContent(_IO_FILE*) () from /home/rebrobles/root/lib/libCore.so.6.24
#18 0x00007ffa4ff0c02c in TClass::ReadRules() () from /home/rebrobles/root/lib/libCore.so.6.24
#19 0x00007ffa4bf59475 in TCling::Initialize() () from /home/rebrobles/root/lib/libCling.so
#20 0x00007ffa50ab8c2f in TROOT::InitInterpreter() () from /home/rebrobles/anaconda3/envs/my_root_env/bin/../lib/libCore.so.6.26
#21 0x00007ffa50ab8ea0 in ROOT::Internal::GetROOT2() () from /home/rebrobles/anaconda3/envs/my_root_env/bin/../lib/libCore.so.6.26
#22 0x00007ffa50dbacf0 in __static_initialization_and_destruction_0(int, int) [clone .constprop.0] () from /home/rebrobles/anaconda3/envs/my_root_env/bin/../lib/libcppyy_backend3_10.so.6.26
#23 0x00007ffa51cb6b8a in call_init (l=, argc=argc
entry=1, argv=argv
entry=0x7fff519cefe8, env=env
entry=0x55b069205280) at dl-init.c:72
#24 0x00007ffa51cb6c91 in call_init (env=0x55b069205280, argv=0x7fff519cefe8, argc=1, l=) at dl-init.c:30
#25 _dl_init (main_map=0x55b0692853c0, argc=1, argv=0x7fff519cefe8, env=0x55b069205280) at dl-init.c:119
#26 0x00007ffa51a6c895 in __GI__dl_catch_exception (exception=exception
entry=0x0, operate=operate
entry=0x7ffa51cba2c0 <call_dl_init>, args=args
entry=0x7fff519cb890) at dl-error-skeleton.c:182
#27 0x00007ffa51cbb0bf in dl_open_worker (a=a
entry=0x7fff519cba40) at dl-open.c:758
#28 0x00007ffa51a6c838 in __GI__dl_catch_exception (exception=exception
entry=0x7fff519cba20, operate=operate
entry=0x7ffa51cbac10 <dl_open_worker>, args=args
entry=0x7fff519cba40) at dl-error-skeleton.c:208
#29 0x00007ffa51cba5fa in _dl_open (file=0x7ffa510b53d0 "/home/rebrobles/anaconda3/envs/my_root_env/lib/python3.10/site-packages/libcppyy3_10.so", mode=-2147483646, caller_dlopen=, nsid=-2, argc=1, argv=0x7fff519cefe8, env=0x55b069205280) at dl-open.c:837
#30 0x00007ffa51c5d34c in dlopen_doit (a=a
entry=0x7fff519cbc60) at dlopen.c:66
#31 0x00007ffa51a6c838 in __GI__dl_catch_exception (exception=exception
entry=0x7fff519cbc00, operate=operate
entry=0x7ffa51c5d2f0 <dlopen_doit>, args=args
entry=0x7fff519cbc60) at dl-error-skeleton.c:208
#32 0x00007ffa51a6c903 in __GI__dl_catch_error (objname=objname
entry=0x55b06913d600, errstring=errstring
entry=0x55b06913d608, mallocedp=mallocedp
entry=0x55b06913d5f8, operate=operate
entry=0x7ffa51c5d2f0 <dlopen_doit>, args=args
entry=0x7fff519cbc60) at dl-error-skeleton.c:227
#33 0x00007ffa51c5db59 in _dlerror_run (operate=operate
entry=0x7ffa51c5d2f0 <dlopen_doit>, args=args
entry=0x7fff519cbc60) at dlerror.c:170
#34 0x00007ffa51c5d3da in __dlopen (file=, mode=) at dlopen.c:87
#35 0x000055b06815ee8d in _PyImport_FindSharedFuncptr (prefix=0x55b0681b5398 "PyInit", shortname=0x7ffa510d24e0 "libcppyy3_10", pathname=0x7ffa510b53d0 "/home/rebrobles/anaconda3/envs/my_root_env/lib/python3.10/site-packages/libcppyy3_10.so", fp=0x0) at /usr/local/src/conda/python-3.10.4/Python/dynload_shlib.c:100
#36 0x000055b06815e707 in _PyImport_LoadDynamicModuleWithSpec (fp=0x0, spec=0x7ffa510d2ce0) at /usr/local/src/conda/python-3.10.4/Python/importdl.c:137
#37 _imp_create_dynamic_impl (module=, file=, spec=0x7ffa510d2ce0) at /usr/local/src/conda/python-3.10.4/Python/import.c:2049
#38 _imp_create_dynamic (module=, args=, nargs=) at /usr/local/src/conda/python-3.10.4/Python/clinic/import.c.h:330
#39 0x000055b06807e5bf in cfunction_vectorcall_FASTCALL (func=0x7ffa51345530, args=0x7ffa510d1528, nargsf=, kwnames=) at /usr/local/src/conda/python-3.10.4/Objects/methodobject.c:430
#40 0x000055b0680733ac in do_call_core (kwdict=0x7ffa50ee20c0, callargs=0x7ffa510d1510, func=0x7ffa51345530, trace_info=0x7fff519cc0d0, tstate=) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:5891
#41 _PyEval_EvalFrameDefault (tstate=, f=, throwflag=) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:4277
#42 0x000055b06807e3cf in _PyEval_EvalFrame (throwflag=0, f=0x7ffa512ddb40, tstate=0x55b069159680) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:5052
#43 _PyEval_Vector (kwnames=, argcount=, args=, locals=0x0, con=0x7ffa512f9520, tstate=0x55b069159680) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:5065
#44 _PyFunction_Vectorcall (func=0x7ffa512f9510, stack=, nargsf=, kwnames=) at /usr/local/src/conda/python-3.10.4/Objects/call.c:342
#45 0x000055b06807229b in _PyObject_VectorcallTstate (kwnames=0x0, nargsf=, args=0x7ffa512c1bc8, callable=0x7ffa512f9510, tstate=0x55b069159680) at /usr/local/src/conda/python-3.10.4/Include/cpython/abstract.h:114
#46 PyObject_Vectorcall (kwnames=0x0, nargsf=, args=0x7ffa512c1bc8, callable=0x7ffa512f9510) at /usr/local/src/conda/python-3.10.4/Include/cpython/abstract.h:123
#47 call_function (kwnames=0x0, oparg=, pp_stack=, trace_info=0x7fff519cc290, tstate=) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:5867
#48 _PyEval_EvalFrameDefault (tstate=, f=, throwflag=) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:4181
#49 0x000055b06807e3cf in _PyEval_EvalFrame (throwflag=0, f=0x7ffa512c1a40, tstate=0x55b069159680) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:5052
#50 _PyEval_Vector (kwnames=, argcount=, args=, locals=0x0, con=0x7ffa5137e570, tstate=0x55b069159680) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:5065
#51 _PyFunction_Vectorcall (func=0x7ffa5137e560, stack=, nargsf=, kwnames=) at /usr/local/src/conda/python-3.10.4/Objects/call.c:342
#52 0x000055b06806df2f in _PyObject_VectorcallTstate (kwnames=0x0, nargsf=, args=0x7ffa51350838, callable=0x7ffa5137e560, tstate=0x55b069159680) at /usr/local/src/conda/python-3.10.4/Include/cpython/abstract.h:114
#53 PyObject_Vectorcall (kwnames=0x0, nargsf=, args=0x7ffa51350838, callable=0x7ffa5137e560) at /usr/local/src/conda/python-3.10.4/Include/cpython/abstract.h:123
#54 call_function (kwnames=0x0, oparg=, pp_stack=, trace_info=0x7fff519cc450, tstate=) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:5867
#55 _PyEval_EvalFrameDefault (tstate=, f=, throwflag=) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:4198
#56 0x000055b06807e3cf in _PyEval_EvalFrame (throwflag=0, f=0x7ffa513506c0, tstate=0x55b069159680) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:5052
#57 _PyEval_Vector (kwnames=, argcount=, args=, locals=0x0, con=0x7ffa512f9eb0, tstate=0x55b069159680) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:5065
#58 _PyFunction_Vectorcall (func=0x7ffa512f9ea0, stack=, nargsf=, kwnames=) at /usr/local/src/conda/python-3.10.4/Objects/call.c:342
#59 0x000055b06806dbcc in _PyObject_VectorcallTstate (kwnames=0x0, nargsf=, args=0x7ffa51356690, callable=0x7ffa512f9ea0, tstate=0x55b069159680) at /usr/local/src/conda/python-3.10.4/Include/cpython/abstract.h:114
#60 PyObject_Vectorcall (kwnames=0x0, nargsf=, args=0x7ffa51356690, callable=0x7ffa512f9ea0) at /usr/local/src/conda/python-3.10.4/Include/cpython/abstract.h:123
#61 call_function (kwnames=0x0, oparg=, pp_stack=, trace_info=0x7fff519cc610, tstate=) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:5867
#62 _PyEval_EvalFrameDefault (tstate=, f=, throwflag=) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:4213
#63 0x000055b06807e3cf in _PyEval_EvalFrame (throwflag=0, f=0x7ffa51356510, tstate=0x55b069159680) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:5052
#64 _PyEval_Vector (kwnames=, argcount=, args=, locals=0x0, con=0x7ffa512fa0f0, tstate=0x55b069159680) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:5065
#65 _PyFunction_Vectorcall (func=0x7ffa512fa0e0, stack=, nargsf=, kwnames=) at /usr/local/src/conda/python-3.10.4/Objects/call.c:342
#66 0x000055b06806dbcc in _PyObject_VectorcallTstate (kwnames=0x0, nargsf=, args=0x7ffa512849f0, callable=0x7ffa512fa0e0, tstate=0x55b069159680) at /usr/local/src/conda/python-3.10.4/Include/cpython/abstract.h:114
#67 PyObject_Vectorcall (kwnames=0x0, nargsf=, args=0x7ffa512849f0, callable=0x7ffa512fa0e0) at /usr/local/src/conda/python-3.10.4/Include/cpython/abstract.h:123
#68 call_function (kwnames=0x0, oparg=, pp_stack=, trace_info=0x7fff519cc7d0, tstate=) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:5867
#69 _PyEval_EvalFrameDefault (tstate=, f=, throwflag=) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:4213
#70 0x000055b06807e3cf in _PyEval_EvalFrame (throwflag=0, f=0x7ffa51284840, tstate=0x55b069159680) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:5052
#71 _PyEval_Vector (kwnames=, argcount=, args=, locals=0x0, con=0x7ffa512fb2f0, tstate=0x55b069159680) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:5065
#72 _PyFunction_Vectorcall (func=0x7ffa512fb2e0, stack=, nargsf=, kwnames=) at /usr/local/src/conda/python-3.10.4/Objects/call.c:342
#73 0x000055b06806dbcc in _PyObject_VectorcallTstate (kwnames=0x0, nargsf=, args=0x7ffa512c7650, callable=0x7ffa512fb2e0, tstate=0x55b069159680) at /usr/local/src/conda/python-3.10.4/Include/cpython/abstract.h:114
#74 PyObject_Vectorcall (kwnames=0x0, nargsf=, args=0x7ffa512c7650, callable=0x7ffa512fb2e0) at /usr/local/src/conda/python-3.10.4/Include/cpython/abstract.h:123
#75 call_function (kwnames=0x0, oparg=, pp_stack=, trace_info=0x7fff519cc990, tstate=) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:5867
#76 _PyEval_EvalFrameDefault (tstate=, f=, throwflag=) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:4213
#77 0x000055b06807e3cf in _PyEval_EvalFrame (throwflag=0, f=0x7ffa512c74c0, tstate=0x55b069159680) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:5052
#78 _PyEval_Vector (kwnames=, argcount=, args=, locals=0x0, con=0x7ffa512fb380, tstate=0x55b069159680) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:5065
#79 _PyFunction_Vectorcall (func=0x7ffa512fb370, stack=, nargsf=, kwnames=) at /usr/local/src/conda/python-3.10.4/Objects/call.c:342
#80 0x000055b06806dbcc in _PyObject_VectorcallTstate (kwnames=0x0, nargsf=, args=0x7ffa5103a020, callable=0x7ffa512fb370, tstate=0x55b069159680) at /usr/local/src/conda/python-3.10.4/Include/cpython/abstract.h:114
#81 PyObject_Vectorcall (kwnames=0x0, nargsf=, args=0x7ffa5103a020, callable=0x7ffa512fb370) at /usr/local/src/conda/python-3.10.4/Include/cpython/abstract.h:123
#82 call_function (kwnames=0x0, oparg=, pp_stack=, trace_info=0x7fff519ccb50, tstate=) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:5867
#83 _PyEval_EvalFrameDefault (tstate=, f=, throwflag=) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:4213
#84 0x000055b06807e3cf in _PyEval_EvalFrame (throwflag=0, f=0x7ffa51039ea0, tstate=0x55b069159680) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:5052
#85 _PyEval_Vector (kwnames=, argcount=, args=, locals=0x0, con=0x7ffa512fb410, tstate=0x55b069159680) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:5065
#86 _PyFunction_Vectorcall (func=0x7ffa512fb400, stack=, nargsf=, kwnames=) at /usr/local/src/conda/python-3.10.4/Objects/call.c:342
#87 0x000055b06807229b in _PyObject_VectorcallTstate (kwnames=0x0, nargsf=, args=0x7ffa510753f8, callable=0x7ffa512fb400, tstate=0x55b069159680) at /usr/local/src/conda/python-3.10.4/Include/cpython/abstract.h:114
#88 PyObject_Vectorcall (kwnames=0x0, nargsf=, args=0x7ffa510753f8, callable=0x7ffa512fb400) at /usr/local/src/conda/python-3.10.4/Include/cpython/abstract.h:123
#89 call_function (kwnames=0x0, oparg=, pp_stack=, trace_info=0x7fff519ccd10, tstate=) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:5867
#90 _PyEval_EvalFrameDefault (tstate=, f=, throwflag=) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:4181
#91 0x000055b06807e3cf in _PyEval_EvalFrame (throwflag=0, f=0x7ffa51075260, tstate=0x55b069159680) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:5052
#92 _PyEval_Vector (kwnames=, argcount=, args=, locals=0x0, con=0x7ffa51072de0, tstate=0x55b069159680) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:5065
#93 _PyFunction_Vectorcall (func=0x7ffa51072dd0, stack=, nargsf=, kwnames=) at /usr/local/src/conda/python-3.10.4/Objects/call.c:342
#94 0x000055b06807229b in _PyObject_VectorcallTstate (kwnames=0x0, nargsf=, args=0x7ffa51075200, callable=0x7ffa51072dd0, tstate=0x55b069159680) at /usr/local/src/conda/python-3.10.4/Include/cpython/abstract.h:114
#95 PyObject_Vectorcall (kwnames=0x0, nargsf=, args=0x7ffa51075200, callable=0x7ffa51072dd0) at /usr/local/src/conda/python-3.10.4/Include/cpython/abstract.h:123
#96 call_function (kwnames=0x0, oparg=, pp_stack=, trace_info=0x7fff519cced0, tstate=) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:5867
#97 _PyEval_EvalFrameDefault (tstate=, f=, throwflag=) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:4181
#98 0x000055b068124b92 in _PyEval_EvalFrame (throwflag=0, f=0x7ffa51075090, tstate=0x55b069159680) at /usr/local/src/conda/python-3.10.4/Include/internal/pycore_ceval.h:46
#99 _PyEval_Vector (tstate=0x55b069159680, con=, locals=, args=, argcount=, kwnames=) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:5065
#100 0x000055b068124ad7 in PyEval_EvalCode (co=0x7ffa50ee45b0, globals=0x7ffa50ee0500, locals=) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:1134
#101 0x000055b06812bc1f in builtin_exec_impl (module=, locals=0x7ffa50ee0500, globals=0x7ffa50ee0500, source=0x7ffa50ee45b0) at /usr/local/src/conda/python-3.10.4/Python/bltinmodule.c:1003
#102 builtin_exec (module=, args=, nargs=) at /usr/local/src/conda/python-3.10.4/Python/clinic/bltinmodule.c.h:371
#103 0x000055b06807e5bf in cfunction_vectorcall_FASTCALL (func=0x7ffa5132ca90, args=0x7ffa510c5cd8, nargsf=, kwnames=) at /usr/local/src/conda/python-3.10.4/Objects/methodobject.c:430
#104 0x000055b0680733ac in do_call_core (kwdict=0x7ffa50ee05c0, callargs=0x7ffa510c5cc0, func=0x7ffa5132ca90, trace_info=0x7fff519cd190, tstate=) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:5891
#105 _PyEval_EvalFrameDefault (tstate=, f=, throwflag=) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:4277
#106 0x000055b06807e3cf in _PyEval_EvalFrame (throwflag=0, f=0x7ffa512df130, tstate=0x55b069159680) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:5052
#107 _PyEval_Vector (kwnames=, argcount=, args=, locals=0x0, con=0x7ffa512f9520, tstate=0x55b069159680) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:5065
#108 _PyFunction_Vectorcall (func=0x7ffa512f9510, stack=, nargsf=, kwnames=) at /usr/local/src/conda/python-3.10.4/Objects/call.c:342
#109 0x000055b06807229b in _PyObject_VectorcallTstate (kwnames=0x0, nargsf=, args=0x7ffa5135d188, callable=0x7ffa512f9510, tstate=0x55b069159680) at /usr/local/src/conda/python-3.10.4/Include/cpython/abstract.h:114
#110 PyObject_Vectorcall (kwnames=0x0, nargsf=, args=0x7ffa5135d188, callable=0x7ffa512f9510) at /usr/local/src/conda/python-3.10.4/Include/cpython/abstract.h:123
#111 call_function (kwnames=0x0, oparg=, pp_stack=, trace_info=0x7fff519cd350, tstate=) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:5867
#112 _PyEval_EvalFrameDefault (tstate=, f=, throwflag=) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:4181
#113 0x000055b06807e3cf in _PyEval_EvalFrame (throwflag=0, f=0x7ffa5135d000, tstate=0x55b069159680) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:5052
#114 _PyEval_Vector (kwnames=, argcount=, args=, locals=0x0, con=0x7ffa5137d640, tstate=0x55b069159680) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:5065
#115 _PyFunction_Vectorcall (func=0x7ffa5137d630, stack=, nargsf=, kwnames=) at /usr/local/src/conda/python-3.10.4/Objects/call.c:342
#116 0x000055b06806df2f in _PyObject_VectorcallTstate (kwnames=0x0, nargsf=, args=0x7ffa51355ed0, callable=0x7ffa5137d630, tstate=0x55b069159680) at /usr/local/src/conda/python-3.10.4/Include/cpython/abstract.h:114
#117 PyObject_Vectorcall (kwnames=0x0, nargsf=, args=0x7ffa51355ed0, callable=0x7ffa5137d630) at /usr/local/src/conda/python-3.10.4/Include/cpython/abstract.h:123
#118 call_function (kwnames=0x0, oparg=, pp_stack=, trace_info=0x7fff519cd510, tstate=) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:5867
#119 _PyEval_EvalFrameDefault (tstate=, f=, throwflag=) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:4198
#120 0x000055b06807e3cf in _PyEval_EvalFrame (throwflag=0, f=0x7ffa51355d50, tstate=0x55b069159680) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:5052
#121 _PyEval_Vector (kwnames=, argcount=, args=, locals=0x0, con=0x7ffa512fa0f0, tstate=0x55b069159680) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:5065
#122 _PyFunction_Vectorcall (func=0x7ffa512fa0e0, stack=, nargsf=, kwnames=) at /usr/local/src/conda/python-3.10.4/Objects/call.c:342
#123 0x000055b06806dbcc in _PyObject_VectorcallTstate (kwnames=0x0, nargsf=, args=0x7ffa512845f0, callable=0x7ffa512fa0e0, tstate=0x55b069159680) at /usr/local/src/conda/python-3.10.4/Include/cpython/abstract.h:114
#124 PyObject_Vectorcall (kwnames=0x0, nargsf=, args=0x7ffa512845f0, callable=0x7ffa512fa0e0) at /usr/local/src/conda/python-3.10.4/Include/cpython/abstract.h:123
#125 call_function (kwnames=0x0, oparg=, pp_stack=, trace_info=0x7fff519cd6d0, tstate=) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:5867
#126 _PyEval_EvalFrameDefault (tstate=, f=, throwflag=) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:4213
#127 0x000055b06807e3cf in _PyEval_EvalFrame (throwflag=0, f=0x7ffa51284440, tstate=0x55b069159680) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:5052
#128 _PyEval_Vector (kwnames=, argcount=, args=, locals=0x0, con=0x7ffa512fb2f0, tstate=0x55b069159680) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:5065
#129 _PyFunction_Vectorcall (func=0x7ffa512fb2e0, stack=, nargsf=, kwnames=) at /usr/local/src/conda/python-3.10.4/Objects/call.c:342
#130 0x000055b06806dbcc in _PyObject_VectorcallTstate (kwnames=0x0, nargsf=, args=0x7ffa512c70b0, callable=0x7ffa512fb2e0, tstate=0x55b069159680) at /usr/local/src/conda/python-3.10.4/Include/cpython/abstract.h:114
#131 PyObject_Vectorcall (kwnames=0x0, nargsf=, args=0x7ffa512c70b0, callable=0x7ffa512fb2e0) at /usr/local/src/conda/python-3.10.4/Include/cpython/abstract.h:123
#132 call_function (kwnames=0x0, oparg=, pp_stack=, trace_info=0x7fff519cd890, tstate=) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:5867
#133 _PyEval_EvalFrameDefault (tstate=, f=, throwflag=) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:4213
#134 0x000055b06807e3cf in _PyEval_EvalFrame (throwflag=0, f=0x7ffa512c6f20, tstate=0x55b069159680) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:5052
#135 _PyEval_Vector (kwnames=, argcount=, args=, locals=0x0, con=0x7ffa512fb380, tstate=0x55b069159680) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:5065
#136 _PyFunction_Vectorcall (func=0x7ffa512fb370, stack=, nargsf=, kwnames=) at /usr/local/src/conda/python-3.10.4/Objects/call.c:342
#137 0x000055b06807db35 in _PyObject_VectorcallTstate (kwnames=0x0, nargsf=, args=0x7fff519cd9e0, callable=0x7ffa512fb370, tstate=0x55b069159680) at /usr/local/src/conda/python-3.10.4/Include/cpython/abstract.h:99
#138 object_vacall (tstate=0x55b069159680, base=, callable=0x7ffa512fb370, vargs=) at /usr/local/src/conda/python-3.10.4/Objects/call.c:734
#139 0x000055b06808e5e8 in _PyObject_CallMethodIdObjArgs (obj=0x7fff519cdb70, name=) at /usr/local/src/conda/python-3.10.4/Objects/call.c:825
#140 0x000055b06808deab in import_find_and_load (abs_name=0x7ffa510cbbb0, tstate=0x55b069159680) at /usr/local/src/conda/python-3.10.4/Python/import.c:1521
#141 PyImport_ImportModuleLevelObject (name=0x7ffa510cbbb0, globals=, locals=, fromlist=0x55b0682d3800 <_Py_NoneStruct>, level=0) at /usr/local/src/conda/python-3.10.4/Python/import.c:1622
#142 0x000055b068071980 in import_name (level=0x7ffa512980d0, fromlist=0x55b0682d3800 <_Py_NoneStruct>, name=0x7ffa510cbbb0, f=, tstate=) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:5992
#143 _PyEval_EvalFrameDefault (tstate=, f=, throwflag=) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:3695
#144 0x000055b068124b92 in _PyEval_EvalFrame (throwflag=0, f=0x7ffa512c2040, tstate=0x55b069159680) at /usr/local/src/conda/python-3.10.4/Include/internal/pycore_ceval.h:46
#145 _PyEval_Vector (tstate=0x55b069159680, con=, locals=, args=, argcount=, kwnames=) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:5065
#146 0x000055b068124ad7 in PyEval_EvalCode (co=0x7ffa51255160, globals=0x7ffa51237840, locals=) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:1134
#147 0x000055b06812bc1f in builtin_exec_impl (module=, locals=0x7ffa51237840, globals=0x7ffa51237840, source=0x7ffa51255160) at /usr/local/src/conda/python-3.10.4/Python/bltinmodule.c:1003
#148 builtin_exec (module=, args=, nargs=) at /usr/local/src/conda/python-3.10.4/Python/clinic/bltinmodule.c.h:371
#149 0x000055b06807e5bf in cfunction_vectorcall_FASTCALL (func=0x7ffa5132ca90, args=0x7ffa5124b098, nargsf=, kwnames=) at /usr/local/src/conda/python-3.10.4/Objects/methodobject.c:430
#150 0x000055b0680733ac in do_call_core (kwdict=0x7ffa511ecf00, callargs=0x7ffa5124b080, func=0x7ffa5132ca90, trace_info=0x7fff519cdf80, tstate=) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:5891
#151 _PyEval_EvalFrameDefault (tstate=, f=, throwflag=) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:4277
#152 0x000055b06807e3cf in _PyEval_EvalFrame (throwflag=0, f=0x7ffa51038c10, tstate=0x55b069159680) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:5052
#153 _PyEval_Vector (kwnames=, argcount=, args=, locals=0x0, con=0x7ffa512f9520, tstate=0x55b069159680) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:5065
#154 _PyFunction_Vectorcall (func=0x7ffa512f9510, stack=, nargsf=, kwnames=) at /usr/local/src/conda/python-3.10.4/Objects/call.c:342
#155 0x000055b06807229b in _PyObject_VectorcallTstate (kwnames=0x0, nargsf=, args=0x7ffa51025888, callable=0x7ffa512f9510, tstate=0x55b069159680) at /usr/local/src/conda/python-3.10.4/Include/cpython/abstract.h:114
#156 PyObject_Vectorcall (kwnames=0x0, nargsf=, args=0x7ffa51025888, callable=0x7ffa512f9510) at /usr/local/src/conda/python-3.10.4/Include/cpython/abstract.h:123
#157 call_function (kwnames=0x0, oparg=, pp_stack=, trace_info=0x7fff519ce140, tstate=) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:5867
#158 _PyEval_EvalFrameDefault (tstate=, f=, throwflag=) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:4181
#159 0x000055b06807e3cf in _PyEval_EvalFrame (throwflag=0, f=0x7ffa51025700, tstate=0x55b069159680) at /usr/local/src/conda/python-3.10.4/Python/ceval.c:5052
#160 _PyEval_Vector (kwnames=

@vepadulano
Copy link
Member

Hi @ethereal-space-cadet16 ,

Unfortunately without seeing the code you tried to run, your OS, Python version and ROOT version, it's hard to understand the actual cause of the crash.

Let's start easy. You said you tried conda, did you explicitly try the instructions at https://root.cern/install/#conda ?

$ conda config --set channel_priority strict
$ conda create -c conda-forge --name myenv root
$ conda activate myenv

Then, after the command above runs succesfully, I will take the first example available from the document you link, that is:

import ROOT
print("This is my script")

If this two steps still lead to errors or crashes please report back, with your OS, Python version (the one that conda uses), the output of echo $PYTHONPATH.

@ethereal-space-cadet16
Copy link
Author

ethereal-space-cadet16 commented May 31, 2022 via email

@vepadulano
Copy link
Member

Probably the previous ROOT installation was clashing with the new one you downloaded through conda, glad that you can now run the example 👍 Can this issue be closed?

@ethereal-space-cadet16
Copy link
Author

ethereal-space-cadet16 commented Jun 1, 2022 via email

@github-actions
Copy link

github-actions bot commented Jun 2, 2022

Hi @vepadulano,

It appears this issue is closed, but wasn't yet added to a project. Please add upcoming versions that will include the fix, or 'not applicable' otherwise.

Sincerely,
🤖

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants