-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python3 support #2
Comments
I had the same issue. I ended up rebuilding the package from the source code using the Python 3 libraries. It worked like a charm. For reference I used: Since the BTK package relies completely on C++ code, you should be able to easily rebuild the package in any language that is supported by SWIG, including the latest versions of Python. Just follow the instructions here: |
@CameronJGrant thanks! |
hello
As Cameron did, i have just compiled btk source with python3 as target of
swig, then collect binaries in a git folder.
i ran all unit tests already included in btk. All tests passed :)
There is nothing official with pyBTK and dont want to do any support.
It s just a folder i might use as third party package of pyCGM2 unless i
choose another API ;-)
cheers
Le mer. 21 août 2019 à 07:47, Jussi Nurminen <[email protected]> a
écrit :
… @CameronJGrant <https://github.com/CameronJGrant> thanks!
There are also rumours about a new PyBTK package on PyPi which supports
Python 3.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2?email_source=notifications&email_token=AAXUMBPPH3JRDHP3JAL5VDTQFTQI3A5CNFSM4GDN2TGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4YUANA#issuecomment-523321396>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAXUMBPK33RIYVEMZF7H56TQFTQI3ANCNFSM4GDN2TGA>
.
--
----------------------------------------------------------------------------------------------
Fabien Leboeuf
Research fellow ( University of salford)
------------------------------------------------------------------------------------------------
- phD Mechanics-Biomechanics (university of Poitiers, FRANCE)
------------------------------------------------------------------------------------------------
College of Health & Social Care
University of Salford
Allerton Building
Frederick Road Campus
Salford, M6 6PU, UNITED KINGDOM
------------------------------------------------------------------------------------------------
|
Sorry for the advertisement Fabien ;) |
Hi @CameronJGrant. I'm currently trying to get BTKPython running. I have installed BTKCore-Master using cmake and have downloaded the BTKPython-Master repo. I'm not sure where to go from here, though. If I add the bin/ directory to my path using sys in Python (as has been suggested here: http://biomechanical-toolkit.github.io/docs/Wrapping/Python/_getting_started.html) it doesn't find any of the necessary python files. Am I in the right direction here or have I already gone wrong? The link you posted to instructions 404ed for me. Any help would be greatly appreciated. Cheers. |
@henrypowell87 It can be installed through: Will that work for you, or do you need to compile things yourself? |
@CameronJGrant Thanks for this! After pulling my hair out all day trying to get things working with cmake and the BTK repos I've resorted to a conda install on my work OSX of the ezc3d package (linked here: https://github.com/pyomeca/ezc3d) which I'm currently testing. I'll take a look at the conda btk library you linked as well. Great to hear someone has been working to streamline the btk set up with python (wish I found that 6 hours ago, though!). Many thanks for getting back so quickly! Cheers. |
@henrypowell87 I would also suggest that you use ezc3d. It is not as stable as btk, but is actively maintained and it has more pythonic interface. Also, the btk conda package I made is only for windows. Because that is what I have available, and what I needed. It can be converted to mac. Probably quite easily. If you have struggled with cmake, then maybe you are the right person to enable mac/linux support for the conda package. See this PR which I have started: But again, consider something else if you are starting a new project. The conda package was mostly for supporting my old projects. Now that python2 is dead. |
@melund Thanks for this response. I did indeed find ezc3d pretty straight forward to use and, for the time being at least, it's doing the pretty basic job I needed it for. If I run into issues with the stability of the library in the future I'll be sure to looking into working on porting the btk conda package to linux/ OSX. Thanks again for getting back to me. |
Hi,
I have written a library for processing and visualization of 3d gait data that heavily relies on btk Python bindings. I'm planning a transition to Python 3, since major libraries like NumPy are planning to drop Python 2 support soon.
Are there plans to make the btk bindings Python 3 compatible? Would this entail a lot of work?
@Alzathar @aaa34169
The text was updated successfully, but these errors were encountered: