# 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:** 12

<div class="post-metadata">

**Author:** ![ksmith](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ksmith/32/12567_2.png) [@ksmith](https://root-forum.cern.ch/u/ksmith)\
**Post date:** [October 16, 2017, 4:55pm UTC](https://root-forum.cern.ch/t/cannot-access-file-in-python-unsafe-use-of-relative-rpath/26565/12 "2017-10-16T16:55:23Z")

</div>

> [@mwilkins](#):
>
> ```auto
> Python 2.7.10 (default, Jul 15 2017, 17:16:57) 
> [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)] on darwin
> 
> ```

On my mac this is the stock python. The following command will tell you where the python that is being executed lives:

```bash
which python
which python2

```

I believe that by default the system python comes first in the path and may be the reason that the homebrew version is not being evoked. This will list the search paths for binaries:

```bash
printenv PATH

```

This will let you locate all the files named python on the system, one will be the system python and one will be homebrew:

```bash
locate */python

```

This is typically much slower, but may be more exact:

```bash
find / -type f -name "python" 2>/dev/null

```

---

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