pgte/node-openni

After compiling, test/base.js won't run

Open

#19 opened on Oct 28, 2013

View on GitHub
 (7 comments) (0 reactions) (0 assignees)C++ (37 forks)github user discovery
help wanted

Repository metrics

Stars
 (79 stars)
PR merge metrics
 (PR metrics pending)

Description

I compiled node-openni successfully after following the instructions in #14 (commenting out the 3 lines suggested there - done in my fork, in this commit), but when I run node test/base.js, I get this:

$ node test/base.js 
Initialized.
Using XML conf: <OpenNI><Licenses>
  <License vendor="PrimeSense" key="0KOIk2JeIBYClPWVnMoRKn5cdY4=" />
</Licenses>
<Log writeToConsole="true" writeToFile="false">
  <LogLevel value="1"/>
  <Masks>
    <Mask name="ALL" on="true"/>
  </Masks>
  <Dumps>
  </Dumps>
</Log>
<ProductionNodes>
  <Node type="Depth" name="Depth1">
    <Configuration>
      <MapOutputMode xRes="640" yRes="480" FPS="30"/>
      <Mirror on="true"/>
    </Configuration>
  </Node>
  <Node type="Gesture" />
</ProductionNodes>
</OpenNI>
Error in context running XML script: Can't create any node of the requested type!

/home/eric/konklone/node-openni/openni.js:5
  var kContext = new kinect.Context();
                 ^
Error: Can't create any node of the requested type!
    at module.exports (/home/eric/konklone/node-openni/openni.js:5:18)
    at Object.<anonymous> (/home/eric/konklone/node-openni/test/base.js:3:15)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:901:3

This same error also happens if I npm install node-openni-browser (which installs successfully) and then require node-openni.

Contributor guide