# "Failed to get attribute ExRootTreeReader from ROOT" -- on MacOS Monterey 12.0.1

**URL:** <https://root-forum.cern.ch/t/failed-to-get-attribute-exroottreereader-from-root-on-macos-monterey-12-0-1/47782>\
**Category:** Newbie\
**Created:** [November 23, 2021, 8:46am UTC](https://root-forum.cern.ch/t/failed-to-get-attribute-exroottreereader-from-root-on-macos-monterey-12-0-1/47782 "2021-11-23T08:46:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sferrante](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/b9bd4f/32.png) [@sferrante](https://root-forum.cern.ch/u/sferrante)\
**Post date:** [November 23, 2021, 8:47am UTC](https://root-forum.cern.ch/t/failed-to-get-attribute-exroottreereader-from-root-on-macos-monterey-12-0-1/47782/1 "2021-11-23T08:47:00Z")

</div>

I have MacOS Monterey 12.0.1, and installed ROOT via brew install root, which created a directory /opt/homebrew/Cellar/root/6.24.06/. I am now trying to read a .root file coming from MadGraph+Pythia8+Delphes. When I installed Delphes directly in MadGraph, it gave me examples of pyROOT commands to read these .root files. However all of these examples are failing for the same reason, related to the ExRootTreeReader (shown in photo):

 ![image](https://root-forum.cern.ch/uploads/default/original/3X/e/5/e5896e148302fee7ff58eeecaf5192a6ead0997c.jpeg)

(where Delphes\_ROOT is a string of the location of my .root file). I was able to go through other PyROOT examples fine in the same Jupyter Notebook as in the photo (such as Exercise 1 of Steven Schramm’s PyROOT Tutorial). I tried googling the error “Failed to get attribute ExRootTreeReader from ROOT” but didn’t find a forum on this exact error.

---

<div class="post-metadata">

**Author:** ![zzl0024](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/zzl0024/32/19793_2.png) [@zzl0024](https://root-forum.cern.ch/u/zzl0024)\
**Post date:** [November 23, 2021, 12:45pm UTC](https://root-forum.cern.ch/t/failed-to-get-attribute-exroottreereader-from-root-on-macos-monterey-12-0-1/47782/2 "2021-11-23T12:45:07Z")

</div>

The error said the path of libDelphes.so does not exist. Perhaps you need to check the libDelphes.so path in line 2.
