I'm trying to read a c3d file on Python with the btk library but I didn't succeed. I downloaded the library here https://code.google.com/archive/p/b-tk/downloads for Windows 10 (64 bit) and then wrote this code:
Asked
Active
Viewed 828 times
0
-
You have to actually fill in the path to the library in line 2. And don't post images of code/errors, insert them as code blocks. – ivvija May 06 '22 at 07:58
-
I filled the path to the library but it still doesn't work. When I try to open the library on Jupyter I have the following error : Error! C:\Users\Lenovo\anaconda-3\site-packages\btk\btk.pyd is not UF-8 encoded. Saving disabled. Do you think this could be problem ? If it is the case, do you know how to solve it ? – Maxime Guerrero May 06 '22 at 08:17
-
Please add code and data as text ([using code formatting](/editing-help#code)), not images. Images: A) don't allow us to copy-&-paste the code/errors/data for testing; B) don't permit searching based on the code/error/data contents; and [many more reasons](//meta.stackoverflow.com/a/285557). Images should only be used, in addition to text in code format, if having the image adds something significant that is not conveyed by just the text code/error/data. – May 06 '22 at 15:39
-
Sorry, being a beginner on stack overflow I didn't know how to insert the code. Here is my code : – Maxime Guerrero May 09 '22 at 08:21
-
```import sys ```sys.path.append(r"C:\Users\Lenovo\anaconda3\Lib\site-packages\btk\__init__.py") ```#print(sys.path) ```import btk ```reader = btk.btkAcquisitionFileReader()``` – Maxime Guerrero May 09 '22 at 08:24
1 Answers
0
try https://pypi.org/project/c3d/
or https://github.com/pyomeca/pyomeca
its easier with them than with btk toolkit. You will need to see docs to get it done. I am using those to read only, then switch to numpy or pandas.

Dariusz Mosler
- 11
- 1