Yajingfu, Try this, so we can start from scratch. These git commands will ensure that your working directory is up to date and clean (this will destroy any local changes you have not committed):
cd $NUPIC # assuming $NUPIC is where you have it checked out git fetch origin git reset --hard origin master git clean -dfx Now again make sure everything is uninstalled: pip uninstall nupic -y pip uninstall nupic.bindings -y Run those two commands a few times until they tell you nothing is installed. Then try to install from scratch: python setup.py install You may need to add the "--user" option for the command above if you have permission issues. If this does not work, please tell us some extra info: - python version - pip version - OS details (Linux flavor?) - gcc version I hope that helps, --------- Matt Taylor OS Community Flag-Bearer Numenta On Sun, Sep 13, 2015 at 7:19 PM, 付亚静 <[email protected]> wrote: > Hi NuPIC > I wonder what else I can do for the problem. Can anyone help me? Thank > you so much! > > Yajingfu > > > ------------------ 原始邮件 ------------------ > 发件人: "付亚静";<[email protected]>; > 发送时间: 2015年9月11日(星期五) 晚上11:16 > 收件人: "付亚静"<[email protected]>; > 主题: 回复: 回复: How to update the newest NuPIC version > > Hi > > I tried the two commands and had some version conflict. For > example,VersionConflict: (pytest 2.7.2 > (/usr/local/lib/python2.7/dist-packages), > Requirement.parse('pytest==2.4.2'))。 > > so I reinstalled them and it shows like this: > > abc@abc-VirtualBox:/newdisk$ pip uninstall nupic -y > Uninstalling nupic: > Successfully uninstalled nupic > abc@abc-VirtualBox:/newdisk$ pip uninstall nupic.bindings -y > Cannot uninstall requirement nupic.bindings, not installed > Storing complete log in /home/abc/.pip/pip.log > > but it still has the same problem: > > abc@abc-VirtualBox:/newdisk/nupic$ python setup.py build > error in nupic setup command: 'install_requires' must be a string or list of > strings containing valid project/version requirement specifiers > > What should I do next? > > ------------------ 原始邮件 ------------------ > 发件人: "Matthew Taylor";<[email protected]>; > 发送时间: 2015年9月11日(星期五) 晚上10:33 > 收件人: "付亚静"<[email protected]>; > 主题: Re: 回复: How to update the newest NuPIC version > > Try uninstalling any old versions of nupic: > https://github.com/numenta/nupic/wiki/Build-and-Installation-FAQ#im-having-trouble-updating-to-a-newer-version-of-nupic > > Then run "python setup.py build" again? > --------- > Matt Taylor > OS Community Flag-Bearer > Numenta > > > On Fri, Sep 11, 2015 at 2:38 AM, 付亚静 <[email protected]> wrote: >> >> HI >> >> I took a snapshot before. So I recovered it and installed numpy 1.9.2 and >> py.test at first successfully. Then I pulled and get the newest version. >> But it can't be build seccufully. >> >> My steps are as follows. >> >>>>git commit -a >>>>git pull >> remote: Counting objects: 4, done. >> remote: Compressing objects: 100% (4/4), done. >> remote: Total 4 (delta 0), reused 0 (delta 0), pack-reused 0 >> Unpacking objects: 100% (4/4), done. >> From https://github.com/numenta/nupic >> f2f1824..e6362c7 master -> origin/master >> * [new branch] core-update-4ef1f6e560af555f1f53f457d0400dc4c3a67658 >> -> >> origin/core-update-4ef1f6e560af555f1f53f457d0400dc4c3a67658 >> Merge made by the 'recursive' strategy. >> .nupic_modules | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >>>>python setup.py build >> error in nupic setup command: 'install_requires' must be a string or list >> of >> strings containing valid project/version requirement specifiers >> >> It's too strange. I can't solve it. So asking for help. Thank you. :) >> >> ------------------ 原始邮件 ------------------ >> 发件人: "Matthew Taylor";<[email protected]>; >> 发送时间: 2015年9月10日(星期四) 晚上11:43 >> 收件人: "付亚静"<[email protected]>; >> 主题: Re: 回复: How to update the newest NuPIC version >> >> What does this show? >> >>> which pytest >> >> >> --------- >> Matt Taylor >> OS Community Flag-Bearer >> Numenta >> >> On Tue, Sep 8, 2015 at 9:24 PM, 付亚静 <[email protected]> wrote: >>> >>> >>> I searched and found https://github.com/numenta/nupic/issues/2008 was >>> similar to my problem. So I input command "sudo pip install -U pytest" >>> depending on http://pytest.org/latest/getting-started.html just like >>> this: >>> >>> abc@abc-VirtualBox:~$ sudo pip install -U pytest >>> Downloading/unpacking pytest >>> Running setup.py egg_info for package pytest >>> >>> Downloading/unpacking py>=1.4.29 (from pytest) >>> Running setup.py egg_info for package py >>> >>> Installing collected packages: pytest, py >>> Found existing installation: pytest 2.7.2 >>> Uninstalling pytest: >>> Successfully uninstalled pytest >>> Running setup.py install for pytest >>> >>> Installing py.test script to /usr/local/bin >>> Installing py.test-2.7 script to /usr/local/bin >>> Found existing installation: py 1.4.30 >>> Uninstalling py: >>> Successfully uninstalled py >>> Running setup.py install for py >>> >>> Successfully installed pytest py >>> Cleaning up... >>> >>> then I tried to test wether pytest is installed correctly. >>> >>> abc@abc-VirtualBox:~$ py.test --version >>> bash: /usr/bin/py.test: No such file or directory >>> >>> What should I do? Hoping for your reply. >>> >>> ------------------ 原始邮件 ------------------ >>> 发件人: "付亚静";<[email protected]>; >>> 发送时间: 2015年9月9日(星期三) 中午11:08 >>> 收件人: "付亚静"<[email protected]>; >>> 主题: 回复: 回复: How to update the newest NuPIC version >>> >>> I used "sudo pip install numpy --upgrage" and numpy 1.9.2 was installed >>> successfully. >>> Then I inputed commands: >>> python setup.py build >>> python setup.py install --user >>> python setup.py develop --user >>> The three commands showed above were all correct. >>> Then I tried to test it. >>> $NUPIC/bin/py_region_test >>> --- ALL TESTS PASSED --- >>> >>> But all of the rest tests have the same error. >>> abc@abc-VirtualBox:~$ $NUPIC/scripts/run_nupic_tests --all --coverage >>> Traceback (most recent call last): >>> File "/newdisk/nupic/scripts/run_nupic_tests", line 265, in <module> >>> result = main(parser, sys.argv[1:]) >>> File "/newdisk/nupic/scripts/run_nupic_tests", line 255, in main >>> exitStatus = call(["py.test"] + args + list(tests)) >>> File "/usr/lib/python2.7/subprocess.py", line 493, in call >>> return Popen(*popenargs, **kwargs).wait() >>> File "/usr/lib/python2.7/subprocess.py", line 679, in __init__ >>> errread, errwrite) >>> File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child >>> raise child_exception >>> OSError: [Errno 2] No such file or directory >>> >>> my pytest version is 2.5.1. >>> >>> What should I do next? Thank you. >>> >>> >>> ------------------ 原始邮件 ------------------ >>> 发件人: "Matthew Taylor";<[email protected]>; >>> 发送时间: 2015年9月8日(星期二) 晚上11:02 >>> 收件人: "付亚静"<[email protected]>; >>> 主题: Re: 回复: How to update the newest NuPIC version >>> >>> See >>> >>> https://github.com/numenta/nupic/wiki/Build-and-Installation-FAQ#missing-pythonh-file >>> >>> Sent from my MegaPhone >>> >>> On Sep 8, 2015, at 5:14 AM, 付亚静 <[email protected]> wrote: >>> >>> I tried "git pull" and my local files are the newest. But the code can't >>> run. So I input command "python setup.py install --user" and get an error >>> as >>> follows. >>> ... >>> File >>> >>> "/tmp/easy_install-C80eUH/numpy-1.9.2/numpy/distutils/command/build_src.py", >>> line 329, in build_extension_sources >>> File >>> >>> "/tmp/easy_install-C80eUH/numpy-1.9.2/numpy/distutils/command/build_src.py", >>> line 386, in generate_sources >>> File "numpy/core/setup.py", line 432, in generate_config_h >>> >>> File "numpy/core/setup.py", line 42, in check_types >>> >>> File "numpy/core/setup.py", line 293, in check_types >>> >>> SystemError: Cannot compile 'Python.h'. Perhaps you need to install >>> python-dev|python-devel. >>> >>> then I tried: >>> abc@abc-VirtualBox:/newdisk/nupic$ sudo apt-get install python-dev >>> Reading package lists... Done >>> Building dependency tree >>> Reading state information... Done >>> python-dev is already the newest version. >>> 0 upgraded, 0 newly installed, 0 to remove and 195 not upgraded. >>> >>> But it still has the same error. >>> >>> My OS is ubuntu 12.04, and I just want to update it. Should I just follow >>> the commands of "installation" part >>> >>> (https://github.com/numenta/nupic/wiki/Installing-and-Building-NuPIC#installation)? >>> >>> >>> ------------------ 原始邮件 ------------------ >>> 发件人: "Richard Crowder";<[email protected]>; >>> 发送时间: 2015年9月8日(星期二) 下午5:39 >>> 收件人: "付亚静"<[email protected]>; >>> 主题: Re: How to update the newest NuPIC version >>> >>> Hi, >>> >>> The usual route is via 'pip install nupic' (local or system wide). In you >>> case, grabbing source from GitHub, could you try a 'git pull' to sync >>> with >>> the main repository (and then follow the Readme and Wiki steps for >>> building >>> and install). >>> >>> Regards, Richard. >>> >>> >>> On Tue, Sep 8, 2015 at 10:31 AM, 付亚静 <[email protected]> wrote: >>>> >>>> Hi NuPIC: >>>> I installed the NuPIC environment several monthes ago. And I >>>> wanted >>>> to update to the newest version. But I'm not familiar with git command. >>>> I >>>> tried to use the commands as follows. >>>> >>>> abc@abc-VirtualBox:/newdisk/nupic>Git stash >>>> abc@abc-VirtualBox:/newdisk/nupic>Git fetch origin >>>> abc@abc-VirtualBox:/newdisk/nupic>Git diff master origin/master >>>> abc@abc-VirtualBox:/newdisk/nupic>Git stash pop >>>> >>>> The file nupic/VERSION shows it is version 0.3.0.dev0, but I find some >>>> files are still not same as the newest file in >>>> https://github.com/numenta/nupic. >>>> For example, the files in /nupic/examples/network are not the same. >>>> >>>> Maybe it's not your duty to answer this kind of questions. But I really >>>> don't know who can help me to solve it. So hoping for your reply. Thank >>>> you >>>> so much. >>>> >>>> Yajingfu >>> >>> >>
