Page 1 of 1

Error during running example_kinetics.py

Posted: Wed Dec 04, 2024 8:20 pm
by zhangzihao
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.

Re: Error during running example_kinetics.py

Posted: Thu Dec 05, 2024 3:01 pm
by mpetrucc
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

Re: Error during running example_kinetics.py

Posted: Fri Dec 06, 2024 2:30 pm
by mpetrucc
Hi Zhang,

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

Thanks!
Matt

Re: Error during running example_kinetics.py

Posted: Sun Dec 08, 2024 3:12 am
by zhangzihao
I am running this project on Linux and have installed libopenblas-base inside the docker container

Re: Error during running example_kinetics.py

Posted: Mon Dec 09, 2024 11:38 am
by mpetrucc
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

Re: Error during running example_kinetics.py

Posted: Tue Dec 17, 2024 12:54 am
by zhangzihao
Well, I managed to get it working on Windows, thanks for your help :D

Re: Error during running example_kinetics.py

Posted: Tue Dec 17, 2024 3:07 pm
by mpetrucc
Great! Yes Windows should work well. We're looking into the problem on Linux.