Error when using Moco in Python: MocoCasADiSolver is not available

OpenSim Moco is a software toolkit to solve optimal control problems with musculoskeletal models defined in OpenSim using the direct collocation method.
User avatar
Camille Guillaume
Posts: 3
Joined: Thu Apr 25, 2024 7:42 am

Re: Error when using Moco in Python: MocoCasADiSolver is not available

Post by Camille Guillaume » Mon Jun 03, 2024 3:53 pm

Follow up:

If someone accounters the same problem with the library importation, I solved the issue by running those two commands:

Code: Select all

% export DYLD_LIBRARY_PATH=<install_dir>/sdk/Simbody/lib:$DYLD_LIBRARY_PATH
% export DYLD_LIBRARY_PATH=<install_dir>/sdk/lib:$DYLD_LIBRARY_PATH
I also got an issue regarding the macOS version of my mac (11.7.10), which was not compatible with opensim.
I solved it by installing the latest version of macOS (14.5).

This approach worked and Moco is now finally running smoothly on my machine.

Thanks for the support.
Camille

POST REPLY