Leap Motion + Ubuntu + Python

Leap Motion + Ubuntu + Python

I installed the leap motion (Linux/Ubuntu) hot fix .deb file on my Ubuntu 16.04 box.

I am using python.

When I try to run a hello_world.py it fails to import the leap module.

The above deb file installed fine. And I can start the service. I also can activate the GUI (leapmotioncontrol, I think that's the name). I can get the floating hands with my leap motion unit plugged into my box.

I've tried utilizing their hello_world code, but can't seem to locate the module.

1 Answer

Please take a look at these links:

Solution posted on GitHub issue:

You need to download the SDK from this link. In this you can find a folder named LeapSDK. Copy it to your $HOME (/home/user where user is your username) and do this:

export PYTHONPATH=$PYTHONPATH:$HOME/LeapSDK/lib:$HOME/LeapSDK/lib/x64
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Marcus Vance
Author

Marcus Vance

Marcus Vance is a cybersecurity auditor and technology writer dedicated to educating the public about online safety, data privacy regulations, enterprise security, and emerging cyber threats.