btk on Python 3.x

561 views
Skip to first unread message

Danylo Ulianych

unread,
Mar 25, 2015, 3:57:19 PM3/25/15
to btk-...@googlegroups.com
Hello. Is there any way to install BTK module on Python 3.x?
In Biomechanical ToolKit Building instructions page I found that "Python 3.0 or later is not yet officially supported".
Is it possible to bind BTK into Python 3.x? If so, can it be done in the same way as described on the official BTK page about its binding with Python 2.x?

Danylo Ulianych

unread,
Oct 20, 2015, 3:41:49 PM10/20/15
to BTK Users
I found a light-weighted implementation of reading and writing Motion Capture C3D files with Python 3.x. It's called c3d module and can be found at
If you want to support both 2.7+ and 3.4+ versions of Python, you can create btk-fake wrapper (a stub) for Python 3.4, using native btk for Python 2.7. For example, check out [https://github.com/dizcza/GesturesSpeech/blob/dev/MOCAP/local_tools/btk_fake.py]
Then rewrite your import to something like shown below.

try:
import btk
except ImportError:
import btk_fake as btk
Reply all
Reply to author
Forward
0 new messages