Hi, I encountered another problem while trying out the RDataFrame, my root files are filled by custom made classes (that are usable in the root shell and in pyroot) but when i do AsNumpy it gives a series of errors due to the lack of the classes. The framework that I am using is called Diana, and it contains all the said classes and in pyroot it appears as a namespace inside the ROOT package.
How can i solve this issue ?
Here is the series of errors it gives.
df = ROOT.RDataFrame('qtree','Production_290011_T_p001.root')
IncrementalExecutor::executeFunction: symbol ‘ZN9__gnu_cxx13new_allocatorIN5Diana7QObjectEE9constructIS2_JRS2_EEEvPT_DpOT0’ unresolved while linking symbol ‘__cf_20’!
You are probably missing the definition of void __gnu_cxx::new_allocatorDiana::QObject::construct<Diana::QObject, Diana::QObject&>(Diana::QObject*, Diana::QObject&)
Maybe you need to load the corresponding shared library?
IncrementalExecutor::executeFunction: symbol ‘ZSt10_ConstructIN5Diana7QObjectEJS1_EEvPT_DpOT0’ unresolved while linking symbol ‘__cf_20’!
You are probably missing the definition of void std::_Construct<Diana::QObject, Diana::QObject>(Diana::QObject*, Diana::QObject&&)
Maybe you need to load the corresponding shared library?
IncrementalExecutor::executeFunction: symbol ‘ZSt10_ConstructIN5Diana7QObjectEJRS1_EEvPT_DpOT0’ unresolved while linking symbol ‘__cf_20’!
You are probably missing the definition of void std::_Construct<Diana::QObject, Diana::QObject&>(Diana::QObject*, Diana::QObject&)
Maybe you need to load the corresponding shared library?
IncrementalExecutor::executeFunction: symbol ‘ZN9__gnu_cxx13new_allocatorIN5Diana7QObjectEE9constructIS2_JRS2_EEEvPT_DpOT0’ unresolved while linking symbol ‘__cf_21’!
You are probably missing the definition of void __gnu_cxx::new_allocatorDiana::QObject::construct<Diana::QObject, Diana::QObject&>(Diana::QObject*, Diana::QObject&)
Maybe you need to load the corresponding shared library?
IncrementalExecutor::executeFunction: symbol ‘ZSt10_ConstructIN5Diana7QObjectEJS1_EEvPT_DpOT0’ unresolved while linking symbol ‘__cf_21’!
You are probably missing the definition of void std::_Construct<Diana::QObject, Diana::QObject>(Diana::QObject*, Diana::QObject&&)
Maybe you need to load the corresponding shared library?
IncrementalExecutor::executeFunction: symbol ‘ZSt10_ConstructIN5Diana7QObjectEJRS1_EEvPT_DpOT0’ unresolved while linking symbol ‘__cf_21’!
You are probably missing the definition of void std::_Construct<Diana::QObject, Diana::QObject&>(Diana::QObject*, Diana::QObject&)
Maybe you need to load the corresponding shared library?
IncrementalExecutor::executeFunction: symbol ‘ZN9__gnu_cxx13new_allocatorIN5Diana7QObjectEE9constructIS2_JRS2_EEEvPT_DpOT0’ unresolved while linking symbol ‘__cf_22’!
You are probably missing the definition of void __gnu_cxx::new_allocatorDiana::QObject::construct<Diana::QObject, Diana::QObject&>(Diana::QObject*, Diana::QObject&)
Maybe you need to load the corresponding shared library?
IncrementalExecutor::executeFunction: symbol ‘ZSt10_ConstructIN5Diana7QObjectEJS1_EEvPT_DpOT0’ unresolved while linking symbol ‘__cf_22’!
You are probably missing the definition of void std::_Construct<Diana::QObject, Diana::QObject>(Diana::QObject*, Diana::QObject&&)
Maybe you need to load the corresponding shared library?
IncrementalExecutor::executeFunction: symbol ‘ZSt10_ConstructIN5Diana7QObjectEJRS1_EEvPT_DpOT0’ unresolved while linking symbol ‘__cf_22’!
You are probably missing the definition of void std::_Construct<Diana::QObject, Diana::QObject&>(Diana::QObject*, Diana::QObject&)
Maybe you need to load the corresponding shared library?
IncrementalExecutor::executeFunction: symbol ‘ZN9__gnu_cxx13new_allocatorIN5Diana7QObjectEE9constructIS2_JRS2_EEEvPT_DpOT0’ unresolved while linking symbol ‘__cf_23’!
You are probably missing the definition of void __gnu_cxx::new_allocatorDiana::QObject::construct<Diana::QObject, Diana::QObject&>(Diana::QObject*, Diana::QObject&)
Maybe you need to load the corresponding shared library?
IncrementalExecutor::executeFunction: symbol ‘ZSt10_ConstructIN5Diana7QObjectEJS1_EEvPT_DpOT0’ unresolved while linking symbol ‘__cf_23’!
You are probably missing the definition of void std::_Construct<Diana::QObject, Diana::QObject>(Diana::QObject*, Diana::QObject&&)
Maybe you need to load the corresponding shared library?
IncrementalExecutor::executeFunction: symbol ‘ZSt10_ConstructIN5Diana7QObjectEJRS1_EEvPT_DpOT0’ unresolved while linking symbol ‘__cf_23’!
You are probably missing the definition of void std::_Construct<Diana::QObject, Diana::QObject&>(Diana::QObject*, Diana::QObject&)
Maybe you need to load the corresponding shared library?
IncrementalExecutor::executeFunction: symbol ‘ZN9__gnu_cxx13new_allocatorIN5Diana7QObjectEE9constructIS2_JRS2_EEEvPT_DpOT0’ unresolved while linking symbol ‘__cf_24’!
You are probably missing the definition of void __gnu_cxx::new_allocatorDiana::QObject::construct<Diana::QObject, Diana::QObject&>(Diana::QObject*, Diana::QObject&)
Maybe you need to load the corresponding shared library?
IncrementalExecutor::executeFunction: symbol ‘ZSt10_ConstructIN5Diana7QObjectEJS1_EEvPT_DpOT0’ unresolved while linking symbol ‘__cf_24’!
You are probably missing the definition of void std::_Construct<Diana::QObject, Diana::QObject>(Diana::QObject*, Diana::QObject&&)
Maybe you need to load the corresponding shared library?
IncrementalExecutor::executeFunction: symbol ‘ZSt10_ConstructIN5Diana7QObjectEJRS1_EEvPT_DpOT0’ unresolved while linking symbol ‘__cf_24’!
You are probably missing the definition of void std::_Construct<Diana::QObject, Diana::QObject&>(Diana::QObject*, Diana::QObject&)
Maybe you need to load the corresponding shared library?
Traceback (most recent call last):
File “”, line 1, in
File “/usr/local/root6.22/install/lib/ROOT/pythonization/_rdataframe.py”, line 72, in RDataFrameAsNumpy
result_ptrs[column] = df.Takecolumn_type
ValueError: Could not instantiate TakeDiana::QObject:
none of the 2 overloaded methods succeeded. Full details:
ROOT::RDF::RResultPtr<vectorDiana::QObject > ROOT::RDF::RInterfaceROOT::Detail::RDF::RLoopManager,void::Take(experimental::basic_string_view<char,char_traits > column = “”) =>
ValueError: nullptr result where temporary expected
ROOT::RDF::RResultPtr<vectorDiana::QObject > ROOT::RDF::RInterfaceROOT::Detail::RDF::RLoopManager,void::Take(experimental::basic_string_view<char,char_traits > column = “”) =>
ValueError: nullptr result where temporary expected
none of the 3 overloaded methods succeeded. Full details:
ROOT::RDF::RResultPtr<vectorDiana::QObject > ROOT::RDF::RInterfaceROOT::Detail::RDF::RLoopManager,void::Take(experimental::basic_string_view<char,char_traits > column = “”) =>
ValueError: nullptr result where temporary expected
ROOT::RDF::RResultPtr<vectorDiana::QObject > ROOT::RDF::RInterfaceROOT::Detail::RDF::RLoopManager,void::Take(experimental::basic_string_view<char,char_traits > column = “”) =>
ValueError: nullptr result where temporary expected
ROOT::RDF::RResultPtr<vectorDiana::QObject > ROOT::RDF::RInterfaceROOT::Detail::RDF::RLoopManager,void::Take(experimental::basic_string_view<char,char_traits > column = “”) =>
ValueError: nullptr result where temporary expected