Page 1 of 1

Missing foo.py: error running example_kinetics.py

Posted: Tue Apr 30, 2024 2:52 am
by andrewlee
hi i was running example_kinetics.py file and came across this error. I checked the forum for similar error but I could not find the right solution.

I've install Cmake so I'm not sure why it says there's a compile issue

If anyone can help, I'd appreciate it. :D

Code: Select all

(opencap-processing) C:\Users\ansem\Documents\opencap-processing>python example_kinetics.py
Generate external function to leverage automatic differentiation.
CMake Error at CMakeLists.txt:11 (project):
  Generator

    NMake Makefiles

  does not support platform specification, but platform

    x64

  was specified.


CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
CMake Error:
  Generator

    NMake Makefiles

  does not support platform specification, but platform

    x64

  was specified.


The system cannot find the path specified.
Traceback (most recent call last):
  File "C:\Users\ansem\Documents\opencap-processing\example_kinetics.py", line 181, in <module>
    settings = processInputsOpenSimAD(baseDir, dataFolder, session_id, trial_name,
  File "C:\Users\ansem\Documents\opencap-processing\UtilsDynamicSimulations\OpenSimAD\utilsOpenSimAD.py", line 2251, in processInputsOpenSimAD
    generateExternalFunction(baseDir, dataFolder, session_id,
  File "C:\Users\ansem\Documents\opencap-processing\UtilsDynamicSimulations\OpenSimAD\utilsOpenSimAD.py", line 1537, in generateExternalFunction
    buildExternalFunction(
  File "C:\Users\ansem\Documents\opencap-processing\UtilsDynamicSimulations\OpenSimAD\utilsOpenSimAD.py", line 1778, in buildExternalFunction
    shutil.copy2(path_external_filename_foo, CPP_DIR)
  File "C:\Users\ansem\anaconda3\envs\opencap-processing\lib\shutil.py", line 434, in copy2
    copyfile(src, dst, follow_symlinks=follow_symlinks)
  File "C:\Users\ansem\anaconda3\envs\opencap-processing\lib\shutil.py", line 254, in copyfile
    with open(src, 'rb') as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\ansem\\Documents\\opencap-processing\\UtilsDynamicSimulations\\OpenSimAD\\opensimAD-install\\windows\\bin\\foo.py'

Re: Missing foo.py: error running example_kinetics.py

Posted: Tue Apr 30, 2024 11:07 am
by antoinefalisse
Hey, here is the fix: https://github.com/stanfordnmbl/opencap ... issues/113
It is a new bug I need to address