Giter VIP home page Giter VIP logo

Comments (7)

gordinh avatar gordinh commented on July 24, 2024

Hi @arleneF on matrix.service('face').start.then(function(data){ console.log(data); });, start is a function, so should be start()

from matrix-os.

arllllll10 avatar arllllll10 commented on July 24, 2024

Thanks for replying. @gordinh
Even I changed start to start(), similar thing happens:
(buildindetection)err invalid service declared. No configuration available for face

Stopping buildindetection
(buildindetection)err /home/pi/matrix-os/apps/buildindetection.matrix/app.js:1
(function (exports, require, module, __filename, __dirname) { matrix.service('face').start().then(function(data){
^

TypeError: Cannot read property 'start' of undefined
at Object. (/home/pi/matrix-os/apps/buildindetection.matrix/app.js:1:85)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.require (module.js:483:17)
at require (internal/module.js:20:19)
at Object. (/home/pi/matrix-os/apps/buildindetection.matrix/index.js:7:1)
at Module._compile (module.js:556:32)

Stopping buildindetection
Uncaught exception: TypeError: Cannot convert undefined or null to object
at ChildProcess. (/home/pi/matrix-os/lib/service/manager.js:503:21)
at emitNone (events.js:86:13)
at ChildProcess.emit (events.js:185:7)
at finish (internal/child_process.js:711:14)
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9) TypeError: Cannot convert undefined or null to object
at ChildProcess. (/home/pi/matrix-os/lib/service/manager.js:503:21)
at emitNone (events.js:86:13)
at ChildProcess.emit (events.js:185:7)
at finish (internal/child_process.js:711:14)
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)
UNKNOWN ERROR! TypeError: Cannot convert undefined or null to object
at ChildProcess. (/home/pi/matrix-os/lib/service/manager.js:503:21)
at emitNone (events.js:86:13)
at ChildProcess.emit (events.js:185:7)
at finish (internal/child_process.js:711:14)
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)
Unable to clean, exitting...

from matrix-os.

gordinh avatar gordinh commented on July 24, 2024

Are you using the latest MOS version? Also show me your app.js and config.yaml

from matrix-os.

arllllll10 avatar arllllll10 commented on July 24, 2024

I think it is the latest one, I download it four days ago, and also do sudo apt-get update && sudo apt-get upgrade today.
Here's my app.js:

 matrix.service('face').start().then(function(data){
	console.log(data);
});

and config.yaml:

# do not touch this line
configVersion: 2

name: buildindetection
description: follow the online isntruction
keywords: detection
displayName: Buildindetection

services:
	Buildindetection:
		engine: detection
		type: face

from matrix-os.

gordinh avatar gordinh commented on July 24, 2024

Ok @arleneF i've just tested here and as you can see below there's nothing wrong on it. Please check if you are using 0.14.1 version:

 |\/| |__|  |  |__/ |  \/   [o__o]
 |  | |  |  |  |  \ | _/\_  v0.14.1
==== Application Test- started! ==== 
(Test-) Matrix OS Application Library Loading...

(Test-) service> { engine: 'detection', type: 'face' }

(Test-) matrix.service:: face : detection > face

(Test-) setup service listener
Matrix App Host Ready!

(Test-) APP>SERVICE> { type: 'container-ready', app: 'Test-', pid: 8250 }

from matrix-os.

arllllll10 avatar arllllll10 commented on July 24, 2024

oh I found my OS version is v0.14.0, so I have to re-install it again? since I did update and upgrade several times and the version keeps the same.

from matrix-os.

gordinh avatar gordinh commented on July 24, 2024

You can just use git pull to update the repo.

from matrix-os.

Related Issues (20)

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.