GithubHelp home page GithubHelp logo

Comments (12)

breznak avatar breznak commented on June 10, 2024

This is on both Chromium, Firefox, Ununtu 16.04.

Note: I get a warning $ npm install npm WARN optional Skipping failed optional dependency /chokidar/fsevents: npm WARN notsup Not compatible with your operating system or architecture: [email protected] but I guess it's really just optional.

from htm-school-viz.

rikkertkoppes avatar rikkertkoppes commented on June 10, 2024

Yeah, the npm error is likely unrelated

from htm-school-viz.

rikkertkoppes avatar rikkertkoppes commented on June 10, 2024

It seems you have a few ports confused

  • htm-school-viz runs on 8080 (or any other you provide by the command line)
  • it expects nupic-history-server to run on 8000 which is NOT configurable
  • nupic-history-server expects redis to run on 6379, which is also NOT configurable

from htm-school-viz.

breznak avatar breznak commented on June 10, 2024

Please review the 2 PRs, @rikkertkoppes was right that I had the servers confused; but I think there still was an error with the ports.

Now it's:

  • redis (as default on 6379)
  • nupic-history-server listens on 8080 (it actually listnes there, not configurable)
  • htm-schools-viz expects "history" now correctly on 8080, and it itself runs on 8001 (now)

Is this correct? 🙀

from htm-school-viz.

breznak avatar breznak commented on June 10, 2024

I'd still be getting an error

(schools) mmm@mmm-U2442:/mnt/store/devel/HTM/htm_schools/nupic-history-server$ jobs
[1]+  Running                 redis-server &
(schools) mmm@mmm-U2442:/mnt/store/devel/HTM/htm_schools/nupic-history-server$ python webserver.py
http://0.0.0.0:8080/
Traceback (most recent call last):
  File "/mnt/store/devel/HTM/htm_schools/schools/local/lib/python2.7/site-packages/web/application.py", line 239, in process
    return self.handle()
  File "/mnt/store/devel/HTM/htm_schools/schools/local/lib/python2.7/site-packages/web/application.py", line 230, in handle
    return self._delegate(fn, self.fvars, args)
  File "/mnt/store/devel/HTM/htm_schools/schools/local/lib/python2.7/site-packages/web/application.py", line 462, in _delegate
    return handle_class(cls)
  File "/mnt/store/devel/HTM/htm_schools/schools/local/lib/python2.7/site-packages/web/application.py", line 438, in handle_class
    return tocall(*args)
  File "webserver.py", line 404, in DELETE
    ioClient.nuke()
  File "/mnt/store/devel/HTM/htm_schools/nupic-history-server/nupic_history/io_client.py", line 154, in nuke
    for f in os.listdir(folder):
OSError: [Errno 2] No such file or directory: './working'

127.0.0.1:54632 - - [06/Apr/2017 16:58:50] "HTTP/1.1 DELETE /_flush/" - 500 Internal Server Error

...but I think it's a move in the right direction 💭

from htm-school-viz.

breznak avatar breznak commented on June 10, 2024

And I was right 😉

Added a commit that fixes err above, now we face a new one:

(schools) mmm@mmm-U2442:/mnt/store/devel/HTM/htm_schools/nupic-history-server$ python webserver.py
http://0.0.0.0:8080/
127.0.0.1:54852 - - [06/Apr/2017 17:13:52] "HTTP/1.1 DELETE /_flush/" - 200 OK
{u'boostStrength': 1,
 u'columnDimensions': [2048],
 u'dutyCyclePeriod': 1000,
 u'globalInhibition': True,
 u'inputDimensions': [631],
 u'localAreaDensity': 0,
 u'minPctOverlapDutyCycle': 0.001,
 u'numActiveColumnsPerInhArea': 40,
 u'potentialPct': 0.85,
 u'potentialRadius': 631,
 u'stimulusThreshold': 1,
 u'synPermActiveInc': 0.05,
 u'synPermConnected': 0.1,
 u'synPermInactiveDec': 0.008,
 u'wrapAround': True}
Traceback (most recent call last):
  File "/mnt/store/devel/HTM/htm_schools/schools/local/lib/python2.7/site-packages/web/application.py", line 239, in process
    return self.handle()
  File "/mnt/store/devel/HTM/htm_schools/schools/local/lib/python2.7/site-packages/web/application.py", line 230, in handle
    return self._delegate(fn, self.fvars, args)
  File "/mnt/store/devel/HTM/htm_schools/schools/local/lib/python2.7/site-packages/web/application.py", line 462, in _delegate
    return handle_class(cls)
  File "/mnt/store/devel/HTM/htm_schools/schools/local/lib/python2.7/site-packages/web/application.py", line 438, in handle_class
    return tocall(*args)
  File "webserver.py", line 75, in POST
    sp = SpFacade(SP(**params), ioClient)
TypeError: __init__() got an unexpected keyword argument 'boostStrength'

127.0.0.1:54854 - - [06/Apr/2017 17:13:52] "HTTP/1.1 POST /_sp/" - 500 Internal Server Error

Which should be easy to fix. It's related to the recent renaming of the "boosting parameter", the decorator must match with the release used.
@rhyolight can you please match and update the requirements to the latest release?

from htm-school-viz.

rikkertkoppes avatar rikkertkoppes commented on June 10, 2024

No it's not correct

nupic-history-server should listen on 8000, start the server with python webserver.py 8000 to specify that port

The docs may need some updating to reflect that. I can see it is confusing when you're not familiar with web.py. So in order:

  • start redis (this should run as a service)
  • start nupic-history server with python webserver.py 8000
  • start htm-school-viz with npm start 8080 (or any other port)

from htm-school-viz.

breznak avatar breznak commented on June 10, 2024

nupic-history-server should listen on 8000, start the server with python webserver.py 8000 to specify that port

Ok, that would also work, I did it the other way around: I let the history to run on :8080 and changed the visualizer to expect history running on 8080, so it really is correct now. ....We should decide what is a better approach, imho these PRs, as there are no parameters required and it runs out of the box (?)

I'm facing the last problem with the facade: #19 (comment)

PS: to validate this approach: you must review both the PRs linked here.

from htm-school-viz.

rhyolight avatar rhyolight commented on June 10, 2024

Thanks you guys!

from htm-school-viz.

breznak avatar breznak commented on June 10, 2024

@rhyolight do you have an idea about the last problem above, TypeError: __init__() got an unexpected keyword argument 'boostStrength' ?

I checked, and in SP it's called the same. So I don't know where this issue comes from: facade, capnp, web hooks,... ?
The backtrace doesn't tell much to me, can you help us debugging, or point in some direction?

from htm-school-viz.

rhyolight avatar rhyolight commented on June 10, 2024

@breznak The only time I've ever seen this error is when I have an older version of NuPIC or nupic.core installed. You might check to see that there are no old versions installed in your environment.

from htm-school-viz.

breznak avatar breznak commented on June 10, 2024

Awesome, a good word comes a long way ;) I had the 0.5.7/0.4.13 older recommended versions installed, updated to the latest v0.6.0 and it's running!!

Btw, this is an awesome project, a sweet candy to play with 😍

from htm-school-viz.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.