Jia, I'm having some issues getting the right versions of pycapnp and capnp myself after recent changes. The nupic.core readme says:
pycapnp Version 0.5.5 Cap'n Proto Version 0.5.2 It looks like you have the right version of pycapnp on your system. Are you sure that "./.local/lib/python2.7/site-packages/pycapnp-0.5.5-py2.7-linux-x86_64.egg" is on your python path? --------- Matt Taylor OS Community Flag-Bearer Numenta On Fri, Aug 28, 2015 at 3:21 AM, 吴佳 <[email protected]> wrote: > Hi, nupic > > I have tried install pycapnp' manually by running "pip install pycapnp", > I got: > Requirement already satisfied (use --upgrade to upgrade): pycapnp in > ./.local/lib/python2.7/site-packages/pycapnp-0.5.5-py2.7-linux-x86_64.egg > Cleaning up... > > Than I tried nupic.encoders import ScalarEncoder", I got: >> >> Traceback (most recent call last): >> File "<stdin>", line 1, in <module> >> File >> "/usr/local/lib/python2.7/dist-packages/nupic/encoders/__init__.py", >> line 22, in <module> >> from scalar import ScalarEncoder >> File "/usr/local/lib/python2.7/dist-packages/nupic/encoders/scalar.py", >> line 25, in <module> >> import capnp >> ImportError: No module named capnp > > It's wierd. Do you know why? Thank you for your help > > Jia > > Message: 7 > Date: Wed, 26 Aug 2015 08:29:35 -0700 > From: Matthew Taylor <[email protected]> > To: "NuPIC general mailing list." <[email protected]> > Subject: Re: Installation error on Ubuntu 14.04 > Message-ID: > <CAJv6nDNeg7pDhe71y8+ToP27+Af=o5pvpg6l8tghxolzkpv...@mail.gmail.com> > Content-Type: text/plain; charset=UTF-8 > >> ImportError: No module named capnp > > This indicates that the 'pycapnp' python module is not installed. > > When you ran "python setup.py install --user", the 'pycapnp' python > module should have been installed. Can you show us the console output > from that installation command so I can see if there was a failure? > > Also, you can install it manually by running "pip install pycapnp", > which might fix your setup, but I'm still interesting in the console > in case there was an installation problem that was not reported as a > failure. > > Thanks, > --------- > Matt Taylor > OS Community Flag-Bearer > Numenta > > > On Tue, Aug 25, 2015 at 6:50 PM, ?? <[email protected]> wrote: >> Hi Nupic, >> >> I have installed Nupic following the steps below: >> 1.sudo apt-get upgrade # optional >> 2.sudo apt-get install git python-dev python-pip automake libtool >> libssl-dev >> g++ cmake mysql-server libpcre3-dev >> 3. pip install numpy >> 4.git clone https://github.com/numenta/nupic.git >> 5.python setup.py install --user >> >> After that I got: >> ... >> Using /home/xx/.local/lib/python2.7/site-packages/apipkg-1.4-py2.7.egg >> Finished processing dependencies for nupic==0.2.12.dev0 >> Copying binaries from /home/xx/nupic/extensions/core/build/release/bin to >> /home/xx/nupic/bin... >> >> Then I tried the code in Beginner's Guide to NuPIC After I put "from >> nupic.encoders import ScalarEncoder", I got: >> >> Traceback (most recent call last): >> File "<stdin>", line 1, in <module> >> File >> "/usr/local/lib/python2.7/dist-packages/nupic/encoders/__init__.py", >> line 22, in <module> >> from scalar import ScalarEncoder >> File "/usr/local/lib/python2.7/dist-packages/nupic/encoders/scalar.py", >> line 25, in <module> >> import capnp >> ImportError: No module named capnp >> >> I am sure that I have not installed nupic successfully, but why? I have >> followed every step in the web. Can anyone help me? Thank you >> >> jia >>
