Closed CamphynR closed 3 months ago
The pip installation does indeed compile the the ROOT-ful version of mattak ROOT is available, I believe, though that doesn't explain why this is failing. I will see if I can reproduce...
Ok, I can reproduce pretty easily. I can fix it by setting CPATH (or ROOT_INCLUDE_PATH) to include $VIRTUAL_ENV/lib{64?}/python3.9/site-packages/mattak/build/include
in it.
Probably the right thing is to set ROOT_INCLUDE_PATH at the same time as figuring out the .so to load.
ok, I may have fixed it, though it's a bit hacky and there's probably a better solution.
(you'll have to update mattak with pip)
Hi Cosmin, thanks for the quick fix, I tested it and everything works fine now. For posterity's sake (mostly for myself) I'll leave this link here which leads to the PyRoot docs with what I understand to be the issue PyROOT doc
Short description When mattak is installed using
pip install git+https://github.com/RNO-G/mattak.git
to use specifically for reading data files with the NuRadioReco.modules.io.RNO_G.readRNOGDataMattak.readRNOGData class it crashes when callingreadRNOGData.begin()
The output states the crash occurs in the pyroot backend, while only the uproot backend is supported in the pip install mattak version. The system does contain a root installation a guess is that mattak assumes the pyroot backend to be installed when finding a root installation.Minimal code for recreating issue:
including the comments solves the crash, but the assumption was that mattak automatically finds the correct backend
system on which crash occurs: HTCondor cluster Python version: 3.9.12 ROOT version: 6.26/04 NuRadioMC: current develop branch version (05/06/2024)
Full error output