Hi Matt,
> On Mar 30, 2015, at 12:44, Matthew Taylor <[email protected]> wrote: > > NTA_DATA_PATH has been completely deprecated. This var is never > checked anywhere in the code. That’s good to know. Thanks. > > This example should run from the example directory (your second run). > There was a problem with finding relative paths, but I fixed it. Are > you sure you have the most updated NuPIC checkout? Yep. Regards, Dave -- http://about.me/david_wood > > --------- > Matt Taylor > OS Community Flag-Bearer > Numenta > > > On Wed, Mar 25, 2015 at 1:51 PM, David Wood <[email protected]> wrote: >> Hi Matt, >> >> This problem seems to be back… >> >> I am running on Mac OS 10.10, using the system python, and the nupic python >> client from a GitHub checkout. I updated it today and built: >> [[ >> $ git pull origin master >> $ export ARCHFLAGS="-arch x86_64” >> $ python setup.py develop >> ]] >> >> Compilation went fine, modulo the usual deprecation/conversion warnings. >> >> My environment is: >> [[ >> $ export NUPIC=/Users/dwood/code/nupic-0.2.1 >> $ export NTA_CONF_PATH=/Users/dwood/code/nupic-0.2.1/nupic/support >> $ export >> NTA_DATA_PATH=/Users/dwood/code/nupic-0.2.1/examples/opf/clients/hotgym/prediction/one_gym/ >> ]] >> >> The simple hotgym example runs, but the prediction example fails in the same >> way that Mateja mentioned earlier: >> >> 1) When run from $NUPIC, the error is: >> [[ >> $ python examples/opf/clients/hotgym/prediction/one_gym/swarm.py >> … >> IOError: [Errno 2] No such file or directory: >> u'/Users/dwood/code/nupic/rec-center-hourly.csv’ >> ]] >> >> 2) When run from the example directory >> ($NUPIC/examples/opf/clients/hotgym/prediction/one_gym/), the error is: >> [[ >> $ python ./swarm.py >> … >> IOError: [Errno 2] No such file or directory: >> u'/Users/dwood/Library/Python/2.7/lib/python/site-packages/nupic-0.3.0.dev0-py2.7-macosx-10.10-intel.egg/nupic/datafiles/rec-center-hourly.csv' >> ]] >> >> Note the path difference in the errors. >> >> Perhaps the $NTA_DATA_PATH variable is not being respected? >> >> Regards, >> Dave >> -- >> http://about.me/david_wood >> >> >> >>> On Mar 9, 2015, at 20:19, Matthew Taylor <[email protected]> wrote: >>> >>> Outstanding, thanks. >>> --------- >>> Matt Taylor >>> OS Community Flag-Bearer >>> Numenta >>> >>> >>> On Mon, Mar 9, 2015 at 4:54 PM, Mateja Putic <[email protected]> wrote: >>>> Matt, it's fixed on my end. I ran the ./swarm.py job to completion. >>>> >>>> Thank you! >>>> >>>> >>>> >>>> On Mon, Mar 9, 2015 at 5:15 PM, Matthew Taylor <[email protected]> wrote: >>>>> >>>>> Mateja, I think I've fixed the problem. Can you pull the latest from >>>>> master, rerun "python setup.py develop" and try running the example >>>>> again? >>>>> --------- >>>>> Matt Taylor >>>>> OS Community Flag-Bearer >>>>> Numenta >>>>> >>>>> >>>>> On Mon, Mar 9, 2015 at 12:34 PM, Mateja Putic <[email protected]> wrote: >>>>>> This is on Ubuntu 14.04.2 LTS. On March 7th, following instructions from >>>>>> [1] >>>>>> I did a git clone followed by python setup.py develop >>>>>> >>>>>> Thank you! >>>>>> >>>>>> [1] https://github.com/numenta/nupic/wiki/Installing-and-Building-NuPIC >>>>>> >>>>>> >>>>>> On Mon, Mar 9, 2015 at 2:53 PM, Matthew Taylor <[email protected]> wrote: >>>>>>> >>>>>>> I have replicated this error on my computer: >>>>>>> https://github.com/numenta/nupic/issues/1918. I'll be working on this >>>>>>> today. >>>>>>> --------- >>>>>>> Matt Taylor >>>>>>> OS Community Flag-Bearer >>>>>>> Numenta >>>>>>> >>>>>>> >>>>>>> On Mon, Mar 9, 2015 at 10:25 AM, Matthew Taylor <[email protected]> >>>>>>> wrote: >>>>>>>> Ok, thanks for the report. Looks like there is something wrong with >>>>>>>> some recent changes I made, trying to make data file discovery >>>>>>>> easier! >>>>>>>> I'll be looking into this today. >>>>>>>> >>>>>>>> Mateja, can you tell me: >>>>>>>> - How did you install nupic? >>>>>>>> - What OS are you running on? >>>>>>>> >>>>>>>> Thanks, >>>>>>>> --------- >>>>>>>> Matt Taylor >>>>>>>> OS Community Flag-Bearer >>>>>>>> Numenta >>>>>>>> >>>>>>>> >>>>>>>> On Mon, Mar 9, 2015 at 9:41 AM, David Wood <[email protected]> >>>>>>>> wrote: >>>>>>>>> Hi Mateja, >>>>>>>>> >>>>>>>>> I just had a very similar problem. Please see: >>>>>>>>> https://github.com/numenta/nupic/issues/1805 >>>>>>>>> >>>>>>>>> There is a bug, but I managed to work around it by setting the NUPIC >>>>>>>>> and >>>>>>>>> NTA_DATA_PATH environment variables. NUPIC should be set the top >>>>>>>>> level >>>>>>>>> of >>>>>>>>> your NuPIC installation and the second set to the location of your >>>>>>>>> data >>>>>>>>> file. >>>>>>>>> >>>>>>>>> I hope this helps! >>>>>>>>> >>>>>>>>> Regards, >>>>>>>>> Dave >>>>>>>>> -- >>>>>>>>> http://about.me/david_wood >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> On Mar 9, 2015, at 12:34, Mateja Putic <[email protected]> wrote: >>>>>>>>> >>>>>>>>> I am following the hotgym prediction demo instructions from Matt's >>>>>>>>> tutorial >>>>>>>>> video (https://www.youtube.com/watch?v=S-0thrzOHTc) on a clean >>>>>>>>> develop >>>>>>>>> build >>>>>>>>> checked out March 7th. >>>>>>>>> >>>>>>>>> I am running ./swarm.py and it quits with the following error (this >>>>>>>>> is >>>>>>>>> just >>>>>>>>> an excerpt of the full log http://pastebin.com/w0v1Ym7c) >>>>>>>>> >>>>>>>>> Successfully submitted new HyperSearch job, jobID=1021 >>>>>>>>> <jobID: 1021> 2 models finished [success: 0; eof: 0; stopped: 0; >>>>>>>>> killed: 0; >>>>>>>>> ERROR: 2; ORPHANED: 0; unknown: 0] >>>>>>>>> ERROR MESSAGE: Exception occurred while running model 2481: >>>>>>>>> IOError(2, >>>>>>>>> 'No >>>>>>>>> such file or directory') (<type 'exceptions.IOError'>) >>>>>>>>> Traceback (most recent call last): >>>>>>>>> File "/home/vagrant/nupic/nupic/swarming/utils.py", line 430, in >>>>>>>>> runModelGivenBaseAndParams >>>>>>>>> (completionReason, completionMsg) = runner.run() >>>>>>>>> File "/home/vagrant/nupic/nupic/swarming/ModelRunner.py", line >>>>>>>>> 238, >>>>>>>>> in run >>>>>>>>> maxTimeout=readTimeout) >>>>>>>>> File "/home/vagrant/nupic/nupic/data/stream_reader.py", line 209, >>>>>>>>> in >>>>>>>>> __init__ >>>>>>>>> self._openStream(dataUrl, isBlocking, maxTimeout, bookmark, >>>>>>>>> firstRecordIdx) >>>>>>>>> File "/home/vagrant/nupic/nupic/data/stream_reader.py", line 300, >>>>>>>>> in >>>>>>>>> _openStream >>>>>>>>> firstRecord=firstRecordIdx) >>>>>>>>> File "/home/vagrant/nupic/nupic/data/file_record_stream.py", line >>>>>>>>> 164, in >>>>>>>>> __init__ >>>>>>>>> self._file = open(self._filename, self._mode) >>>>>>>>> IOError: [Errno 2] No such file or directory: >>>>>>>>> u'/home/vagrant/nupic/nupic/datafiles/rec-center-hourly.csv' >>>>>>>>> >>>>>>>>> I'm not sure why its looking in >>>>>>>>> /home/vagrant/nupic/nupic/datafiles/rec-center-hourly.csv when the >>>>>>>>> config >>>>>>>>> file specifies 'file://rec-center-hourly.csv', which should mean the >>>>>>>>> $PWD. >>>>>>>>> >>>>>>>>> I tried debugging; I set a breakpoint on line 164 of >>>>>>>>> file_record_stream.py >>>>>>>>> and self._filename evaluates to >>>>>>>>> >>>>>>>>> >>>>>>>>> u'/home/vagrant/nupic/examples/opf/clients/hotgym/prediction/one_gym/rec-center-hourly.csv' >>>>>>>>> which is correct. >>>>>>>>> >>>>>>>>> However, I think this is multithreaded code, so when the breakpoint >>>>>>>>> is >>>>>>>>> hit, >>>>>>>>> it could be just the first time. When I continue after that >>>>>>>>> breakpoint, >>>>>>>>> the >>>>>>>>> breakpoint isn't hit again and it fails with the above error. >>>>>>>>> >>>>>>>>> I also tried changing "source" in swarm_description.py to >>>>>>>>> "file://extra/hotgym/rec-center-hourly.csv", and that got a little >>>>>>>>> further, >>>>>>>>> but then it complained that there's a discrepancy in the column >>>>>>>>> names. >>>>>>>>> >>>>>>>>> It seems that at one time while swarm.py is run, it thinks the root >>>>>>>>> is >>>>>>>>> $NUPIC, and then at another time it thinks its $PWD. I'm not sure >>>>>>>>> where >>>>>>>>> the >>>>>>>>> source of the problem is though. I could use someone's help in >>>>>>>>> tracking >>>>>>>>> this >>>>>>>>> down. >>>>>>>>> >>>>>>>>> Thanks! >>>>>>>>> >>>>>>>>> -- >>>>>>>>> Mr. Mateja Putic >>>>>>>>> Ph.D Candidate >>>>>>>>> Department of Electrical and Computer Engineering >>>>>>>>> University of Virginia >>>>>>>>> (703) 303-2099 >>>>>>>>> >>>>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Mr. Mateja Putic >>>>>> Ph.D Candidate >>>>>> Department of Electrical and Computer Engineering >>>>>> University of Virginia >>>>>> (703) 303-2099 >>>>> >>>> >>>> >>>> >>>> -- >>>> Mr. Mateja Putic >>>> Ph.D Candidate >>>> Department of Electrical and Computer Engineering >>>> University of Virginia >>>> (703) 303-2099 >>> >> >> >
