openleap / PyLeapMouse

A Leap Motion based mouse in Python
Other
171 stars 66 forks source link

Will not run #6

Closed ghost closed 11 years ago

ghost commented 11 years ago

crashes on load, any idea why?

sterlingcrispin commented 11 years ago

what OSX / Python are you on ? I'm on 10.8.4 / 2.7.2 works fine -

wyager commented 11 years ago

I haven't updated the libs on this in forever. You may have to add the latest libs from Leap.

As sterlingcrispin asked, what OS are you on? Do you see any error messages on the command line?

ghost commented 11 years ago

I am on python 2.7.2, windows 7, and I get:

Traceback (most recent call last): File "C:\Users\Patrick Martin\Desktop\PyLeapMouse-master\PyLeapMouse.py", line 10, in import Windows.Leap as Leap File "C:\Users\Patrick Martin\Desktop\PyLeapMouse-master\Windows\Leap.py", lin e 26, in LeapPython = swig_import_helper() File "C:\Users\Patrick Martin\Desktop\PyLeapMouse-master\Windows\Leap.py", lin e 22, in swig_import_helper _mod = imp.load_module('LeapPython', fp, pathname, description) ImportError: DLL load failed: %1 is not a valid Win32 application.

I should probably add I am totally new to python.

wyager commented 11 years ago

OK, so there are a few things that could be happening.

Please make sure you have followed everything in the "Configuration" section (see item 3 especially). I'm pretty sure that you simply forgot to put the LeapPython DLL file and other library files in the "Windows" folder.

If that doesn't fix it, please make sure that everything you are using in item 3 of the "Configuration" instructions is the latest version. 99% that will fix your error

wyager commented 11 years ago

Presumably OP fixed his issue or gave up. Closing.