Ruaridh, You may not have python development headers installed. Try "brew install python-devel", then re-install NuPIC. Let me know if that helps. --------- Matt Taylor OS Community Flag-Bearer Numenta
On Fri, Jan 23, 2015 at 12:13 PM, Ruaridh O'Donnell <[email protected]> wrote: > Hello, > I’m having trouble installing NuPIC with pip on a new mac with OS X > Yosemite. > In python, NuPIC imports OK ("import nupic"), but importing > nupic.bindings.math and many other modules crashes python. > > For example > >>>> import nupic.bindings.math > Fatal Python error: PyThreadState_Get: no current thread > Abort trap: 6 > > or > >>>> from nupic.frameworks.opf.modelfactory import ModelFactory > Fatal Python error: PyThreadState_Get: no current thread > Abort trap: 6 > > Here’s how I installed everything (on a new mac): > - I installed home-brew in the standard way (“ruby -e "$(curl -fsSL > https://raw.githubusercontent.com/Homebrew/install/master/install)"”) > - installed python 2.7.9 ("homebrew install python”) > - installed virtualenv ("pip install virtualenv”) (this used the pip > corresponding to homebrew’s python) > - set up a virtual env in called ‘all’ in ~/ (“virtualenv all”) > - installed nupi dependencies ("brew install automake libtool cmake”) > - activated my virtualenv > - installed NuPIC ("pip install nupic”) > Everything seemed to run fine but I now get the errors mentioned above. > > I’m trying to use home-brew’s versions of python (2.7.9) rather the system > one that came pre installed (2.7.6). > Entering “python” in terminal points to homebrew’s python, not the system > python. > I tested out installing other modules with pip (in my virtualenv) and they > all seem to work fine. (matplotlib) > Creating a virtualenv uses homebrew's python > > Also when pip was installing nupic I noticed the wheel it was downloading > was the 10_9 file not the 10_10 that is listed on PYPI: > > Collecting nupic > Downloading nupic-0.1.0-cp27-none-macosx_10_9_intel.whl (6.6MB) > 100% |################################| 6.6MB 848kB/s > > Not sure if that’s relevant > > Any help/insight into this would be appreciated, > > Ruaridh
