I have version 2.3.1 of the SDK LeapMotion and Python 2.7.13 installed (under Windows 10, 64bit), but when I try to run the sample Python program provided with the SDK (Sample.py), I get the following error:
C:\Apps\Leap\LeapSDK\samples>python Sample.py
Traceback (most recent call last):
File "Sample.py", line 16, in
import Leap
ImportError: No module named Leap
What have I not done, or done wrong? How do I tell Python where to find "Leap"?
I have already tried with the following method :
import os, sys, inspect, timesrc_dir = os.path.dirname(inspect.getfile(inspect.currentframe()))
arch_dir = '../lib/x64' if sys.maxsize > 2**32 else '../lib/x86'
sys.path.insert(0, os.path.abspath(os.path.join(src_dir, arch_dir)))
sys.path.append("C:[...]\LeapDeveloper\LeapSDK\lib\")
sys.path.append("C:[...]\LeapDeveloper\LeapSDK\lib\x86")
import Leap
from Leap import CircleGesture, KeyTapGesture, ScreenTapGesture,SwipeGesture
but I still have the same error ?
Thanks.