Thanks for the reply, I’ve tried a few things, unfortunately none of them have worked.
1) I noticed when pip was downloading nupic from PYPI it was downloading "nupic-0.1.0-cp27-none-macosx_10_9_intel.whl”. I assumed this was meant for mavericks not yosemite, so I tried downloading the 10_10 version and got pip to install it. But I ended with exactly the same error as before. 2) I also tried building nupic from source. I cloned the repo, set up $NUPIC, and build it (inside a virtualenv) using “pip install -e path/to/nupic/repo/“. The -e option in pip apparently just uses "setup.py develop”. It seemed to build OK. But I still ended up with the same error as before. 3) I got your email so I uninstalled home-brew’s python and tried “brew install python-devel”. But brew couldn’t find any formulas with that name. I couldn’t find any reference on development headers for home-brew python through google. So I tried just installing python as I had it before (with "brew install python”) and installing nupic 0.1.2 but again I’m coming up against the same error. Out of curiosity I looked at what point python crashes when running “import nupic.bindings.math”. It looks like it finds a file named _math.so and then crashes when trying to import it. I’m not sure if any of that was helpful, I’m not too knowledgable in this area. Thanks, Ruaridh > On 26 Jan 2015, at 17:50, Matthew Taylor <[email protected]> wrote: > > 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 >
