Skip to content

Crash when importing tensorflow before ROOT and using files in EOS #20782

@acampove

Description

@acampove

Check duplicate issues.

  • Checked for duplicates

Description

Hi,

I am seeing a crash when I:

  • Use the latest version of ROOT 0.1a10 from pip
  • Import tensorflow before ROOT
  • Pick files from EOS

Reproducer

import tensorflow

from ROOT import RDF, RDataFrame
import json

filename = "/eos/lhcb/wg/RD/RX_run3/tests/file.root"
df_gen   = RDataFrame(100)
df_gen.Define("x", "gRandom->Rndm()").Snapshot("Events", filename)

spec = {
    "samples": {
        "MyAnalysisSample": {
            "trees": ["Events"],
            "files": [filename],
            "metadata": {
                "xsection": 45.0,
                "luminosity": 10.0
            }
        }
    }
}

with open("spec.json", "w") as f:
    json.dump(spec, f, indent=4)

df= RDF.Experimental.FromSpec("spec.json")
df.Display().Print()

ROOT version

0.1a10

Installation method

pip

Operating system

almalinux9

Additional context

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions