Hi all, Nupic is finally installed on my osx 10.9! Just for the sake of helping anyone that could encounter the problem here is what I have done (please note there is still one problem at the end with running the tests):
1) uninstall python by running the following command: - sudo rm -rf /Library/Frameworks/Python.framework/Versions/2.7 - sudo rm -rf "/Applications/Python 2.7" - you could remove also all symlinks with this command (I didn't thouhg): ls -l /usr/local/bin | grep '../Library/Frameworks/Python.framework/Versions/2.7' 2) run the following command: xcode-select --install 3) download and install the latest release of python 2.7.9 from here <https://www.python.org/downloads/mac-osx/> 4) install the setuptools 14.3.1 by running the following command: curl https://bootstrap.pypa.io/ez_setup.py -o - | python 5) download nupic from here <https://github.com/numenta/nupic> 6) run the following command: export NUPIC=/Users/giuseppe/nupic 7) run the following command: export MACOSX_DEPLOYMENT_TARGET=10.9 8) run the following command: ARCHFLAGS="-arch x86_64" python setup.py install (Note: I did not run the command ' source nupic-darwin64/bin/activate '. if I understood properly I did not need to do that because I have installed all requirements already ) I've got lots of warnings but it seemed to have compiled properly and ending with the following lines: Using /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages Finished processing dependencies for nupic==0.3.0.dev0 Copying binaries from /Users/giuseppetorre/nupic/extensions/core/build/release/bin to /Users/giuseppetorre/nupic/bin... I run the test py_region_test and it was successful. All other tests however reported the following error: Traceback (most recent call last): File "./run_nupic_tests", line 263, in <module> os.chdir(os.getenv('NUPIC')) TypeError: coercing to Unicode: need string or buffer, NoneType found Any idea? Thank you all for your help! /G On Tue, Mar 31, 2015 at 10:52 AM, Giuseppe Torre <[email protected]> wrote: > Hi all, > thanks, ok I will try to install cython 021 later on and I will let you > know. > Scott, running g++ -v gives the following: > > Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr > --with-gxx-include-dir=/usr/include/c++/4.2.1 > Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn) > Target: x86_64-apple-darwin13.4.0 > Thread model: posix > > Thank you all > > /G > > > > > On Tue, Mar 31, 2015 at 12:42 AM, joseph skippings < > [email protected]> wrote: > >> What are the steps you used to get nupic on osx 10.10? I have been trying >> to get it on my system for a few days now. >> >> >> On Monday, March 30, 2015, David Wood <[email protected]> wrote: >> >>> Interesting. I don’t have this problem on Mac OS 10.10, and do not have >>> the MACOSX_DEPLOYMENT_TARGET variable set. >>> >>> Regards, >>> Dave >>> -- >>> http://about.me/david_wood >>> >>> >>> >>> On Mar 30, 2015, at 03:10, Giuseppe Torre <[email protected]> >>> wrote: >>> >>> Hi Matthew, >>> I am using os x 10.9 >>> I have run in shell the command: export MACOSX_DEPLOYMENT_TARGET=10.9 >>> Now it worked! No more CLANG error! Thanks! >>> However, now I get other errors after a while... >>> They are all error compiling Cython files.... >>> I am copying only a few lines from the error below. (Thank you all for >>> the help!) >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> *Compiling capnp/lib/capnp.pyx because it depends on >>> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython-0.22-py2.7-macosx-10.6-intel.egg/Cython/Includes/libcpp/__init__.pxd.Cythonizing >>> capnp/lib/capnp.pyxError compiling Cython >>> file:------------------------------------------------------------... >>> cdef _init(self, capnp.DynamicEnum other, object parent): >>> self.thisptr = other self._parent = parent return self >>> cpdef _as_str(self) except +reraise_kj_exception: ^..... etc >>> etc.... File >>> "/Users/giuseppetorre/nupic-darwin64/lib/python2.7/site-packages/setuptools-1.0-py2.7.egg/setuptools/sandbox.py", >>> line 69, in run_setup File >>> "/Users/giuseppetorre/nupic-darwin64/lib/python2.7/site-packages/setuptools-1.0-py2.7.egg/setuptools/sandbox.py", >>> line 120, in run File >>> "/Users/giuseppetorre/nupic-darwin64/lib/python2.7/site-packages/setuptools-1.0-py2.7.egg/setuptools/sandbox.py", >>> line 71, in <lambda> File "setup.py", line 122, in <module> >>> optionsDesc.append( File >>> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython-0.22-py2.7-macosx-10.6-intel.egg/Cython/Build/Dependencies.py", >>> line 865, in cythonize cythonize_one(*args[1:]) File >>> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython-0.22-py2.7-macosx-10.6-intel.egg/Cython/Build/Dependencies.py", >>> line 985, in cythonize_one raise CompileError(None, >>> pyx_file)Cython.Compiler.Errors.CompileError: capnp/lib/capnp.pyx* >>> >>> >>> >>> /G >>> >>> >>> >>> >>> On Mon, Mar 30, 2015 at 3:44 AM, Matthew Taylor <[email protected]> >>> wrote: >>> >>>> I think your clang error is because of the `MACOSX_DEPLOYMENT_TARGET` >>>> environment variable. What version of OS X are you running? What is >>>> the value of "echo $MACOSX_DEPLOYMENT_TARGET" in your shell? >>>> >>>> It needs to be 10.7 or higher. >>>> >>>> --------- >>>> Matt Taylor >>>> OS Community Flag-Bearer >>>> Numenta >>>> >>>> >>>> On Sun, Mar 29, 2015 at 2:50 PM, Giuseppe Torre <[email protected]> >>>> wrote: >>>> > Yes Env done and echo $NUPIC provides /Users/giuseppe/nupic indeed. >>>> > >>>> > I tried the following: >>>> > >>>> > ARCHFLAGS="-arch x86_64";python setup.py install --user >>>> > >>>> > gives this: >>>> > File "setup.py", line 635, in <module> >>>> > raise Exception("To build NuPIC in OS X, you must " >>>> > Exception: To build NuPIC in OS X, you must `export ARCHFLAGS="-arch >>>> > x86_64"`. >>>> > >>>> > >>>> > ARCHFLAGS="-arch x86_64" python setup.py install --user (...no >>>> semicolon) >>>> > >>>> > gives CLANG error... >>>> > >>>> > /G >>>> > >>>> > >>>> > >>>> > >>>> > On Sun, Mar 29, 2015 at 11:39 PM, cogmission (David Ray) >>>> > <[email protected]> wrote: >>>> >> >>>> >> I think he did that? That is what he meant by, "Env done". I >>>> mentioned the >>>> >> "export" command a few emails back... >>>> >> >>>> >> To be sure Giuseppe try running: "echo $NUPIC" and see if it outputs >>>> the >>>> >> correct directory (or nothing if it wasn't exported correctly) >>>> >> >>>> >> On Sun, Mar 29, 2015 at 4:27 PM, David Wood <[email protected]> >>>> >> wrote: >>>> >>> >>>> >>> Hi Giuseppe, >>>> >>> >>>> >>> Try this process, with the addition I’ve made: >>>> >>> >>>> >>> - download nupic-darwin64 ( >>>> https://github.com/numenta/nupic-darwin64 ) >>>> >>> - saved to /User/giuseppe/ >>>> >>> - in terminal run: source nupic-darwin64/bin/activate ( I have >>>> not run >>>> >>> make within nupic-darwin64 just activate) >>>> >>> - download nupic ( https://github.com/numenta/nupic ) >>>> >>> - saved to /User/giuseppe/ >>>> >>> >>>> >>> >>>> >>> - In the Terminal, run: >>>> >>> $ export NUPIC=/Users/giuseppe/nupic >>>> >>> >>>> >>> - in Terminal cd nupic and then ARCHFLAGS="-arch x86_64" python >>>> setup.py >>>> >>> install >>>> >>> >>>> >>> >>>> >>> Regards, >>>> >>> Dave >>>> >>> -- >>>> >>> http://about.me/david_wood >>>> >>> >>>> >>> >>>> >>> >>>> >>> On Mar 29, 2015, at 17:24, Giuseppe Torre <[email protected]> >>>> wrote: >>>> >>> >>>> >>> I see thank you! ENV done now. >>>> >>> here is the complete list of steps I have done and that will >>>> eventually >>>> >>> lead to the CLANG error: >>>> >>> >>>> >>> - download nupic-darwin64 ( >>>> https://github.com/numenta/nupic-darwin64 ) >>>> >>> - saved to /User/giuseppe/ >>>> >>> - in terminal run: source nupic-darwin64/bin/activate ( I have >>>> not run >>>> >>> make within nupic-darwin64 just activate) >>>> >>> - download nupic ( https://github.com/numenta/nupic ) >>>> >>> - saved to /User/giuseppe/ >>>> >>> - in Terminal cd nupic and then ARCHFLAGS="-arch x86_64" python >>>> setup.py >>>> >>> install >>>> >>> >>>> >>> At this stage, after a bit a get the CLANG error... >>>> >>> /G >>>> >>> >>>> >>> >>>> >>> >>>> >>> On Sun, Mar 29, 2015 at 10:55 PM, cogmission (David Ray) >>>> >>> <[email protected]> wrote: >>>> >>>> >>>> >>>> Mine is /Users/cogmission/git/nupic... for instance >>>> >>>> >>>> >>>> On Sun, Mar 29, 2015 at 3:55 PM, cogmission (David Ray) >>>> >>>> <[email protected]> wrote: >>>> >>>>> >>>> >>>>> that means do: "export NUPIC=<path to your nupic dir>" >>>> >>>>> >>>> >>>>> >>>> >>>>> >>>> >>>>> On Sun, Mar 29, 2015 at 3:49 PM, Giuseppe Torre >>>> >>>>> <[email protected]> wrote: >>>> >>>>>> >>>> >>>>>> Hi David, >>>> >>>>>> I do have Xcode 6.1.1, command line tool as well as all >>>> required >>>> >>>>>> stuff installed.. >>>> >>>>>> but I still get that CLANG error. >>>> >>>>>> The only step I did not do is: "Set the NUPIC environment >>>> variable to >>>> >>>>>> the absolute path to your local checkout of NuPIC." because I am >>>> not sure >>>> >>>>>> what it means...I wonder if this is cause of the Clang issue... >>>> >>>>>> Thanks though >>>> >>>>>> /G >>>> >>>>>> >>>> >>>>>> On Sun, Mar 29, 2015 at 8:46 PM, cogmission (David Ray) >>>> >>>>>> <[email protected]> wrote: >>>> >>>>>>> >>>> >>>>>>> Hi Giuseppe, >>>> >>>>>>> >>>> >>>>>>> I am in no way a Python/C++ NuPIC installation guru - but I >>>> would >>>> >>>>>>> first recommend >>>> >>>>>>> making sure you have both Xcode installed then make sure you >>>> install >>>> >>>>>>> the "command line tools" --> >>>> >>>>>>> >>>> http://osxdaily.com/2014/02/12/install-command-line-tools-mac-os-x/ >>>> >>>>>>> >>>> >>>>>>> Cheers... >>>> >>>>>>> >>>> >>>>>>> On Sun, Mar 29, 2015 at 12:39 PM, Giuseppe Torre >>>> >>>>>>> <[email protected]> wrote: >>>> >>>>>>>> >>>> >>>>>>>> Hello, >>>> >>>>>>>> I have a problem and a doubt. >>>> >>>>>>>> I will start with the doubt (I am a newbie so apologies in >>>> advance): >>>> >>>>>>>> In the documentation you ask : >>>> >>>>>>>> >>>> >>>>>>>> Set the NUPIC environment variable to the absolute path to your >>>> >>>>>>>> local checkout of NuPIC. >>>> >>>>>>>> >>>> >>>>>>>> export NUPIC=<repo-path> >>>> >>>>>>>> >>>> >>>>>>>> If you are going to run tests, you might need to add py.test >>>> to your >>>> >>>>>>>> $PATH for tests to run. This will be in different locations >>>> depending on >>>> >>>>>>>> your python environment, so we'll leave this up to you. >>>> >>>>>>>> >>>> >>>>>>>> What do you mean? What am I suppose to do? >>>> >>>>>>>> >>>> >>>>>>>> The problem: >>>> >>>>>>>> I have tries to compile using ARCHFLAGS="-arch x86_64" python >>>> >>>>>>>> setup.py install >>>> >>>>>>>> ....but I get the following CLANG error: >>>> >>>>>>>> >>>> >>>>>>>> building 'nupic.libcpp_region' extension >>>> >>>>>>>> >>>> >>>>>>>> clang -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes >>>> >>>>>>>> -Qunused-arguments -Qunused-arguments -arch x86_64 -DNUPIC2 >>>> -DNTA_OS_DARWIN >>>> >>>>>>>> -DNTA_ARCH_64 -DNTA_PYTHON_SUPPORT=2.7 -DNTA_INTERNAL >>>> -DNTA_ASSERTIONS_ON >>>> >>>>>>>> -DNTA_ASM -DHAVE_CONFIG_H -DBOOST_NO_WREGEX >>>> >>>>>>>> -I/Users/giuseppetorre/nupic/external/darwin64/include >>>> >>>>>>>> -I/Users/giuseppetorre/nupic/external/common/include >>>> >>>>>>>> -I/Users/giuseppetorre/nupic/extensions >>>> -I/Users/giuseppetorre/nupic >>>> >>>>>>>> >>>> -I/Users/giuseppetorre/nupic/extensions/core/build/release/include >>>> >>>>>>>> >>>> -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 >>>> >>>>>>>> >>>> -I/Users/giuseppetorre/nupic-darwin64/lib/python2.7/site-packages/numpy/core/include >>>> >>>>>>>> >>>> -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c >>>> >>>>>>>> extensions/py_support/NumpyVector.cpp -o >>>> >>>>>>>> >>>> build/temp.macosx-10.6-intel-2.7/extensions/py_support/NumpyVector.o >>>> >>>>>>>> -std=c++11 -m64 -fPIC -fvisibility=hidden -Wall -Wextra >>>> -Wreturn-type >>>> >>>>>>>> -Wunused -Wno-unused-parameter -mtune=generic -O2 >>>> -stdlib=libc++ >>>> >>>>>>>> >>>> >>>>>>>> clang: error: invalid deployment target for -stdlib=libc++ >>>> (requires >>>> >>>>>>>> OS X 10.7 or later) >>>> >>>>>>>> >>>> >>>>>>>> error: command 'clang' failed with exit status 1 >>>> >>>>>>>> >>>> >>>>>>>> >>>> >>>>>>>> Thanks in advance for your help >>>> >>>>>>>> >>>> >>>>>>>> >>>> >>>>>>> >>>> >>>>>>> >>>> >>>>>>> >>>> >>>>>>> -- >>>> >>>>>>> With kind regards, >>>> >>>>>>> >>>> >>>>>>> David Ray >>>> >>>>>>> Java Solutions Architect >>>> >>>>>>> >>>> >>>>>>> cortical.io >>>> >>>>>>> Sponsor of: HTM.java >>>> >>>>>>> >>>> >>>>>>> [email protected] >>>> >>>>>>> http://cortical.io >>>> >>>>>> >>>> >>>>>> >>>> >>>>>> >>>> >>>>>> >>>> >>>>>> >>>> >>>>> >>>> >>>>> >>>> >>>>> >>>> >>>>> -- >>>> >>>>> With kind regards, >>>> >>>>> >>>> >>>>> David Ray >>>> >>>>> Java Solutions Architect >>>> >>>>> >>>> >>>>> cortical.io >>>> >>>>> Sponsor of: HTM.java >>>> >>>>> >>>> >>>>> [email protected] >>>> >>>>> http://cortical.io >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> -- >>>> >>>> With kind regards, >>>> >>>> >>>> >>>> David Ray >>>> >>>> Java Solutions Architect >>>> >>>> >>>> >>>> cortical.io >>>> >>>> Sponsor of: HTM.java >>>> >>>> >>>> >>>> [email protected] >>>> >>>> http://cortical.io >>>> >>> >>>> >>> >>>> >>> >>>> >>> >>>> >>> -- >>>> >>> >>>> >>> >>>> >> >>>> >> >>>> >> >>>> >> -- >>>> >> With kind regards, >>>> >> >>>> >> David Ray >>>> >> Java Solutions Architect >>>> >> >>>> >> cortical.io >>>> >> Sponsor of: HTM.java >>>> >> >>>> >> [email protected] >>>> >> http://cortical.io >>>> > >>>> > >>>> > >>>> > >>>> > >>>> >>>> >>> >>> >>> >>> >>> > > > >
