# Trouble importing pyROOT on OSX 10.9 Mavericks

**URL:** <https://root-forum.cern.ch/t/trouble-importing-pyroot-on-osx-10-9-mavericks/17287>\
**Category:** ROOT\
**Created:** [February 27, 2014, 12:33pm UTC](https://root-forum.cern.ch/t/trouble-importing-pyroot-on-osx-10-9-mavericks/17287 "2014-02-27T12:33:33Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![zimmerst](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/z/eb8c5e/32.png) [@zimmerst](https://root-forum.cern.ch/u/zimmerst)\
**Post date:** [February 27, 2014, 12:33pm UTC](https://root-forum.cern.ch/t/trouble-importing-pyroot-on-osx-10-9-mavericks/17287/1 "2014-02-27T12:33:33Z")

</div>

Hi everyone!

I’ve followed the thread laid out here:  
[root.cern.ch/phpBB3/viewtopic.p … 9ae8a01de1]([pyRoot on OS X Maverick](https://root-forum.cern.ch/t/pyroot-on-os-x-maverick/16820/1)  
and ROOT appears to work just fine - I’ve tried out the $ROOTSYS/tutorials and all of them appear to be working.

This is my setup:  
ROOT 5.34/14 (v5-34-14@v5-34-14, Dec 16 2013, 12:23:58 on macosx64)

However, when trying to run pyroot, i.e. import ROOT in a python session, python dies right away:

Python 2.7.6 |Anaconda 1.9.0 (x86\_64)| (default, Jan 10 2014, 11:23:15)  
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin  
Type “help”, “copyright”, “credits” or “license” for more information.

> > > import ROOT  
> > > Fatal Python error: PyThreadState\_Get: no current thread  
> > > Abort trap: 6

Trying to debug with lldb (apple decided to get rid of gdb) yields marginally more insight but not enough to know what’s going on:

lldb python  
Current executable set to ‘python’ (x86\_64).  
(lldb) run  
Process 68145 launched: ‘/Users/zimmer/anaconda/bin/python’ (x86\_64)  
Python 2.7.6 |Anaconda 1.9.0 (x86\_64)| (default, Jan 10 2014, 11:23:15)  
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin  
Type “help”, “copyright”, “credits” or “license” for more information.

> > > import ROOT  
> > > Fatal Python error: PyThreadState\_Get: no current thread  
> > > Process 68145 stopped

- thread #1: tid = 0x8d92c, 0x00007fff92325866 libsystem\_kernel.dylib`__pthread_kill + 10, queue = 'com.apple.main-thread, stop reason = signal SIGABRT frame #0: 0x00007fff92325866 libsystem_kernel.dylib`\_\_pthread\_kill + 10  
libsystem\_kernel.dylib`\_\_pthread\_kill + 10:  
 → 0x7fff92325866: jae 0x7fff92325870 ; \_\_pthread\_kill + 20  
0x7fff92325868: movq %rax, %rdi  
0x7fff9232586b: jmpq 0x7fff92322175 ; cerror\_nocancel  
0x7fff92325870: ret  
(lldb)

I’ve tried to debug this without any success so far and would appreciate if anyone would happen to know a fix on how to resolve this. Thanks!

P.s. I get the same results when I try to follow these instructions  
[alexpearce.me/2013/12/root-on-os-x-mavericks/](https://alexpearce.me/2013/12/root-on-os-x-mavericks/)  
and use homebrew to build root.

---

_[View the full topic](https://root-forum.cern.ch/t/trouble-importing-pyroot-on-osx-10-9-mavericks/17287)._
