Code Monkey home page Code Monkey logo

htmengine-traffic-tutorial's People

Contributors

lupino avatar oxtopus avatar passiweinberger avatar rhyolight avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

htmengine-traffic-tutorial's Issues

node-client fails to build with [Error: No layout specified for css/charts.css]

When I start the node-client app, I get the following error (after installing the debug module and doing export DEBUG=* node):

  ...
  metalsmith-layouts converting file: boroughs.html +0ms
  metalsmith-layouts converting file: charts.html +1ms
  metalsmith-layouts converting file: daily.html +0ms
  metalsmith-layouts converting file: index.html +0ms
  metalsmith-layouts converting file: investigate.html +1ms
  metalsmith-layouts converting file: map.html +0ms
  metalsmith-layouts converting file: paths.html +0ms
  metalsmith-layouts converting file: time.html +0ms
  metalsmith-layouts converting file: css/charts.css +0ms
[Error: No layout specified for css/charts.css]

npm ERR! Linux 3.13.0-61-generic
npm ERR! argv "/scratch/package/install/bin/node" "/scratch/package/install/bin/npm" "start"
npm ERR! node v0.12.7
npm ERR! npm  v2.11.3
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: `node index.js`
npm ERR! Exit status 255
npm ERR! 
npm ERR! Failed at the [email protected] start script 'node index.js'.
npm ERR! This is most likely a problem with the htmengine-node-client package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node index.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls htmengine-node-client
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /scratch/htm/htmengine-traffic-tutorial/node-client/npm-debug.log

problems with nta/numenta-apps/htmengine$ python setup.py develop --user

I have successfully installed nupic and run both one_gym tutorials. Now trying to do the traffic tutorial.
I believe I have performed all the prerequisites of https://github.com/htm-community/skeleton-htmengine-app up to step 2.
I get the numenta-apps while in the nta folder as follows:
git clone https://github.com/numenta/numenta-apps.git

Start have problems with the following:

gbsd@ubuntu:~/nta/numenta-apps/htmengine$ python setup.py develop --user
running develop
running egg_info
creating htmengine.egg-info
writing requirements to htmengine.egg-info/requires.txt
writing htmengine.egg-info/PKG-INFO
writing top-level names to htmengine.egg-info/top_level.txt
writing dependency_links to htmengine.egg-info/dependency_links.txt
writing manifest file 'htmengine.egg-info/SOURCES.txt'
reading manifest file 'htmengine.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.csv' under directory 'htmengine'
writing manifest file 'htmengine.egg-info/SOURCES.txt'
running build_ext
Creating /home/gbsd/.local/lib/python2.7/site-packages/htmengine.egg-link (link to .)
Adding htmengine 0.0.0 to easy-install.pth file

Installed /home/gbsd/nta/numenta-apps/htmengine
Processing dependencies for htmengine==0.0.0
Searching for nta.utils>=0.0.0
Reading https://pypi.python.org/simple/nta.utils/
Couldn't find index page for 'nta.utils' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.python.org/simple/
No local packages or download links found for nta.utils>=0.0.0
error: Could not find suitable distribution for Requirement.parse('nta.utils>=0.0.0')
gbsd@ubuntu:~/nta/numenta-apps/htmengine$ 

Look like there is an issue with nta.utils, below is a list of the main folder of nta.utils

gbsd@ubuntu:~/nta/numenta-apps$ cd nta.utils
gbsd@ubuntu:~/nta/numenta-apps/nta.utils$ ll
total 84
drwxrwxr-x  5 gbsd gbsd  4096 May 31 15:11 ./
drwxrwxr-x 16 gbsd gbsd  4096 May 31 15:11 ../
drwxrwxr-x  2 gbsd gbsd  4096 May 31 15:11 conf/
-rw-rw-r--  1 gbsd gbsd  1015 May 31 15:11 DEPENDENCIES.md
-rw-rw-r--  1 gbsd gbsd    13 May 31 15:11 .gitignore
-rw-rw-r--  1 gbsd gbsd 34519 May 31 15:11 LICENSE.txt
-rw-rw-r--  1 gbsd gbsd    87 May 31 15:11 MANIFEST.in
drwxrwxr-x  3 gbsd gbsd  4096 May 31 15:11 nta/
-rw-rw-r--  1 gbsd gbsd    27 May 31 15:11 pytest.ini
-rw-rw-r--  1 gbsd gbsd  1876 May 31 15:11 README.md
-rw-rw-r--  1 gbsd gbsd   176 May 31 15:11 requirements.txt
-rw-rw-r--  1 gbsd gbsd  1368 May 31 15:11 setup.py
drwxrwxr-x  4 gbsd gbsd  4096 May 31 15:11 tests/
gbsd@ubuntu:~/nta/numenta-apps/nta.utils$ 

Add ideas what I am doing wrong?

bootstrap-datetimepicker from node-client/site is not built

After setting up the python engine configuration and running webapp.py, I run:

npm install .
npm start

I can access localhost:8083 but opening the browser console reveals that bootstrap-datetimepicker.min.js and bootstrap-datetimepicker.min.css are 404'd. I fixed it by doing:

cd site/bower_components/eonasdan-bootstrap-datetimepicker
composer install
npm install
grunt uglify:production
grunt less
rm -rf node_modules vendor bower_components

Perhaps consider adding the build dir to the project?

Error when starting Supervisor

When starting supervisor, all services start ok except for anommaly_service which fails. When looking at the log, says this : Fatal Python error: PyThreadState_Get: no current thread various times.

Moreover Python crashes and mac report is the following

Process: Python [93794]
Path: /usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
Identifier: Python
Version: 2.7.13 (2.7.13)
Code Type: X86-64 (Native)
Parent Process: Python [93781]
Responsible: Python [93794]
User ID: 502

Date/Time: 2017-07-12 23:20:00.118 -0300
OS Version: Mac OS X 10.12.5 (16F73)
Report Version: 12
Anonymous UUID: 52C3D1D2-8E7A-4699-E42B-BD5903EB6CED

Time Awake Since Boot: 7900 seconds

System Integrity Protection: enabled

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY

Application Specific Information:
abort() called

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fffc10d8d42 pthread_kill + 10
1 libsystem_pthread.dylib 0x00007fffc11c6457 pthread_kill + 90
2 libsystem_c.dylib 0x00007fffc103e420 abort + 129
3 org.python.python 0x0000000109d1288e Py_FatalError + 49
4 org.python.python 0x0000000109d11d88 PyThreadState_Get + 28
5 org.python.python 0x0000000109d0ec82 Py_InitModule4_64 + 62
6 math.so 0x00000001093f6840 init_math + 864
7 org.python.python 0x00000001083e4e0c PyImport_LoadDynamicModule + 150
8 org.python.python 0x00000001083e48a1 imp_load_module + 234
9 org.python.python 0x00000001083cdbac PyEval_EvalFrameEx + 11238
10 org.python.python 0x00000001083d3b84 fast_function + 196
11 org.python.python 0x00000001083cdae8 PyEval_EvalFrameEx + 11042
12 org.python.python 0x00000001083cade5 PyEval_EvalCodeEx + 1579
13 org.python.python 0x00000001083ca7b4 PyEval_EvalCode + 32
14 org.python.python 0x00000001083e1389 PyImport_ExecCodeModuleEx + 212
15 org.python.python 0x00000001083e40de load_source_module + 1049
16 org.python.python 0x00000001083e3ba6 import_submodule + 273
17 org.python.python 0x00000001083e3768 load_next + 272
18 org.python.python 0x00000001083e27cc PyImport_ImportModuleLevel + 648
19 org.python.python 0x00000001083c643f builtin___import
+ 124
20 org.python.python 0x0000000108353cda PyObject_Call + 97
21 org.python.python 0x00000001083d3528 PyEval_CallObjectWithKeywords + 159
22 org.python.python 0x00000001083cf07a PyEval_EvalFrameEx + 16564
23 org.python.python 0x00000001083cade5 PyEval_EvalCodeEx + 1579
24 org.python.python 0x00000001083ca7b4 PyEval_EvalCode + 32
25 org.python.python 0x00000001083e1389 PyImport_ExecCodeModuleEx + 212
26 org.python.python 0x00000001083e40de load_source_module + 1049
27 org.python.python 0x00000001083e4372 load_package + 328
28 org.python.python 0x00000001083e3ba6 import_submodule + 273
29 org.python.python 0x00000001083e3768 load_next + 272
30 org.python.python 0x00000001083e27cc PyImport_ImportModuleLevel + 648
31 org.python.python 0x00000001083c643f builtin___import
+ 124
32 org.python.python 0x0000000108353cda PyObject_Call + 97
33 org.python.python 0x00000001083d3528 PyEval_CallObjectWithKeywords + 159
34 org.python.python 0x00000001083cf07a PyEval_EvalFrameEx + 16564
35 org.python.python 0x00000001083cade5 PyEval_EvalCodeEx + 1579
36 org.python.python 0x00000001083ca7b4 PyEval_EvalCode + 32
37 org.python.python 0x00000001083e1389 PyImport_ExecCodeModuleEx + 212
38 org.python.python 0x00000001083e40de load_source_module + 1049
39 org.python.python 0x00000001083e3ba6 import_submodule + 273
40 org.python.python 0x00000001083e3768 load_next + 272
41 org.python.python 0x00000001083e27cc PyImport_ImportModuleLevel + 648
42 org.python.python 0x00000001083c643f builtin___import__ + 124
43 org.python.python 0x0000000108353cda PyObject_Call + 97
44 org.python.python 0x00000001083d3528 PyEval_CallObjectWithKeywords + 159
45 org.python.python 0x00000001083cf07a PyEval_EvalFrameEx + 16564
46 org.python.python 0x00000001083cade5 PyEval_EvalCodeEx + 1579
47 org.python.python 0x00000001083cb214 PyEval_EvalFrameEx + 590
48 org.python.python 0x00000001083cade5 PyEval_EvalCodeEx + 1579
49 org.python.python 0x00000001083d3be2 fast_function + 290
50 org.python.python 0x00000001083cdae8 PyEval_EvalFrameEx + 11042
51 org.python.python 0x00000001083cade5 PyEval_EvalCodeEx + 1579
52 org.python.python 0x0000000108371651 function_call + 330
53 org.python.python 0x0000000108353cda PyObject_Call + 97
54 org.python.python 0x00000001083fd0d9 RunModule + 113
55 org.python.python 0x00000001083fcbcf Py_Main + 2223
56 libdyld.dylib 0x00007fffc0faa235 start + 1

Any idea? Thanks

don't fail no connection reset/timeout

this is the error I got pretty often at different points:

...
Path 447: posting 1129 data points to HTM engine...
Path 442: posting 1413 data points to HTM engine...
Path 107: posted to HTM engine (151 more to go)...
Path 376: posted to HTM engine (150 more to go)...
Path 349: posted to HTM engine (149 more to go)...
Path 389: posted to HTM engine (148 more to go)...
Path 354: posted to HTM engine (147 more to go)...
Path 428: posted to HTM engine (146 more to go)...
/home/pascal/numenta-apps/htmengine-traffic-tutorial/node-client/lib/traffic-pusher.js:146
                    throw err;}
                          ^
Error: read ECONNRESET
    at exports._errnoException (util.js:746:11)
    at TCP.onread (net.js:559:26)

npm ERR! Linux 3.16.0-43-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
npm ERR! node v0.12.7
npm ERR! npm  v2.11.3
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: `node index.js`
npm ERR! Exit status 1
...

May just catch that and retry after a short pause or sth.

Running htmengine-traffic-tutorial on a dockerized environment

Hi,
I'm trying to run htmengine-traffic-tutorial using a dockerized environment, I'm using docker-compose to fire up 3 containers:

  1. mysql-server
  2. rabbitmq
  3. htmengine-traffic-tutorial based on dockerhub numenta/nupic image

I'm linking both mysql-server and rabbitmq to htmengine-traffic-tutorial, such that in order for htmengine-traffic-tutorial to connect to mysql I need to specify the host as follows:
mysql -h mysql -u root

I know htmengine-traffic-tutorial is expecting a local mysql server, when running python python-engine/repository/migrate.py as part of the setup I get the following error: sqlalchemy.exc.OperationalError: (OperationalError) (2003, "Can't connect to MySQL server on '127.0.0.1' (111)") None None

My question is how do I specify mysql server hostname for alembic?

From https://github.com/nupic-community/skeleton-htmengine-app/blob/master/repository/migrations/alembic.ini

# sqlalchemy.url = driver://user:pass@localhost/dbname```

I'll probably have to do the same for tabbitmq.

Thanks

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.