# pyROOT: Fatal Python error: PyThreadState\_Get

**URL:** <https://root-forum.cern.ch/t/pyroot-fatal-python-error-pythreadstate-get/24427>\
**Category:** ROOT\
**Created:** [April 13, 2017, 10:39pm UTC](https://root-forum.cern.ch/t/pyroot-fatal-python-error-pythreadstate-get/24427 "2017-04-13T22:39:00Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [April 13, 2017, 11:11pm UTC](https://root-forum.cern.ch/t/pyroot-fatal-python-error-pythreadstate-get/24427/2 "2017-04-13T23:11:32Z")

</div>

Do you have the possibility to build from source? I just ran into this problem this morning and had to rebuild root with the python version I wanted to use.

> [@Jupyter Notebook with ROOT C++ Kernel](https://root-forum.cern.ch/t/jupyter-notebook-with-root-c-kernel/24399/6):
>
> The last issue was due to an incompatibility between apple’s python that ROOT was built with and the python version used by Jupyter installed by mac ports. Recompiling ROOT with the macports Python required setting the following two environment variables to get cmake to complete the configuration: export LC\_ALL=en\_US.UTF-8 export LANG=en\_US.UTF-8 I then need to install the metakernel package. The notebook now starts correctly and was capable of drawing a simple histogram.

---

_[View the full topic](https://root-forum.cern.ch/t/pyroot-fatal-python-error-pythreadstate-get/24427)._
