stevelibre / onipy

Automatically exported from code.google.com/p/onipy
GNU Lesser General Public License v3.0
0 stars 0 forks source link

failed to initialize OpenNI #5

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. I downloaded your wrappers and installed them as described in the readme
2. I can import the python module in a python shell
3. when I run the testcases it crashes with the message:
"failed to initialize OpenNI"
When I print the error code given by
   returnCode = g_context.InitFromXmlFile( OPENNI_INITIALIZATION_FILE )
it says: 131076

Before I used the kinect camera via the c++ interface and it works without 
problems.

What version of the product are you using? On what operating system?
I use the latest version of your code (checked out today) and run it on Ubuntu 
10.10

Original issue reported on code.google.com by stephan....@gmail.com on 11 May 2011 at 11:51

GoogleCodeExporter commented 8 years ago
If the C++ interface works fine, then it is likely that the Python program 
fails to find the initialization file specified by OPENNI_INITIALIZATION_FILE

Try to replace the path specified in OPENNI_INITIALIZATION_FILE with the 
absolute path of the configuration file on your system and see if the problem 
goes away.

Original comment by gnatan...@gmail.com on 16 May 2011 at 7:06

GoogleCodeExporter commented 8 years ago
Either with absolute path, relative path, same directory or original directory, 
it fails. With the interactive shell I obtain the same result.
In my case it fails with 65565, though.

It fails with other xml files as well, for example the one used by OpenNI 
Samples.

Original comment by c.alfar...@gmail.com on 2 Jun 2011 at 1:06