Page 1 of 1

opensim moco with python

Posted: Mon Apr 19, 2021 7:21 pm
by eggr
Hi,

I wanna use opensim moco with python.

But when I launch examples in python, the error "module 'opensim' has no attribute 'MocoStudy'" shows up.

Could you let me know what should I do?

Thank you for everything about opensim moco.

Best regards,

HS Choi

Re: opensim moco with python

Posted: Mon Apr 19, 2021 10:56 pm
by aafox
Hi Choi,

What version of OpenSim are you using? Moco only got included in the latest 4.2 release of OpenSim, so using anything earlier than this won't work. There's a useful command for checking what the actual version number is - but I can't remember what it is!

Aaron

Re: opensim moco with python

Posted: Mon Apr 19, 2021 11:08 pm
by nbianco
Hi Choi,

Are you using Windows or Mac? And did you follow the setup instructions for using Python bindings with OpenSim? Check out this page if you haven't: https://simtk-confluence.stanford.edu/d ... +in+Python.

-Nick