Hi, I am preparing for TMVA SOFIE in this years GSoC
I tried to run the inference.py tutorial from TMVA SOFIE website and I got this error:
Traceback (most recent call last):
File “/home/prasanna/Desktop/Prasanna/SOFIE/inference.py”, line 5, in
ROOT.TMVA.PyMethodBase.PyInitialize()
^^^^^^^^^^^^^^^^^^^^^^
AttributeError: <namespace cppyy.gbl.TMVA at 0x392d9010> has no attribute ‘PyMethodBase’. Full details:
type object ‘TMVA’ has no attribute ‘PyMethodBase’
‘TMVA::PyMethodBase’ is not a known C++ class
‘PyMethodBase’ is not a known C++ template
‘PyMethodBase’ is not a known C++ enum
I have Ubuntu 24.04 LTS
I have built and installed ROOT using documentation from the ROOT website
I have added environment variable in /.bashrc: source /home/prasanna/RootDevelopment/root/build/bin/thisroot.sh
Also, I have build ROOT using this: cmake -DCMAKE_BUILD_TYPE=Debug -Dtesting=ON -Droottest=ON -Dtmva-sofie=ON -Dtmva-pymva=On …/root
welcome to the ROOT Forum. I have tried to quickly run this tutorial on my machine and I also get an error, let’s tag our TMVA expert @moneta to get some more insights.
I wanted to ask if there is a specific channel where I can find the tasks for this year’s GSoC projects under TMVA SOFIE. I know this might not be the best place to ask, and you may not be directly involved with GSoC updates for ROOT, but I couldn’t find a better place to ask this question. I also wasn’t sure if raising a new issue on the forum would be appropriate.
I’d really appreciate any guidance or pointers you can provide.
The isue you are having is probably due to the fact that your pymva is not enabled in the ROOT build. Can you check at the end what is enabled and if Python and Numpy are correctly found. These are needed for enabling pymva.
Thank you for your response! I was able to rebuild the root with Dtmva-pymva=On, and it worked perfectly!
Regarding GSoC 2025, I already sent you an email on February 28th. Could you kindly take a look at it? If you didn’t receive it, please let me know, and I’ll be happy to resend it.