Error of running RDataFrame with pyROOT

I was able to run the tutorial script (such as runAsNumpy.py) in the past. But I suddenly got errors when I run it with new installed root 6.18 + python3.
Anyone has this kind of problem before?

➜ pyTDataFrame git:(master) ✗ python3
Python 3.5.0b4 (v3.5.0b4:c0d641054635, Jul 25 2015, 16:26:13)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type “help”, “copyright”, “credits” or “license” for more information.

import ROOT
ROOT.ROOT.EnableImplicitMT(4)
df = ROOT.RDataFrame(10)
… .Define(“x”, “(int)rdfentry_”)
… .Define(“y”, “1.f/(1.f+rdfentry_)”)
cling::DynamicLibraryManager::loadLibrary(): dlopen(/usr/local/Cellar/root6.18/lib/libROOTDataFrame.so, 9): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
Referenced from: /usr/local/opt/davix/lib/libdavix.0.dylib
Reason: image not found
Error in TInterpreter::TCling::AutoLoad: failure loading library libROOTDataFrame.so for ROOT::RDataFrame
cling::DynamicLibraryManager::loadLibrary(): dlopen(/usr/local/Cellar/root6.18/lib/libROOTDataFrame.so, 9): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
Referenced from: /usr/local/opt/davix/lib/libdavix.0.dylib
Reason: image not found
Error in TInterpreter::TCling::AutoLoad: failure loading library libROOTDataFrame.so for ROOT::RDataFrame
cling::DynamicLibraryManager::loadLibrary(): dlopen(/usr/local/Cellar/root6.18/lib/libROOTDataFrame.so, 9): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
Referenced from: /usr/local/opt/davix/lib/libdavix.0.dylib
Reason: image not found
Error in TInterpreter::TCling::AutoLoad: failure loading library libROOTDataFrame.so for ROOT::RDF
cling::DynamicLibraryManager::loadLibrary(): dlopen(/usr/local/Cellar/root6.18/lib/libROOTDataFrame.so, 9): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
Referenced from: /usr/local/opt/davix/lib/libdavix.0.dylib
Reason: image not found
Error in TInterpreter::TCling::AutoLoad: failure loading library libROOTDataFrame.so for ROOT::RDF
cling::DynamicLibraryManager::loadLibrary(): dlopen(/usr/local/Cellar/root6.18/lib/libROOTDataFrame.so, 9): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
Referenced from: /usr/local/opt/davix/lib/libdavix.0.dylib
Reason: image not found
Error in TInterpreter::TCling::AutoLoad: failure loading library libROOTDataFrame.so for ROOT::RDF
cling::DynamicLibraryManager::loadLibrary(): dlopen(/usr/local/Cellar/root6.18/lib/libROOTDataFrame.so, 9): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
Referenced from: /usr/local/opt/davix/lib/libdavix.0.dylib
Reason: image not found
Error in TInterpreter::TCling::AutoLoad: failure loading library libROOTDataFrame.so for ROOT::RDF
cling::DynamicLibraryManager::loadLibrary(): dlopen(/usr/local/Cellar/root6.18/lib/libROOTDataFrame.so, 9): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
Referenced from: /usr/local/opt/davix/lib/libdavix.0.dylib
Reason: image not found
Error in TInterpreter::TCling::AutoLoad: failure loading library libROOTDataFrame.so for ROOT::RDF
cling::DynamicLibraryManager::loadLibrary(): dlopen(/usr/local/Cellar/root6.18/lib/libROOTDataFrame.so, 9): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
Referenced from: /usr/local/opt/davix/lib/libdavix.0.dylib
Reason: image not found
Error in TInterpreter::TCling::AutoLoad: failure loading library libROOTDataFrame.so for ROOT::RDF
cling::DynamicLibraryManager::loadLibrary(): dlopen(/usr/local/Cellar/root6.18/lib/libROOTDataFrame.so, 9): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
Referenced from: /usr/local/opt/davix/lib/libdavix.0.dylib
Reason: image not found
Error in TInterpreter::TCling::AutoLoad: failure loading library libROOTDataFrame.so for ROOT::RDF
cling::DynamicLibraryManager::loadLibrary(): dlopen(/usr/local/Cellar/root6.18/lib/libROOTDataFrame.so, 9): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
Referenced from: /usr/local/opt/davix/lib/libdavix.0.dylib
Reason: image not found
Error in TInterpreter::TCling::AutoLoad: failure loading library libROOTDataFrame.so for ROOT::RDF
cling::DynamicLibraryManager::loadLibrary(): dlopen(/usr/local/Cellar/root6.18/lib/libROOTDataFrame.so, 9): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
Referenced from: /usr/local/opt/davix/lib/libdavix.0.dylib
Reason: image not found
Error in TInterpreter::TCling::AutoLoad: failure loading library libROOTDataFrame.so for ROOT::RDataFrame
cling::DynamicLibraryManager::loadLibrary(): dlopen(/usr/local/Cellar/root6.18/lib/libROOTDataFrame.so, 9): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
Referenced from: /usr/local/opt/davix/lib/libdavix.0.dylib
Reason: image not found
Error in TInterpreter::TCling::AutoLoad: failure loading library libROOTDataFrame.so for ROOT::RDataFrame
cling::DynamicLibraryManager::loadLibrary(): dlopen(/usr/local/Cellar/root6.18/lib/libROOTDataFrame.so, 9): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
Referenced from: /usr/local/opt/davix/lib/libdavix.0.dylib
Reason: image not found
Error in TInterpreter::TCling::AutoLoad: failure loading library libROOTDataFrame.so for ROOT::RDataFrame
cling::DynamicLibraryManager::loadLibrary(): dlopen(/usr/local/Cellar/root6.18/lib/libROOTDataFrame.so, 9): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
Referenced from: /usr/local/opt/davix/lib/libdavix.0.dylib
Reason: image not found
Error in TInterpreter::TCling::AutoLoad: failure loading library libROOTDataFrame.so for ROOT::RDataFrame
cling::DynamicLibraryManager::loadLibrary(): dlopen(/usr/local/Cellar/root6.18/lib/libROOTDataFrame.so, 9): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
Referenced from: /usr/local/opt/davix/lib/libdavix.0.dylib
Reason: image not found
Error in TInterpreter::TCling::AutoLoad: failure loading library libROOTDataFrame.so for ROOT::RDataFrame
cling::DynamicLibraryManager::loadLibrary(): dlopen(/usr/local/Cellar/root6.18/lib/libROOTDataFrame.so, 9): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
Referenced from: /usr/local/opt/davix/lib/libdavix.0.dylib
Reason: image not found
Error in TInterpreter::TCling::AutoLoad: failure loading library libROOTDataFrame.so for ROOT::RDataFrame
cling::DynamicLibraryManager::loadLibrary(): dlopen(/usr/local/Cellar/root6.18/lib/libROOTDataFrame.so, 9): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
Referenced from: /usr/local/opt/davix/lib/libdavix.0.dylib
Reason: image not found
Error in TInterpreter::TCling::AutoLoad: failure loading library libROOTDataFrame.so for ROOT::RDataFrame
cling::DynamicLibraryManager::loadLibrary(): dlopen(/usr/local/Cellar/root6.18/lib/libROOTDataFrame.so, 9): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
Referenced from: /usr/local/opt/davix/lib/libdavix.0.dylib
Reason: image not found
cling::DynamicLibraryManager::loadLibrary(): dlopen(/usr/local/Cellar/root6.18/lib/libROOTDataFrame.so, 9): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
Referenced from: /usr/local/opt/davix/lib/libdavix.0.dylib
Reason: image not found
IncrementalExecutor::executeFunction: symbol ‘_ZN4ROOT10RDataFrameC1Ey’ unresolved while linking symbol ‘__cf_12’!
You are probably missing the definition of ROOT::RDataFrame::RDataFrame(unsigned long long)
Maybe you need to load the corresponding shared library?
Error in TClingCallFunc::make_wrapper: Failed to compile
==== SOURCE BEGIN ====
#pragma clang diagnostic push
#pragma clang diagnostic ignored “-Wformat-security”
attribute((used)) extern “C” void __cf_12(void* obj, int nargs, void** args, void* ret)
{
if (ret) {
((ROOT::RDataFrame**)ret) = new ROOT::RDataFrame((ULong64_t*)args[0]);
return;
}
else {
new ROOT::RDataFrame((ULong64_t)args[0]);
return;
}
}
#pragma clang diagnostic pop
==== SOURCE END ====

*** Break *** segmentation violation
[/usr/lib/system/libsystem_platform.dylib] _sigtramp (no debug info)
[] (no debug info)
[/usr/local/Cellar/root6.18/lib/libPyROOT.so] Cppyy::CallConstructor(long, long, void*) /usr/local/Cellar/root/bindings/pyroot/src/Cppyy.cxx:504
[/usr/local/Cellar/root6.18/lib/libPyROOT.so] PyROOT::TConstructorExecutor::Execute(long, void*, PyROOT::TCallContext*) /usr/local/Cellar/root/bindings/pyroot/src/Executors.cxx:0
[/usr/local/Cellar/root6.18/lib/libPyROOT.so] PyROOT::TMethodHolder::CallFast(void*, long, PyROOT::TCallContext*) /usr/local/Cellar/root/bindings/pyroot/src/TMethodHolder.cxx:110
[/usr/local/Cellar/root6.18/lib/libPyROOT.so] PyROOT::TMethodHolder::CallSafe(void*, long, PyROOT::TCallContext*) /usr/local/Cellar/root/bindings/pyroot/src/TMethodHolder.cxx:122
[/usr/local/Cellar/root6.18/lib/libPyROOT.so] PyROOT::TMethodHolder::Execute(void*, long, PyROOT::TCallContext*) /usr/local/Cellar/root/bindings/pyroot/src/TMethodHolder.cxx:0
[/usr/local/Cellar/root6.18/lib/libPyROOT.so] PyROOT::TConstructorHolder::Call(PyROOT::ObjectProxy*&, _object*, _object*, PyROOT::TCallContext*) /usr/local/Cellar/root/bindings/pyroot/src/TConstructorHolder.cxx:65
[/usr/local/Cellar/root6.18/lib/libPyROOT.so] PyROOT::(anonymous namespace)::mp_call(PyROOT::MethodProxy*, _object*, _object*) /usr/local/Cellar/root/bindings/pyroot/src/MethodProxy.cxx:0
[/Library/Frameworks/Python.framework/Versions/3.5/Python] PyObject_Call (no debug info)
[/Library/Frameworks/Python.framework/Versions/3.5/Python] slot_tp_init (no debug info)
[/Library/Frameworks/Python.framework/Versions/3.5/Python] type_call (no debug info)
[/Library/Frameworks/Python.framework/Versions/3.5/Python] PyObject_Call (no debug info)
[/Library/Frameworks/Python.framework/Versions/3.5/Python] PyEval_EvalFrameEx (no debug info)
[/Library/Frameworks/Python.framework/Versions/3.5/Python] _PyEval_EvalCodeWithName (no debug info)
[/Library/Frameworks/Python.framework/Versions/3.5/Python] PyEval_EvalCode (no debug info)
[/Library/Frameworks/Python.framework/Versions/3.5/Python] PyRun_InteractiveOneObject (no debug info)
[/Library/Frameworks/Python.framework/Versions/3.5/Python] PyRun_InteractiveLoopFlags (no debug info)
[/Library/Frameworks/Python.framework/Versions/3.5/Python] PyRun_AnyFileExFlags (no debug info)
[/Library/Frameworks/Python.framework/Versions/3.5/Python] Py_Main (no debug info)
[] (no debug info)
[] (no debug info)
[] (no debug info)
cling::DynamicLibraryManager::loadLibrary(): dlopen(/usr/local/Cellar/root6.18/lib/libROOTDataFrame.so, 9): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
Referenced from: /usr/local/opt/davix/lib/libdavix.0.dylib
Reason: image not found
Error in TInterpreter::TCling::AutoLoad: failure loading library libROOTDataFrame.so for ROOT::RDF
cling::DynamicLibraryManager::loadLibrary(): dlopen(/usr/local/Cellar/root6.18/lib/libROOTDataFrame.so, 9): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
Referenced from: /usr/local/opt/davix/lib/libdavix.0.dylib
Reason: image not found
Error in TInterpreter::TCling::AutoLoad: failure loading library libROOTDataFrame.so for ROOT::RDF
Traceback (most recent call last):
File “”, line 1, in
TypeError: none of the 8 overloaded methods succeeded. Full details:
ROOT::RDataFrame::ROOT::RDataFrame(basic_string_view<char,char_traits > treeName, basic_string_view<char,char_traits > filenameglob, const vector& defaultBranches = {}) =>
takes at least 2 arguments (1 given)
ROOT::RDataFrame::ROOT::RDataFrame(basic_string_view<char,char_traits > treename, const vector& filenames, const vector& defaultBranches = {}) =>
takes at least 2 arguments (1 given)
ROOT::RDataFrame::ROOT::RDataFrame(basic_string_view<char,char_traits > treeName, TDirectory* dirPtr, const vector& defaultBranches = {}) =>
takes at least 2 arguments (1 given)
ROOT::RDataFrame::ROOT::RDataFrame(TTree& tree, const vector& defaultBranches = {}) =>
could not convert argument 1
ROOT::RDataFrame::ROOT::RDataFrame(ULong64_t numEntries) =>
problem in C++; program state has been reset
ROOT::RDataFrame::ROOT::RDataFrame(unique_ptr<ROOT::RDF::RDataSource,default_deleteROOT::RDF::RDataSource >, const vector& defaultBranches = {}) =>
could not convert argument 1
ROOT::RDataFrame::ROOT::RDataFrame(const ROOT::RDataFrame&) =>
could not convert argument 1
ROOT::RDataFrame::ROOT::RDataFrame(ROOT::RDataFrame&&) =>
could not convert argument 1 (this method can not (yet) be called)

This usually indicates that there are broken install_names in the libraries. What is the output of otool -L $(which root.exe)?

Here is the output :➜
root6.18 otool -L $(which root.exe)
/usr/local/Cellar/root6.18/bin/root.exe:
@rpath/libRint.so (compatibility version 0.0.0, current version 0.0.0)
@rpath/libCore.so (compatibility version 0.0.0, current version 0.0.0)
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 800.6.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1281.0.0)

What about for /usr/local/Cellar/root6.18/lib/libROOTDataFrame.so and /usr/local/opt/openssl/lib/libssl.1.0.0.dylib? It looks like the install_names are wrong. You can try to get around the problem by setting DYLD_LIBRARY_PATH to contain /usr/local/Cellar/root6.18/lib to see if it helps.

I think this path has been added.
root6.18 echo $DYLD_LIBRARY_PATH
/usr/local/Cellar/root6.18/lib

Please file a bug with Homebrew, as this is likely a configuration/packaging problem on their side. The install_names should be correct without any setup, but openssl library seems to not have proper install_name. Cheers,

Hi Amadio, I have switched my openssl from 1.0.0 to 1.1 in my macbook, but libROOTDataFrame.so still complains the same error. Could you specify how to file a bug to Homebrew? Should I try to re-install ROOT in my macbook?

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