# PyRoot crashes with ROOT 6.11/02 and Python3

**URL:** <https://root-forum.cern.ch/t/pyroot-crashes-with-root-6-11-02-and-python3/26599>\
**Category:** ROOT\
**Tags:** python, root\
**Created:** [October 17, 2017, 4:14pm UTC](https://root-forum.cern.ch/t/pyroot-crashes-with-root-6-11-02-and-python3/26599 "2017-10-17T16:14:56Z")\
**Posts on this page:** 1\
**Showing post:** 7

<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 18, 2017, 9:13pm UTC](https://root-forum.cern.ch/t/pyroot-crashes-with-root-6-11-02-and-python3/26599/7 "2017-10-18T21:13:30Z")

</div>

Another user in another topic has indicated that the `PYTHON_EXECUTABLE` flag is not sufficient, but that you will additionally need to set the flags `PYTHON_INCLUDE_DIR` and `PYTHON_LIBRARY`.

> [@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/pyroot-crashes-with-root-6-11-02-and-python3/26599)._
