Skip to content
This repository has been archived by the owner on May 3, 2019. It is now read-only.

Error with faceTest and emotionTest #104

Closed
jaapmurre opened this issue Feb 11, 2018 · 7 comments
Closed

Error with faceTest and emotionTest #104

jaapmurre opened this issue Feb 11, 2018 · 7 comments

Comments

@jaapmurre
Copy link

After having started malos_eye in a separate CLI (not mentioned in beginner's guides), and starting node index.js, I finally some reaction by the system to the standard face tests for beginners with Matrix OS. However, on seeing a face or on detecting an emotion, I keep getting the following error. It seems the tags such as 'HAPPY' are now coded as numbers like 4 (I may be wrong, just a guess). I am running Matrix OS 0.16 (downloaded yesterday).

Here is my error code from Node JS, which quits after this:

Uncaught exception: TypeError: v.tag.toLowerCase is not a function
at /home/pi/matrix-os/lib/device/drivers/detection.js:51:27
at arrayReduce (/home/pi/matrix-os/node_modules/lodash/lodash.js:675:21)
at Function.reduce (/home/pi/matrix-os/node_modules/lodash/lodash.js:9673:14)
at _.map (/home/pi/matrix-os/lib/device/drivers/detection.js:47:28)
at arrayMap (/home/pi/matrix-os/node_modules/lodash/lodash.js:631:23)
at Function.map (/home/pi/matrix-os/node_modules/lodash/lodash.js:9546:14)
at Object.read (/home/pi/matrix-os/lib/device/drivers/detection.js:34:14)
at . (/home/pi/matrix-os/lib/service/component.js:96:26)
at emitOne (events.js:96:13)
at emit (events.js:188:7) TypeError: v.tag.toLowerCase is not a function
at /home/pi/matrix-os/lib/device/drivers/detection.js:51:27
at arrayReduce (/home/pi/matrix-os/node_modules/lodash/lodash.js:675:21)
at Function.reduce (/home/pi/matrix-os/node_modules/lodash/lodash.js:9673:14)
at _.map (/home/pi/matrix-os/lib/device/drivers/detection.js:47:28)
at arrayMap (/home/pi/matrix-os/node_modules/lodash/lodash.js:631:23)
at Function.map (/home/pi/matrix-os/node_modules/lodash/lodash.js:9546:14)
at Object.read (/home/pi/matrix-os/lib/device/drivers/detection.js:34:14)
at . (/home/pi/matrix-os/lib/service/component.js:96:26)
at emitOne (events.js:96:13)
at emit (events.js:188:7)
UNKNOWN ERROR! TypeError: v.tag.toLowerCase is not a function
at /home/pi/matrix-os/lib/device/drivers/detection.js:51:27
at arrayReduce (/home/pi/matrix-os/node_modules/lodash/lodash.js:675:21)
at Function.reduce (/home/pi/matrix-os/node_modules/lodash/lodash.js:9673:14)
at _.map (/home/pi/matrix-os/lib/device/drivers/detection.js:47:28)
at arrayMap (/home/pi/matrix-os/node_modules/lodash/lodash.js:631:23)
at Function.map (/home/pi/matrix-os/node_modules/lodash/lodash.js:9546:14)
at Object.read (/home/pi/matrix-os/lib/device/drivers/detection.js:34:14)
at . (/home/pi/matrix-os/lib/service/component.js:96:26)
at emitOne (events.js:96:13)
at emit (events.js:188:7)
Unable to clean, exitting...

@maciekrb
Copy link
Contributor

maciekrb commented Feb 12, 2018

Hello @jaapmurre

Can you please provide the following information to help us out diagnose the issue ?

  • Raspbian release (codename) you are using (jessie, stretch)
  • NodeJS version you are running
  • link to the documentation you are currently following to install MALOS Eye

Thanks !

@jaapmurre
Copy link
Author

jaapmurre commented Feb 12, 2018 via email

@maciekrb
Copy link
Contributor

maciekrb commented Feb 13, 2018

Hey, we patched the problem up. Please download the latest MOS release and re-run your application. If that doesn't work for some reason, please follow the provided steps to get a working installation:

  1. Start with a fresh Raspbian (stretch) and add MATRIX debian repo and keys
$ curl https://apt.matrix.one/doc/apt-key.gpg | sudo apt-key add -
$ echo "deb https://apt.matrix.one/raspbian $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/matrixlabs.list
  1. APT update
$ sudo apt-get update
  1. Install latest version of MATRIX MALOS & git
sudo apt-get install git matrixio-malos malos-eye
  1. Install node n package manager and install nodeJS 7
$ curl -L https://git.io/n-install | bash
$ source ~.bashrc
$ n 7
  1. Download the latest release of MOS we just created v0.17.1 release, code was already in the repo but the release was missing. Extract and install node modules.
$ wget https://github.com/matrix-io/matrix-os/archive/v0.17.1.tar.gz
$ tar -xzvf v0.17.1.tar.gz
$ cd matrix-os-0.17.1
$ npm install 
  1. Try to run with your existing MATRIX_DEVICE_ID and MATRIX_DEVICE_SECRET.
$ MATRIX_DEVICE_ID=<redacted> MATRIX_DEVICE_SECRET=<redacted> node index.js
  1. Start your face application

MOS process shouldn't break anymore and should provide face info.

@jaapmurre
Copy link
Author

jaapmurre commented Feb 14, 2018 via email

@gordinh
Copy link
Contributor

gordinh commented Feb 23, 2018

Hi @jaapmurre can you please check again regarding the empty demographics? I just merged a fix about so it should be working if you do a pull in dev branch.
About the gesture can you check it again? it should be detecting normally too

@jaapmurre
Copy link
Author

jaapmurre commented Mar 2, 2018 via email

@gordinh
Copy link
Contributor

gordinh commented Mar 5, 2018

Hi @jaapmurre,

Happy to hear that :)

Closing it, Thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants