MakeCsvDataFrame is failed to pythonize?

Hi all,

My code:

import ROOT

df = ROOT.RDF.MakeCsvDataFrame("myfile.csv")

Outputs:

Traceback (most recent call last):
  File "/usr/lib64/python3.6/site-packages/ROOT/_facade.py", line 294, in RDF
    ns.Experimental = _create_rdf_experimental_distributed_module(ns)
  File "/usr/lib64/python3.6/site-packages/ROOT/_facade.py", line 61, in _create_rdf_experimental_distributed_module
    import DistRDF
  File "/usr/lib64/python3.6/site-packages/ROOT/_facade.py", line 150, in _importhook
    return _orig_ihook(name, *args, **kwds)
ModuleNotFoundError: No module named 'DistRDF'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "myPlotter.py", line 6, in <module>
    df = ROOT.RDF.MakeCsvDataFrame("../output/Lotse1/Lotse0_record.csv")
  File "/usr/lib64/python3.6/site-packages/ROOT/_facade.py", line 296, in RDF
    raise Exception('Failed to pythonize the namespace RDF')
Exception: Failed to pythonize the namespace RDF

Am I doing something wrong?

python: 3.6.8
ROOT: 6.24/06

nvm, updating to ROOT Version: 6.26/08 fixes the problem

Hi @FoxWise ,

I just tried to run those commands with v6.24.06 installed via conda and things work fine, so the problem seems to be with your environment/installation: it’s missing the DistRDF part. @vpadulan any idea how this could happen?

@FoxWise how did you install ROOT?

Cheers,
Enrico

EDIT: ah, just saw the last message. It makes sense that reinstalling ROOT helped :slight_smile:

Hi!

Indeed it should not happen with v6.24/06 (or any consecutive version). One possible cause may be a build from source that went bad, somehow the DistRDF module was removed after the build maybe? Building with pyroot and dataframe will always also install the distributed module.

Best,
Vincenzo

That was an installation via
sudo yum install root at some point in CentOS 8.
I fixed with sudo yum update root. So indeed, maybe something went bad with an installation…

Cheers

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