I’m trying to run the TMVA_SOFIE_Keras.C tutorial on MacOSX (Monterey 12.6, i9). I’ve installed a python-aware version of root 6.26.10 using mamba, which seems to work normally. The problem is listed below. It runs fine on a linux-based machine following the same install procedure.
root [0] .x /Applications/root_v6.26.10/tutorials/tmva/TMVA_SOFIE_Keras.C
cling::DynamicLibraryManager::loadLibrary(): dlopen(/Users/brownd/mambaforge/envs/KKTrain/lib/libPyMVA.6.26.10.so, 0x0009): symbol not found in flat namespace (_PyCapsule_Type)
Error in <TCling__LazyFunctionCreatorAutoloadForModule>: Failed to load library /Users/brownd/mambaforge/envs/KKTrain/lib/libPyMVA.6.26.10.so
it looks like th library libPyMVA is not there. You should use a build with tmva-pymva=On and you can check if the feature is there by typing on the command line.
root-config --has-tmva-pymva
Normally the feature is on when you have a valid Python and numpy version.
Hi Lorenzo,
libPyMVA is present in my OSX root build:
KKTrain % root-config --has-tmva-pymva
yes
The problem can be replicated with a simple test:
root [0] .L $ROOTSYS/lib/libPyMVA.so
cling::DynamicLibraryManager::loadLibrary(): dlopen(/Users/brownd/mambaforge-pypy3/lib/libPyMVA.6.26.08.so, 0x0009): symbol not found in flat namespace (_PyCapsule_Type)
This is strange, it looks like libPyMVA.so has not been build correctly.
Can you run the tests in tmva/pymva/test or the tutorial tutorials/tmva/TMVA_CNN_Classification.C ?