# Cannot access file in python "unsafe use of relative rpath"

**URL:** <https://root-forum.cern.ch/t/cannot-access-file-in-python-unsafe-use-of-relative-rpath/26565>\
**Category:** ROOT\
**Created:** [October 13, 2017, 7:32am UTC](https://root-forum.cern.ch/t/cannot-access-file-in-python-unsafe-use-of-relative-rpath/26565 "2017-10-13T07:32:32Z")\
**Posts on this page:** 1\
**Showing post:** 20

<div class="post-metadata">

**Author:** ![mwilkins](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/mwilkins/32/28332_2.png) [@mwilkins](https://root-forum.cern.ch/u/mwilkins)\
**Post date:** [October 19, 2017, 4:21am UTC](https://root-forum.cern.ch/t/cannot-access-file-in-python-unsafe-use-of-relative-rpath/26565/20 "2017-10-19T04:21:19Z")

</div>

So it turns out that this is actually just a symptom of the underlying issue with SIP—Seems the default version of python has system integrity protection that interferes with the ROOT build operating as designed.

True solution here:

> [@PyROOT cannot open file: "Error in \<TNetXNGFile::Open\>: \[FATAL\] Auth failed"](https://root-forum.cern.ch/t/pyroot-cannot-open-file-error-in-tnetxngfile-open-fatal-auth-failed/26593/20):
>
> @ksmith So it looks like you’re right. It’s an issue with SIP that can be worked around using a different, non-system python. However, that one flag alone is not enough. I had to do: cmake -Dall=On -DPYTHON\_EXECUTABLE=/usr/local/bin/python2 -DPYTHON\_INCLUDE\_DIR=/usr/local/Cellar/python/2.7.14/Frameworks/Python.framework/Versions/2.7/Headers -DPYTHON\_LIBRARY=/usr/local/Cellar/python/2.7.14/Frameworks/Python.framework/Versions/2.7/lib/libpython2.7.dylib ../root/ pointing it at the Homebrew vers…

---

_[View the full topic](https://root-forum.cern.ch/t/cannot-access-file-in-python-unsafe-use-of-relative-rpath/26565)._
