numenta / nupic-legacy

Numenta Platform for Intelligent Computing is an implementation of Hierarchical Temporal Memory (HTM), a theory of intelligence based strictly on the neuroscience of the neocortex.
http://numenta.org/
GNU Affero General Public License v3.0
6.34k stars 1.56k forks source link

trouble installing Nupic in Yosemite Mac #3834

Closed pvilloslada closed 6 years ago

pvilloslada commented 6 years ago

Hi. I tried to install Nupic in my Mac running Yosemite iOS and using Python 2.7 and have tried to download several libraries but always received this error message "python setup.py egg_info" failed with error code 1 in /private/tmp/pip-install-NAJoQw/nupic.bindings/ Let me know if you have been able to solve before

rhyolight commented 6 years ago

What command exactly did you use to install?

pvilloslada commented 6 years ago

Hi Matthew

thank you for your help!

I tried "pip install nupic" then run intro troubles because of nupic.bindings. After a quick search I found out nupic.bindings should be installed previously, however when doing "pip install nupic.binding" I found this error.

best regards

Pablo

On May 5, 2018, at 6:28 PM, Matthew Taylor notifications@github.com wrote:

What command exactly did you use to install?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/numenta/nupic/issues/3834#issuecomment-386846762, or mute the thread https://github.com/notifications/unsubscribe-auth/Akx6w3UguH01elMYd3TLEgUOeIQgNW8oks5tvlGtgaJpZM4TzbhG.

rhyolight commented 6 years ago

So I can see your original error, please run the following and paste the output here:

pip uninstall nupic -y
pip install nupic

I'd like to see the error you get.

pvilloslada commented 6 years ago

Hi

Thank you so much for your help. This is the error I got when trying to instal nupic

Could not find a version that satisfies the requirement nupic.bindings==1.0.4 (from nupic) (from versions: 0.1.3, 0.1.5, 0.2, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 0.2.5, 0.2.7, 0.3.0, 0.3.1, 0.4.0, 0.4.1, 0.4.2, 0.4.3, 0.4.4, 0.4.5, 0.4.6, 0.4.7, 0.4.8, 0.4.9, 0.4.10.dev0, 0.4.10, 0.4.12, 0.4.13, 0.4.14, 0.4.15, 0.4.16, 0.5.0, 0.5.1, 0.5.3, 0.6.0, 0.6.1, 1.0.1) No matching distribution found for nupic.bindings==1.0.4 (from nupic)

Let me know if you have seen it before

best regards

Pablo

On May 7, 2018, at 10:36 AM, Matthew Taylor notifications@github.com wrote:

So I can see your original error, please run the following and paste the output here:

pip uninstall nupic -y pip install nupic ``

I'd like to see the error you get. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/numenta/nupic/issues/3834#issuecomment-387142910, or mute the thread https://github.com/notifications/unsubscribe-auth/Akx6w9-ixGRfKmYDCrIpxmYxI0vBWtpWks5twIYOgaJpZM4TzbhG.

rhyolight commented 6 years ago

I sorry, but we don't have a binary installation file for Yosemite in pypi. I can direct you in compiling from source code if you are interested in trying.

pvilloslada commented 6 years ago

Thank you for your replay!

I am going to upgrade the OS of my Mac to Sierra and check if it works fine. I/ll keep you posted

best regards

Pablo

On 09 May, 2018, at 05:38 PM, Matthew Taylor notifications@github.com wrote:

I sorry, but we don't have a binary installation file for Yosemite in pypi. I can direct you in compiling from source code if you are interested in trying. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

pvilloslada commented 6 years ago

Hi

I have updgraded the mac OS to High Sierra 10.13.4 (17E199). Second, I have swtiched python2 from Anaconda to HomeBrew. Third, I have upgradedd cc. Now, I have received a new error

Failed building wheel for pycapnp Running setup.py clean for pycapnp Failed to build pycapnp Installing collected packages: pycapnp, nupic.bindings, DBUtils, nupic Running setup.py install for pycapnp ... error Complete output from command /usr/local/opt/python@2/bin/python2.7 -u -c "import setuptools, tokenize;file='/private/var/folders/3w/3t0vz6yx5_1g_7kh9m0mkm0000gn/T/pip-install-0oXZHk/pycapnp/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /private/var/folders/3w/3t0vz6yx51g7kh9m0mkm0000gn/T/pip-record-H1Ya0D/install-record.txt --single-version-externally-managed --compile --user --prefix=: Traceback (most recent call last): File "", line 1, in File "/private/var/folders/3w/3t0vz6yx5_1g___7kh9m0mkm0000gn/T/pip-install-0oXZHk/pycapnp/setup.py", line 92, in from Cython.Distutils import build_ext as build_ext_c ImportError: No module named Cython.Distutils

----------------------------------------

Command "/usr/local/opt/python@2/bin/python2.7 -u -c "import setuptools, tokenize;file='/private/var/folders/3w/3t0vz6yx5_1g_7kh9m0mkm0000gn/T/pip-install-0oXZHk/pycapnp/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /private/var/folders/3w/3t0vz6yx51g7kh9m0mkm0000gn/T/pip-record-H1Ya0D/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /private/var/folders/3w/3t0vz6yx5_1g___7kh9m0mkm0000gn/T/pip-install-0oXZHk/pycapnp/

I have this version of pip

pip 10.0.1 from /usr/local/lib/python2.7/site-packages/pip (python 2.7)

do you have any suggestion?

best regards

Pablo

On May 5, 2018, at 6:28 PM, Matthew Taylor notifications@github.com wrote:

What command exactly did you use to install?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/numenta/nupic/issues/3834#issuecomment-386846762, or mute the thread https://github.com/notifications/unsubscribe-auth/Akx6w3UguH01elMYd3TLEgUOeIQgNW8oks5tvlGtgaJpZM4TzbhG.

rhyolight commented 6 years ago

What command are you running to get that error?

pvilloslada commented 6 years ago

Hi

I used this one

pip install nupic

thank you again

Pablo

On May 13, 2018, at 6:57 AM, Matthew Taylor notifications@github.com wrote:

What command are you running to get that error?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/numenta/nupic/issues/3834#issuecomment-388601575, or mute the thread https://github.com/notifications/unsubscribe-auth/Akx6wzFhEUjeog-bWOO3WO32ohQ5OiWnks5tx70ngaJpZM4TzbhG.

rhyolight commented 6 years ago

Now that you have a fresh OS, let's try to clean it up and make sure we are starting from scratch. Please run these lines a few times (until it says they are not installed)

pip uninstall nupic -y
pip uninstall nupic-bindings -y

Now that everything is uninstalled, try running this again:

pip install --user nupic

Please save your output from these commands if there are errors and paste them here.

pvilloslada commented 6 years ago

Dear Matthew

I have followed your indications. Unfortunately I got the same message

Macintosh-114:~ pablo$ pip uninstall nupic -y Skipping nupic as it is not installed. Macintosh-114:~ pablo$ pip uninstall nupic-bindings -y Skipping nupic-bindings as it is not installed. Macintosh-114:~ pablo$ pip install --user nupic Collecting nupic

…..

Failed building wheel for pycapnp Running setup.py clean for pycapnp Failed to build pycapnp Installing collected packages: pycapnp, nupic.bindings, DBUtils, nupic Running setup.py install for pycapnp ... error Complete output from command /usr/local/opt/python@2/bin/python2.7 -u -c "import setuptools, tokenize;file='/private/var/folders/3w/3t0vz6yx5_1g_7kh9m0mkm0000gn/T/pip-install-Ro6djP/pycapnp/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /private/var/folders/3w/3t0vz6yx51g7kh9m0mkm0000gn/T/pip-record-Qe0saw/install-record.txt --single-version-externally-managed --compile --user --prefix=: Traceback (most recent call last): File "", line 1, in File "/private/var/folders/3w/3t0vz6yx5_1g___7kh9m0mkm0000gn/T/pip-install-Ro6djP/pycapnp/setup.py", line 92, in from Cython.Distutils import build_ext as build_ext_c ImportError: No module named Cython.Distutils

----------------------------------------

Command "/usr/local/opt/python@2/bin/python2.7 -u -c "import setuptools, tokenize;file='/private/var/folders/3w/3t0vz6yx5_1g_7kh9m0mkm0000gn/T/pip-install-Ro6djP/pycapnp/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /private/var/folders/3w/3t0vz6yx51g7kh9m0mkm0000gn/T/pip-record-Qe0saw/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /private/var/folders/3w/3t0vz6yx5_1g___7kh9m0mkm0000gn/T/pip-install-Ro6djP/pycapnp/

could be this related with the version of pythons installed in my Macbook?

best regards

Pablo

On May 14, 2018, at 6:26 PM, Matthew Taylor notifications@github.com wrote:

Now that you have a fresh OS, let's try to clean it up and make sure we are starting from scratch. Please run these lines a few times (until it says they are not installed)

pip uninstall nupic -y pip uninstall nupic-bindings -y Now that everything is uninstalled, try running this again:

pip install --user nupic Please save your output from these commands if there are errors and paste them here.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/numenta/nupic/issues/3834#issuecomment-388878523, or mute the thread https://github.com/notifications/unsubscribe-auth/Akx6wwECCX18n8c9slbmZJBikzbJepsnks5tybBMgaJpZM4TzbhG.

rhyolight commented 6 years ago

Sorry you are having trouble. I don't know what the problem is. Perhaps you just need to install cython? The only other thing I know to suggest is that you try to compile nupic.core locally.

pvilloslada commented 6 years ago

Thank you again! I think this may be related with the several version of python I have installed along time…

I am going to try your suggestions

regards

Pablo Villoslada

On May 14, 2018, at 8:00 PM, Matthew Taylor notifications@github.com wrote:

Sorry you are having trouble. I don't know what the problem is. Perhaps you just need to install cython? The only other thing I know to suggest is that you try to compile nupic.core locally https://github.com/numenta/nupic.core#building-from-source.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/numenta/nupic/issues/3834#issuecomment-388907981, or mute the thread https://github.com/notifications/unsubscribe-auth/Akx6w4cAWzaNBeh7_IjwCPhlTuqHAny6ks5tycY7gaJpZM4TzbhG.

rhyolight commented 6 years ago

Oh yeah... python version problems are the worst on a mac. I've been through it. At one point I ended up starting from scratch. I've had success with homebrew python and system python together, but not always. I can't get anaconda to work. Good luck.

pvilloslada commented 6 years ago

yes, this is what I am going to do it, starting again from scratch and try homebrew python

Pablo

On May 14, 2018, at 9:43 PM, Matthew Taylor notifications@github.com wrote:

Oh yeah... python version problems are the worst on a mac. I've been through it. At one point I ended up starting from scratch. I've had success with homebrew python and system python together, but not always. I can't get anaconda to work. Good luck.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/numenta/nupic/issues/3834#issuecomment-388938348, or mute the thread https://github.com/notifications/unsubscribe-auth/Akx6w3idePBeAsglDMIIhTNsFhgMVO4Wks5tyd5EgaJpZM4TzbhG.

pvilloslada commented 6 years ago

Dear Matthew

I have followed all options you suggested plus some others from the web… now I get this error which seems related with the code

error: command 'clang' failed with exit status 1

I have also tried to install locally but the same error appeared. Let me know if you have any suggestion

If you or some of your collaborators at Numenta have some time in the following weeks, I can stop any afternoon at your offices in Redwood city in my way back home

best regards

Pablo Villoslada

On May 14, 2018, at 11:00 AM, Matthew Taylor notifications@github.com wrote:

Sorry you are having trouble. I don't know what the problem is. Perhaps you just need to install cython? The only other thing I know to suggest is that you try to compile nupic.core locally https://github.com/numenta/nupic.core#building-from-source.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/numenta/nupic/issues/3834#issuecomment-388907981, or mute the thread https://github.com/notifications/unsubscribe-auth/Akx6w4cAWzaNBeh7_IjwCPhlTuqHAny6ks5tycY7gaJpZM4TzbhG.

rhyolight commented 6 years ago

@pvilloslada Sure, please email me.