HEADS-project / training

Training material to get started with the HEADS technologies
10 stars 16 forks source link

Cannot run Tellu Home GW project #87

Closed magnustellu closed 9 years ago

magnustellu commented 9 years ago

I attempted to run training\3.Wrapping_ThingML_into_Kevoree\3.3_Contrib\Tellu\Home-gw\kevs\dynHomeGW.kevs.

Running grunt kevoree failed with the following errors/warnings.

D:\HomeGW\.deploy_units\node0\node_modules\kevoree-comp-mqttsubclient\node_modul
es\mqtt\node_modules\websocket-stream\node_modules\ws\node_modules\bufferutil>no
de "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_module
s\node-gyp\bin\node-gyp.js" rebuild
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYT
HON env variable.
gyp ERR! stack     at failNoPython (C:\Program Files\nodejs\node_modules\npm\nod
e_modules\node-gyp\lib\configure.js:103:14)
gyp ERR! stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\node
-gyp\lib\configure.js:64:11
gyp ERR! stack     at Object.oncomplete (evalmachine.<anonymous>:107:15)
gyp ERR! System Windows_NT 6.2.9200
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modu
les\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd D:\HomeGW\.deploy_units\node0\node_modules\kevoree-comp-mqttsubclie
nt\node_modules\mqtt\node_modules\websocket-stream\node_modules\ws\node_modules\
bufferutil
gyp ERR! node -v v0.10.33
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok
npm WARN optional dep failed, continuing bufferutil@1.2.1

and the final output was:

09:48:36  DEBUG  UpdateDictiona.  fnsubmqtt.topic = sensor/#
09:48:36  DEBUG  UpdateDictiona.  fnsubmqtt.host = 10.10.0.1
09:48:36  DEBUG  UpdateDictiona.  fnsubmqtt.port = 1883
09:48:36  DEBUG  UpdateDictiona.  broker.port = 9050
09:48:36  DEBUG  UpdateDictiona.  chan.host = localhost
09:48:36  ERROR  KevoreeCore      Error: Something went wrong while processing a
daptations.
MQTTChannel error: unable to create MQTT client with given attributes (host: 10.
10.0.1, port: 1883, topic: sensor/#)
    at PseudoClass.AbstractComponent.extend.start (D:\HomeGW\.deploy_units\node0
\node_modules\kevoree-comp-mqttsubclient\lib\MQTTSubClient.js:69:18)
    at PseudoClass.Class.__start_ [as super] (D:\HomeGW\.deploy_units\node0\no
de_modules\kevoree-comp-mqttsubclient\node_modules\kevoree-entities\lib\KevoreeE
ntity.js:64:14)
    at PseudoClass.KevoreeEntity.extend.__start__ (D:\HomeGW\.deploy_units\node0
\node_modules\kevoree-comp-mqttsubclient\node_modules\kevoree-entities\lib\Abstr
actComponent.js:23:14)
    at PseudoClass_setStaticSuper [as __start__] (D:\HomeGW\.deploy_units\node0\
node_modules\kevoree-comp-mqttsubclient\node_modules\kevoree-entities\node_modul
es\pseudoclass\source\Class.js:126:19)
    at PseudoClass.AdaptationPrimitive.extend.execute (D:\HomeGW\.deploy_units\n
ode0\node_modules\kevoree-node-javascript\lib\adaptations\StartInstance.js:52:30
)
    at executeCommand (D:\HomeGW\node_modules\grunt-kevoree\node_modules\kevoree
-nodejs-runtime\node_modules\kevoree-core\kevoree-core.js:161:41)
    at D:\HomeGW\node_modules\grunt-kevoree\node_modules\async\lib\async.js:181:
20
    at Object.iterate [as _onImmediate] (D:\HomeGW\node_modules\grunt-kevoree\no
de_modules\async\lib\async.js:262:13)
    at processImmediate [as _immediateCallback] (timers.js:345:15)
09:48:36  WARN   KevoreeCore      Shutting down Kevoree because first deployment
 failed...
09:48:36  DEBUG  KevoreeCore      Deploy process started...
09:48:36  INFO   KevoreeCore      Model deployed successfully: 0 adaptations (9m
s)
09:48:36  INFO   KevoreeCore      Platform stopped: node0

This is new behavior according to Knut Eilif.

maxleiko commented 9 years ago

Hello,

Looks like it needs to have a python executable in order to install one of the dependencies:

gyp ERR! stack Error: Can't find Python executable "python", you can set the PYT
HON env variable.

I think installing that on the Windows host will do the trick :)

magnustellu commented 9 years ago

Fails again with Python 2.7 installed, new set of errors this time.

Running "kevoree" task
10:00:52  ALL    KevoreeLogger    Set logLevel= debug
>> Platform node name: node0
>> Bootstrap script: kevs\main.kevs
10:00:52  DEBUG  NPMResolver      modulesPath= c:\HomeGW\.deploy_units\node0
>> Starting runtime: v5.6.0
10:00:59  INFO   KevoreeCore      Platform node name: node0
10:00:59  DEBUG  KevoreeCore      Deploy process started...
10:00:59  DEBUG  KevoreeCore      Start 'node0' bootstrapping...
kevoree-node-javascript@5.2.0 .deploy_units\node0\node_modules\kevoree-node-javascript
├── times-up@1.0.1
├── async@0.9.2
├── kevoree-kotlin@1.0.3
├── pseudoclass@1.0.3
├── kevoree-library@5.0.9
├── kevoree-commons@2.2.0 (chalk@0.4.0)
└── kevoree-entities@8.0.8 (kevoree-kevscript@2.2.3)
-
> ws@0.4.32 install c:\HomeGW\.deploy_units\node0\node_modules\kevoree-group-ws\node_modules\ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

c:\HomeGW\.deploy_units\node0\node_modules\kevoree-group-ws\node_modules\ws>node "c:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\nod
e_modules\node-gyp\bin\node-gyp.js" rebuild
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  bufferutil.cc
C:\Program Files (x86)\Windows Kits\8.1\Include\um\winsock2.h(882): fatal error C1083: Cannot open include file: 'qos.h': No such file or directory [
c:\HomeGW\.deploy_units\node0\node_modules\kevoree-group-ws\node_modules\ws\build\bufferutil.vcxproj]
  validation.cc
C:\Program Files (x86)\Windows Kits\8.1\Include\um\winsock2.h(882): fatal error C1083: Cannot open include file: 'qos.h': No such file or directory [
c:\HomeGW\.deploy_units\node0\node_modules\kevoree-group-ws\node_modules\ws\build\validation.vcxproj]
kevoree-group-ws@5.2.10 .deploy_units\node0\node_modules\kevoree-group-ws
├── shortid@2.2.4
├── pseudoclass@1.0.3
├── smart-socket@0.2.1 (async@0.9.2)
├── kevoree-entities@8.0.8 (kevoree-commons@2.2.0)
├── kevoree-library@5.0.9 (kevoree-kotlin@1.0.3)
├── kevoree-kevscript@2.2.3 (waxeye@0.8.1, async@0.9.2, kevoree-kotlin@1.0.3, semver@4.3.6, kevoree-commons@2.2.0, chalk@0.5.1, optimist@0.6.1, kevore
e-registry-client@2.2.2)
└── ws@0.4.32 (tinycolor@0.0.1, options@0.0.6, commander@2.1.0, nan@1.0.0)
10:01:06  DEBUG  AddDeployUnit    /packages[org]/packages[kevoree]/packages[library]/deployUnits[hashcode=,name=kevoree-group-ws,version=5.2.10]
|
> ws@0.4.32 install c:\HomeGW\.deploy_units\node0\node_modules\kevoree-comp-wsmsgbroker\node_modules\wsmsgbroker\node_modules\ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

c:\HomeGW\.deploy_units\node0\node_modules\kevoree-comp-wsmsgbroker\node_modules\wsmsgbroker\node_modules\ws>node "c:\Program Files\nodejs\node_module
s\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  bufferutil.cc
C:\Program Files (x86)\Windows Kits\8.1\Include\um\winsock2.h(882): fatal error C1083: Cannot open include file: 'qos.h': No such file or directory [
c:\HomeGW\.deploy_units\node0\node_modules\kevoree-comp-wsmsgbroker\node_modules\wsmsgbroker\node_modules\ws\build\bufferutil.vcxproj]
  validation.cc
C:\Program Files (x86)\Windows Kits\8.1\Include\um\winsock2.h(882): fatal error C1083: Cannot open include file: 'qos.h': No such file or directory [
c:\HomeGW\.deploy_units\node0\node_modules\kevoree-comp-wsmsgbroker\node_modules\wsmsgbroker\node_modules\ws\build\validation.vcxproj]
kevoree-comp-wsmsgbroker@2.0.0 .deploy_units\node0\node_modules\kevoree-comp-wsmsgbroker
├── chalk@0.5.1 (ansi-styles@1.1.0, escape-string-regexp@1.0.3, supports-color@0.2.0, strip-ansi@0.3.0, has-ansi@0.1.0)
├── kevoree-entities@8.0.8 (pseudoclass@1.0.3, kevoree-commons@2.2.0, kevoree-kevscript@2.2.3, kevoree-library@5.0.9)
└── wsmsgbroker@1.6.7 (node-uuid@1.4.3, ws@0.4.32)
10:01:09  DEBUG  AddDeployUnit    /packages[org]/packages[kevoree]/packages[library]/deployUnits[hashcode=,name=kevoree-comp-wsmsgbroker,version=2.0.0
]
npm WARN package.json kevoree-comp-wsmsgbroker@2.0.0 No repository field.
-
> utf-8-validate@1.2.1 install c:\HomeGW\.deploy_units\node0\node_modules\kevoree-comp-mqttsubclient\node_modules\mqtt\node_modules\websocket-stream\n
ode_modules\ws\node_modules\utf-8-validate
> node-gyp rebuild

c:\HomeGW\.deploy_units\node0\node_modules\kevoree-comp-mqttsubclient\node_modules\mqtt\node_modules\websocket-stream\node_modules\ws\node_modules\utf
-8-validate>node "c:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  validation.cc
C:\Program Files (x86)\Windows Kits\8.1\Include\um\winsock2.h(882): fatal error C1083: Cannot open include file: 'qos.h': No such file or directory [
c:\HomeGW\.deploy_units\node0\node_modules\kevoree-comp-mqttsubclient\node_modules\mqtt\node_modules\websocket-stream\node_modules\ws\node_modules\ut
f-8-validate\build\validation.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (c:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:267:23)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:810:12)
gyp ERR! System Windows_NT 6.2.9200
gyp ERR! command "node" "c:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd c:\HomeGW\.deploy_units\node0\node_modules\kevoree-comp-mqttsubclient\node_modules\mqtt\node_modules\websocket-stream\node_modules\ws\nod
e_modules\utf-8-validate
gyp ERR! node -v v0.10.33
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok
npm WARN optional dep failed, continuing utf-8-validate@1.2.1

> bufferutil@1.2.1 install c:\HomeGW\.deploy_units\node0\node_modules\kevoree-comp-mqttsubclient\node_modules\mqtt\node_modules\websocket-stream\node_
modules\ws\node_modules\bufferutil
> node-gyp rebuild

c:\HomeGW\.deploy_units\node0\node_modules\kevoree-comp-mqttsubclient\node_modules\mqtt\node_modules\websocket-stream\node_modules\ws\node_modules\buf
ferutil>node "c:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  bufferutil.cc
C:\Program Files (x86)\Windows Kits\8.1\Include\um\winsock2.h(882): fatal error C1083: Cannot open include file: 'qos.h': No such file or directory [
c:\HomeGW\.deploy_units\node0\node_modules\kevoree-comp-mqttsubclient\node_modules\mqtt\node_modules\websocket-stream\node_modules\ws\node_modules\bu
fferutil\build\bufferutil.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (c:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:267:23)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:810:12)
gyp ERR! System Windows_NT 6.2.9200
gyp ERR! command "node" "c:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd c:\HomeGW\.deploy_units\node0\node_modules\kevoree-comp-mqttsubclient\node_modules\mqtt\node_modules\websocket-stream\node_modules\ws\nod
e_modules\bufferutil
gyp ERR! node -v v0.10.33
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok
npm WARN optional dep failed, continuing bufferutil@1.2.1
kevoree-comp-mqttsubclient@2.0.0 .deploy_units\node0\node_modules\kevoree-comp-mqttsubclient
├── kevoree-entities@8.0.8 (pseudoclass@1.0.3, kevoree-commons@2.2.0, kevoree-library@5.0.9, kevoree-kevscript@2.2.3)
└── mqtt@1.5.0 (inherits@2.0.1, xtend@4.0.1, minimist@1.2.0, commist@1.0.0, readable-stream@1.0.33, end-of-stream@1.1.0, mqtt-packet@3.4.4, help-me@0.
1.0, mqtt-connection@2.1.1, concat-stream@1.5.1, websocket-stream@2.0.2)
10:01:15  DEBUG  AddDeployUnit    /packages[org]/packages[kevoree]/packages[library]/deployUnits[hashcode=,name=kevoree-comp-mqttsubclient,version=2.0
.0]
npm WARN package.json kevoree-comp-mqttsubclient@2.0.0 No repository field.
npm WARN package.json kevoree-comp-wsmsgbroker@2.0.0 No repository field.
-
> bufferutil@1.2.1 install c:\HomeGW\.deploy_units\node0\node_modules\kevoree-comp-mqttpubclient\node_modules\mqtt\node_modules\websocket-stream\node_
modules\ws\node_modules\bufferutil
> node-gyp rebuild

c:\HomeGW\.deploy_units\node0\node_modules\kevoree-comp-mqttpubclient\node_modules\mqtt\node_modules\websocket-stream\node_modules\ws\node_modules\buf
ferutil>node "c:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  bufferutil.cc
C:\Program Files (x86)\Windows Kits\8.1\Include\um\winsock2.h(882): fatal error C1083: Cannot open include file: 'qos.h': No such file or directory [
c:\HomeGW\.deploy_units\node0\node_modules\kevoree-comp-mqttpubclient\node_modules\mqtt\node_modules\websocket-stream\node_modules\ws\node_modules\bu
fferutil\build\bufferutil.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (c:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:267:23)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:810:12)
gyp ERR! System Windows_NT 6.2.9200
gyp ERR! command "node" "c:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd c:\HomeGW\.deploy_units\node0\node_modules\kevoree-comp-mqttpubclient\node_modules\mqtt\node_modules\websocket-stream\node_modules\ws\nod
e_modules\bufferutil
gyp ERR! node -v v0.10.33
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok
npm WARN optional dep failed, continuing bufferutil@1.2.1

> utf-8-validate@1.2.1 install c:\HomeGW\.deploy_units\node0\node_modules\kevoree-comp-mqttpubclient\node_modules\mqtt\node_modules\websocket-stream\n
ode_modules\ws\node_modules\utf-8-validate
> node-gyp rebuild

c:\HomeGW\.deploy_units\node0\node_modules\kevoree-comp-mqttpubclient\node_modules\mqtt\node_modules\websocket-stream\node_modules\ws\node_modules\utf
-8-validate>node "c:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  validation.cc
C:\Program Files (x86)\Windows Kits\8.1\Include\um\winsock2.h(882): fatal error C1083: Cannot open include file: 'qos.h': No such file or directory [
c:\HomeGW\.deploy_units\node0\node_modules\kevoree-comp-mqttpubclient\node_modules\mqtt\node_modules\websocket-stream\node_modules\ws\node_modules\ut
f-8-validate\build\validation.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (c:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:267:23)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:810:12)
gyp ERR! System Windows_NT 6.2.9200
gyp ERR! command "node" "c:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd c:\HomeGW\.deploy_units\node0\node_modules\kevoree-comp-mqttpubclient\node_modules\mqtt\node_modules\websocket-stream\node_modules\ws\nod
e_modules\utf-8-validate
gyp ERR! node -v v0.10.33
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok
npm WARN optional dep failed, continuing utf-8-validate@1.2.1
kevoree-comp-mqttpubclient@2.0.0 .deploy_units\node0\node_modules\kevoree-comp-mqttpubclient
├── kevoree-entities@8.0.8 (pseudoclass@1.0.3, kevoree-commons@2.2.0, kevoree-kevscript@2.2.3, kevoree-library@5.0.9)
└── mqtt@1.5.0 (inherits@2.0.1, xtend@4.0.1, minimist@1.2.0, commist@1.0.0, end-of-stream@1.1.0, readable-stream@1.0.33, mqtt-connection@2.1.1, mqtt-p
acket@3.4.4, help-me@0.1.0, concat-stream@1.5.1, websocket-stream@2.0.2)
10:01:20  DEBUG  AddDeployUnit    /packages[org]/packages[kevoree]/packages[library]/deployUnits[hashcode=,name=kevoree-comp-mqttpubclient,version=2.0
.0]
npm WARN package.json kevoree-comp-mqttpubclient@2.0.0 No repository field.
npm WARN package.json kevoree-comp-wsmsgbroker@2.0.0 No repository field.
npm WARN package.json kevoree-comp-mqttsubclient@2.0.0 No repository field.
\
> ws@0.4.32 install c:\HomeGW\.deploy_units\node0\node_modules\kevoree-chan-ws\node_modules\wsmsgbroker\node_modules\ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

c:\HomeGW\.deploy_units\node0\node_modules\kevoree-chan-ws\node_modules\wsmsgbroker\node_modules\ws>node "c:\Program Files\nodejs\node_modules\npm\bin
\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  bufferutil.cc
C:\Program Files (x86)\Windows Kits\8.1\Include\um\winsock2.h(882): fatal error C1083: Cannot open include file: 'qos.h': No such file or directory [
c:\HomeGW\.deploy_units\node0\node_modules\kevoree-chan-ws\node_modules\wsmsgbroker\node_modules\ws\build\bufferutil.vcxproj]
  validation.cc
C:\Program Files (x86)\Windows Kits\8.1\Include\um\winsock2.h(882): fatal error C1083: Cannot open include file: 'qos.h': No such file or directory [
c:\HomeGW\.deploy_units\node0\node_modules\kevoree-chan-ws\node_modules\wsmsgbroker\node_modules\ws\build\validation.vcxproj]
kevoree-chan-ws@5.2.10 .deploy_units\node0\node_modules\kevoree-chan-ws
├── kevoree-entities@8.0.8 (pseudoclass@1.0.3, kevoree-commons@2.2.0, kevoree-library@5.0.9, kevoree-kevscript@2.2.3)
└── wsmsgbroker@1.6.7 (node-uuid@1.4.3, chalk@0.5.1, ws@0.4.32)
10:01:23  DEBUG  AddDeployUnit    /packages[org]/packages[kevoree]/packages[library]/deployUnits[hashcode=,name=kevoree-chan-ws,version=5.2.10]
npm WARN package.json kevoree-comp-mqttsubclient@2.0.0 No repository field.
npm WARN package.json kevoree-comp-mqttpubclient@2.0.0 No repository field.
npm WARN package.json kevoree-comp-wsmsgbroker@2.0.0 No repository field.
kevoree-chan-local@5.0.2 .deploy_units\node0\node_modules\kevoree-chan-local
└── kevoree-entities@8.0.8 (pseudoclass@1.0.3, kevoree-commons@2.2.0, kevoree-library@5.0.9, kevoree-kevscript@2.2.3)
10:01:26  DEBUG  AddDeployUnit    /packages[org]/packages[kevoree]/packages[library]/deployUnits[hashcode=,name=kevoree-chan-local,version=5.0.2]
npm WARN package.json kevoree-comp-mqttpubclient@2.0.0 No repository field.
npm WARN package.json kevoree-comp-mqttsubclient@2.0.0 No repository field.
npm WARN package.json kevoree-comp-wsmsgbroker@2.0.0 No repository field.
home-gw@1.0.3 .deploy_units\node0\node_modules\home-gw
├── state.js@5.6.5
└── kevoree-entities@8.0.8 (pseudoclass@1.0.3, kevoree-commons@2.2.0, kevoree-library@5.0.9, kevoree-kevscript@2.2.3)
10:01:38  DEBUG  AddDeployUnit    /packages[no]/packages[tellu]/deployUnits[hashcode=,name=home-gw,version=1.0.3]
10:01:38  DEBUG  AddInstance      broker /packages[org]/packages[kevoree]/packages[library]/typeDefinitions[name=WSMsgBroker,version=2.0.0]
10:01:38  DEBUG  AddInstance      pubmqtt /packages[org]/packages[kevoree]/packages[library]/typeDefinitions[name=MQTTPubClient,version=2.0.0]
10:01:38  DEBUG  AddInstance      HomeGW_0 /packages[no]/packages[tellu]/typeDefinitions[name=HomeGW,version=1.0.3]
10:01:38  DEBUG  AddInstance      fnsubmqtt /packages[org]/packages[kevoree]/packages[library]/typeDefinitions[name=MQTTSubClient,version=2.0.0]
10:01:38  DEBUG  AddInstance      fnsubchan /packages[org]/packages[kevoree]/packages[library]/typeDefinitions[name=LocalChannel,version=5.0.2]
10:01:38  DEBUG  AddInstance      chan /packages[org]/packages[kevoree]/packages[library]/typeDefinitions[name=WSChan,version=5.2.10]
10:01:38  DEBUG  AddInstance      pubchan /packages[org]/packages[kevoree]/packages[library]/typeDefinitions[name=LocalChannel,version=5.0.2]
10:01:38  DEBUG  AddInstance      subchan /packages[org]/packages[kevoree]/packages[library]/typeDefinitions[name=LocalChannel,version=5.0.2]
10:01:38  DEBUG  AddInstance      submqtt /packages[org]/packages[kevoree]/packages[library]/typeDefinitions[name=MQTTSubClient,version=2.0.0]
10:01:38  DEBUG  AddInstance      chan1 /packages[org]/packages[kevoree]/packages[library]/typeDefinitions[name=WSChan,version=5.2.10]
10:01:38  DEBUG  AddInstance      sync /packages[org]/packages[kevoree]/packages[library]/typeDefinitions[name=WSGroup,version=5.2.10]
10:01:38  DEBUG  AddBinding       output /nodes[node0]/components[fnsubmqtt]/required[onMsg] <-> /hubs[fnsubchan]
10:01:38  DEBUG  AddBinding       output /nodes[node0]/components[HomeGW_0]/required[Hom_sen_read_out] <-> /hubs[chan1]
10:01:38  DEBUG  AddBinding       output /nodes[node0]/components[HomeGW_0]/required[Hom_sen_start_periodic_reading_out] <-> /hubs[chan1]
10:01:38  DEBUG  AddBinding       input /nodes[node0]/components[HomeGW_0]/provided[Hom_sma_read_in] <-> /hubs[chan]
10:01:38  DEBUG  AddBinding       output /nodes[node0]/components[HomeGW_0]/required[Hom_sen_reading_cancel_out] <-> /hubs[chan1]
10:01:38  DEBUG  AddBinding       output /nodes[node0]/components[HomeGW_0]/required[Hom_sma_reading_out] <-> /hubs[pubchan]
10:01:38  DEBUG  AddBinding       input /nodes[node0]/components[pubmqtt]/provided[pub] <-> /hubs[pubchan]
10:01:38  DEBUG  AddBinding       input /nodes[node0]/components[HomeGW_0]/provided[Hom_sma_read_in] <-> /hubs[subchan]
10:01:38  DEBUG  AddBinding       output /nodes[node0]/components[submqtt]/required[onMsg] <-> /hubs[subchan]
10:01:38  DEBUG  AddBinding       input /nodes[node0]/components[HomeGW_0]/provided[Hom_sen_readingJson_in] <-> /hubs[fnsubchan]
10:01:38  DEBUG  UpdateDictiona.  fnsubmqtt.host = 10.3.1.150
10:01:38  DEBUG  UpdateDictiona.  chan1.host = localhost
10:01:38  DEBUG  UpdateDictiona.  sync.onDisconnect =
remove {nodeName}

10:01:38  DEBUG  UpdateDictiona.  sync.master = node0
10:01:38  DEBUG  UpdateDictiona.  sync.port/node0 = 9000
10:01:38  DEBUG  UpdateDictiona.  chan1.port = 9050
10:01:38  DEBUG  UpdateDictiona.  node0.logLevel = INFO
10:01:38  DEBUG  UpdateDictiona.  chan.host = localhost
10:01:38  DEBUG  UpdateDictiona.  chan.port = 9050
10:01:38  DEBUG  UpdateDictiona.  chan.path =
10:01:38  DEBUG  UpdateDictiona.  sync.onConnect =
add {nodeName}.FieldNode_0 : no.tellu.FieldNode/1.0.9

add chan: WSChan
set chan.port = "9050"
set chan.host = "10.10.0.1"

add chan1: WSChan
set chan1.port = "9050"
set chan1.host = "10.10.0.1"

add {nodeName}.submqtt : MQTTSubClient
set {nodeName}.submqtt.topic = "meg/smarttracker"
set {nodeName}.submqtt.host = "10.10.0.1"
set {nodeName}.submqtt.port = "1883"

add {nodeName}.pubmqtt : MQTTPubClient
set {nodeName}.pubmqtt.topic = "test/smarttracker"
set {nodeName}.pubmqtt.host = "10.10.0.1"
set {nodeName}.pubmqtt.port = "1883"

add pubchan : LocalChannel
add subchan : LocalChannel

bind {nodeName}.FieldNode_0.Fie_sen_readingJson_out pubchan

bind {nodeName}.pubmqtt.jsonPub pubchan
bind {nodeName}.submqtt.onTopicAndMsg subchan

bind {nodeName}.FieldNode_0.Fie_sen_reading_out chan
bind {nodeName}.FieldNode_0.Fie_sen_ready_out chan
bind {nodeName}.FieldNode_0.Fie_sen_start_periodic_reading_in chan1
bind {nodeName}.FieldNode_0.Fie_sen_reading_cancel_in chan1
bind {nodeName}.FieldNode_0.Fie_sen_read_in chan1

10:01:39  DEBUG  UpdateDictiona.  fnsubmqtt.port = 1883
10:01:39  DEBUG  UpdateDictiona.  fnsubmqtt.topic = sensor/#
10:01:39  DEBUG  UpdateDictiona.  pubmqtt.host = ri.smarttracker.no
10:01:39  DEBUG  UpdateDictiona.  pubmqtt.port = 1883
10:01:39  DEBUG  UpdateDictiona.  pubmqtt.topic = test/smarttracker/pressure
10:01:39  DEBUG  UpdateDictiona.  submqtt.host = ri.smarttracker.no
10:01:39  DEBUG  UpdateDictiona.  submqtt.port = 1883
10:01:39  DEBUG  UpdateDictiona.  submqtt.topic = meg/smarttracker
10:01:39  DEBUG  UpdateDictiona.  broker.port = 9050
10:01:39  DEBUG  UpdateDictiona.  chan1.path =
10:01:39  ALL    KevoreeLogger    Set logLevel= info
10:01:39  INFO   WSGroup          "sync" listen on 9000
10:01:39  ERROR  KevoreeCore      Error: Something went wrong while processing adaptations.
MQTTChannel error: unable to create MQTT client with given attributes (host: 10.3.1.150, port: 1883, topic: sensor/#)
    at PseudoClass.AbstractComponent.extend.start (c:\HomeGW\.deploy_units\node0\node_modules\kevoree-comp-mqttsubclient\lib\MQTTSubClient.js:69:18)
    at PseudoClass.Class.__start__ [as _super] (c:\HomeGW\.deploy_units\node0\node_modules\kevoree-comp-mqttsubclient\node_modules\kevoree-entities\li
b\KevoreeEntity.js:64:14)
    at PseudoClass.KevoreeEntity.extend.__start__ (c:\HomeGW\.deploy_units\node0\node_modules\kevoree-comp-mqttsubclient\node_modules\kevoree-entities
\lib\AbstractComponent.js:23:14)
    at PseudoClass_setStaticSuper [as __start__] (c:\HomeGW\.deploy_units\node0\node_modules\kevoree-comp-mqttsubclient\node_modules\kevoree-entities\
node_modules\pseudoclass\source\Class.js:126:19)
    at PseudoClass.AdaptationPrimitive.extend.execute (c:\HomeGW\.deploy_units\node0\node_modules\kevoree-node-javascript\lib\adaptations\StartInstanc
e.js:52:30)
    at executeCommand (c:\HomeGW\node_modules\grunt-kevoree\node_modules\kevoree-nodejs-runtime\node_modules\kevoree-core\kevoree-core.js:161:41)
    at c:\HomeGW\node_modules\grunt-kevoree\node_modules\async\lib\async.js:181:20
    at iterate (c:\HomeGW\node_modules\grunt-kevoree\node_modules\async\lib\async.js:262:13)
    at c:\HomeGW\node_modules\grunt-kevoree\node_modules\async\lib\async.js:274:29
    at c:\HomeGW\node_modules\grunt-kevoree\node_modules\async\lib\async.js:44:16
10:01:39  WARN   KevoreeCore      Shutting down Kevoree because first deployment failed...
10:01:39  INFO   KevoreeCore      Model deployed successfully: 0 adaptations (1ms)
10:01:39  INFO   KevoreeCore      Platform stopped: node0

Done, without errors.
brice-morin commented 9 years ago

I think you need Visual Studio to compile some libraries that are just wrappers around some C/C++ code

magnustellu commented 9 years ago

Is this a new requirement? Knut Eilif says it used to work before.

brice-morin commented 9 years ago

No, see here (well, you need the .Net framework, you might not need to install the whole Visual Studio)

maxleiko commented 9 years ago

As a test, you could try to install the module that gives an error kevoree-comp-mqttpubclient without Kevoree.

Just go somewhere and run:

npm i kevoree-comp-mqttpubclient

It will give you the errors in a cleaner way if there are any.

magnustellu commented 9 years ago

This gives the following error.

$ npm i kevoree-comp-mqttpubclient
-
> bufferutil@1.2.1 install c:\development\node_modules\kevoree-comp-mqttpubclient\node_modules\mqtt\node_modules\websocket-stream\node_modules\ws\node
_modules\bufferutil
> node-gyp rebuild

c:\development\node_modules\kevoree-comp-mqttpubclient\node_modules\mqtt\node_modules\websocket-stream\node_modules\ws\node_modules\bufferutil>node "c
:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  bufferutil.cc
C:\Program Files (x86)\Windows Kits\8.1\Include\um\winsock2.h(882): fatal error C1083: Cannot open include file: 'qos.h': No such file or directory [
c:\development\node_modules\kevoree-comp-mqttpubclient\node_modules\mqtt\node_modules\websocket-stream\node_modules\ws\node_modules\bufferutil\build\
bufferutil.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (c:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:267:23)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:810:12)
gyp ERR! System Windows_NT 6.2.9200
gyp ERR! command "node" "c:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd c:\development\node_modules\kevoree-comp-mqttpubclient\node_modules\mqtt\node_modules\websocket-stream\node_modules\ws\node_modules\buffe
rutil
gyp ERR! node -v v0.10.33
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok
npm WARN optional dep failed, continuing bufferutil@1.2.1

> utf-8-validate@1.2.1 install c:\development\node_modules\kevoree-comp-mqttpubclient\node_modules\mqtt\node_modules\websocket-stream\node_modules\ws\
node_modules\utf-8-validate
> node-gyp rebuild

c:\development\node_modules\kevoree-comp-mqttpubclient\node_modules\mqtt\node_modules\websocket-stream\node_modules\ws\node_modules\utf-8-validate>nod
e "c:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  validation.cc
C:\Program Files (x86)\Windows Kits\8.1\Include\um\winsock2.h(882): fatal error C1083: Cannot open include file: 'qos.h': No such file or directory [
c:\development\node_modules\kevoree-comp-mqttpubclient\node_modules\mqtt\node_modules\websocket-stream\node_modules\ws\node_modules\utf-8-validate\bu
ild\validation.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (c:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:267:23)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:810:12)
gyp ERR! System Windows_NT 6.2.9200
gyp ERR! command "node" "c:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd c:\development\node_modules\kevoree-comp-mqttpubclient\node_modules\mqtt\node_modules\websocket-stream\node_modules\ws\node_modules\utf-8
-validate
gyp ERR! node -v v0.10.33
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok
npm WARN optional dep failed, continuing utf-8-validate@1.2.1
kevoree-comp-mqttpubclient@2.0.0 node_modules\kevoree-comp-mqttpubclient
├── kevoree-entities@8.0.8 (pseudoclass@1.0.3, kevoree-commons@2.2.0, kevoree-library@5.0.9, kevoree-kevscript@2.2.3)
└── mqtt@1.5.0 (inherits@2.0.1, xtend@4.0.1, minimist@1.2.0, commist@1.0.0, readable-stream@1.0.33, end-of-stream@1.1.0, mqtt-packet@3.4.4, mqtt-conne
ction@2.1.1, help-me@0.1.0, concat-stream@1.5.1, websocket-stream@2.0.2)
maxleiko commented 9 years ago

Ok no magic then. If npm cannot install this module, kevoree won't either.
We need to find a way to make this module installation work.

maxleiko commented 9 years ago

Any progress ?

maxleiko commented 9 years ago

On my Windows 7 VM (64 bits) I've installed Python 2.7, and the installation of kevoree-comp-mqttpubclient works perfectly. But it also has .Net Framework (and also Visual Studio, don't know if it changes things ?)

magnustellu commented 9 years ago

I'm creating a ubuntu VM to work with the HEADS project.

I have a few installations of visual studio express installed, which versions of visual studio do you have? I run Windows 10.

brice-morin commented 9 years ago

well, it is a good number of issues on stack overflow related to NPM on Windows (many have some similar problems, with installation and configuration of proper versions of NPM, Python and .NET). So that issue should really be blamed on NPM. Kevoree just uses the de-facto standard (NPM), which obviously has some weaknesses

maxleiko commented 9 years ago
maxleiko commented 9 years ago

https://github.com/nodejs/node-gyp

maxleiko commented 9 years ago

Make sure you follow the instruction of installation for Windows OS

magnustellu commented 9 years ago

Seems like it works now, not sure if installing node-gyp, VS C++ Expressr or if the mqqt client fix was the actual solution. But seems to work now.