roboticslab-uc3m / vision

Vision processing
https://robots.uc3m.es/vision/
11 stars 7 forks source link

Compiling error when importing freenect on Python #84

Closed FernandoM93 closed 6 years ago

FernandoM93 commented 6 years ago

I'm trying to use the Kinect camera with python. I have installed "Python 3.6.4 :: Anaconda, Inc.", and OpenKinect. OpenKinect was installed following the next tutorial: https://openkinect.org/wiki/Getting_Started#Ubuntu.2FDebian OpenKinect seems to be working well because when i run freenect-glview, it works perfectly (including motors, leds, etc). The problem comes when i try to run a program in python. The error that appear is the next one:

import freenect

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-2-edb8594d279a> in <module>()
----> 1 import freenect

ImportError: No module named 'freenect'

It looks like the library freenect is not correctly linked with python.

I'm using Ubuntu 16.04

@jgvictores

jgvictores commented 6 years ago

The setup we are supporting for is via YARP as documented here. You can then get Python bindings as documented here.

  1. If you have any issue with those instructions for that process, please post an issue on: https://github.com/roboticslab-uc3m/installation-guides
  2. If you prefer to proceed with libfreenect directly via Python, remember that: