[Pythonmac-SIG] Accessing .so files in BGE python scripts

Paul Coones paulcoones at comcast.net
Thu Apr 4 16:17:08 CEST 2013


I am a Leap Developer trying to develop in Blender so I can move objects around with hand/finger motions in the game engine.

This is sample of part of the LeapPython.so (.dynlib) I need to access in Blender 2.66a Game Engine on my MacMini SnowLeopard 32 bit:

Possible C/C++ prototypes are:
   Leap::Tool::Tool()
   Leap::Tool::Tool(Leap::Pointable const &)
O:new_Tool in method 'new_Tool', argument 1 of type 'Leap::Pointable const &' invalid null reference in method 'new_Tool', argument 1 of type 'Leap::Pointable const &' :new_Tool O:delete_Finger in method 'delete_Finger', argument 1 of type 'Leap::Finger *' O:Finger___str__ in method 'Finger___str__', argument 1 of type 'Leap::Finger const *' Wrong number or type of arguments for overloaded function 'new_Finger'.

This is the type of errors I am getting when there is a call like:

    __swig_destroy__ = LeapPython.delete_FloatArray


Python script error - object 'TheMostImportantEmpty', controller 'Process':
Traceback (most recent call last):
 File "Process.py", line 1, in <module>
   import Leap, GameLogic
 File "/Users/paulcoones/Desktop/AUTODESK(1).blend/Leap.py", line 247, in <module>
 File "/Users/paulcoones/Desktop/AUTODESK(1).blend/Leap.py", line 289, in FloatArray
AttributeError: 'module' object has no attribute 'delete_FloatArray'

After looking at this type of error, what is the correct location to put the LeapPython.so ( dynamic library ) so a Blender script can find it and access the data on it? Or perhaps my .so file is of the wrong format?

Paul



More information about the Pythonmac-SIG mailing list