Error during running example_kinetics.py

New project for OpenCap, which is a new software package to estimate 3D human movement dynamics from smartphone videos. OpenCap strongly relies on OpenSim.
POST REPLY
User avatar
Zhang Zihao
Posts: 3
Joined: Thu Apr 25, 2024 6:08 pm

Error during running example_kinetics.py

Post by Zhang Zihao » Wed Dec 04, 2024 8:20 pm

collect2: error: ld returned 1 exit status
CMakeFiles/F.dir/build.make:101: recipe for target 'F' failed
make[2]: *** [F] Error 1
CMakeFiles/Makefile2:82: recipe for target 'CMakeFiles/F.dir/all' failed
make[1]: *** [CMakeFiles/F.dir/all] Error 2
Makefile:90: recipe for target 'all' failed
make: *** [all] Error 2
Traceback (most recent call last):
File "/workspace/OpenCap/opencap-processing-main/example_kinetics.py", line 166, in <module>
settings = processInputsOpenSimAD(baseDir, dataFolder, session_id, trial_name,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/OpenCap/opencap-processing-main/UtilsDynamicSimulations/OpenSimAD/utilsOpenSimAD.py", line 2321, in processInputsOpenSimAD
generateExternalFunction(baseDir, dataFolder, session_id,
File "/workspace/OpenCap/opencap-processing-main/UtilsDynamicSimulations/OpenSimAD/utilsOpenSimAD.py", line 1544, in generateExternalFunction
buildExternalFunction(
File "/workspace/OpenCap/opencap-processing-main/UtilsDynamicSimulations/OpenSimAD/utilsOpenSimAD.py", line 1795, in buildExternalFunction
shutil.copy2(path_external_filename_foo, CPP_DIR)
File "/opt/conda/envs/opencap-processing/lib/python3.11/shutil.py", line 448, in copy2
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "/opt/conda/envs/opencap-processing/lib/python3.11/shutil.py", line 256, in copyfile
with open(src, 'rb') as fsrc:
^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/workspace/OpenCap/opencap-processing-main/UtilsDynamicSimulations/OpenSimAD/build-ExpressionGraphF/foo.py'

I use the docker, all steps are carried out according to the instructions but it just can't work.

Tags:

User avatar
Matt Petrucci
Posts: 222
Joined: Fri Feb 24, 2012 11:49 am

Re: Error during running example_kinetics.py

Post by Matt Petrucci » Thu Dec 05, 2024 3:01 pm

Hi Zhang,

Is your repo up to date?

This was an issue in the past: https://github.com/stanfordnmbl/opencap ... issues/113

Hope this helps,
Matt

User avatar
Matt Petrucci
Posts: 222
Joined: Fri Feb 24, 2012 11:49 am

Re: Error during running example_kinetics.py

Post by Matt Petrucci » Fri Dec 06, 2024 2:30 pm

Hi Zhang,

Quick question, are you running this on Mac or Windows? If Mac, which OS?

Thanks!
Matt

User avatar
Zhang Zihao
Posts: 3
Joined: Thu Apr 25, 2024 6:08 pm

Re: Error during running example_kinetics.py

Post by Zhang Zihao » Sun Dec 08, 2024 3:12 am

I am running this project on Linux and have installed libopenblas-base inside the docker container

User avatar
Matt Petrucci
Posts: 222
Joined: Fri Feb 24, 2012 11:49 am

Re: Error during running example_kinetics.py

Post by Matt Petrucci » Mon Dec 09, 2024 11:38 am

Hi Zhang,

Are you creating your own docker container? If yes, we haven't tested the compiler within a docker container.

The code should work without a docker container if a python environment is set up as outlined in the README of the Github repository. But if you run into issues with that let us know.

Thanks,
Matt

User avatar
Zhang Zihao
Posts: 3
Joined: Thu Apr 25, 2024 6:08 pm

Re: Error during running example_kinetics.py

Post by Zhang Zihao » Tue Dec 17, 2024 12:54 am

Well, I managed to get it working on Windows, thanks for your help :D

User avatar
Matt Petrucci
Posts: 222
Joined: Fri Feb 24, 2012 11:49 am

Re: Error during running example_kinetics.py

Post by Matt Petrucci » Tue Dec 17, 2024 3:07 pm

Great! Yes Windows should work well. We're looking into the problem on Linux.

POST REPLY