Loading
Cookies help us deliver our services. By using our services, you agree to our use of cookies. Learn more

crowdAI is shutting down - please read our blog post for more information

NIPS 2017: Learning to Run

Reinforcement learning environments with musculoskeletal models


Completed
2154
Submissions
631
Participants
90156
Views

Opensim on Python 3.X

Posted by Y2ee201 almost 2 years ago

Hi, Is anyone able to run opensim on python 3.X and windows?

Posted by spMohanty  almost 2 years ago |  Quote

Hi @Y2ee201,

Unfortunately python 3.x is not supported on Windows at the moment. But it is supported on Linux. The relevant discussion thread for this topic can be found here : https://github.com/stanfordnmbl/osim-rl/issues/16

Cheers,
Mohanty

Posted by mattias_ljungstrom  almost 2 years ago |  Quote

Here are my notes on compiling it for Win64, no guarantees it will work for you:

setup opensim with python 3.5 on Windows

installed python 3.5.4 in conda environment installed cmake 3.9.4 manually installed choco manually visual studio community edition 2017

in admin powershell:

choco install swig

git clone https://github.com/opensim-org/opensim-core.git mkdir opensim_dependencies_build cd .\opensim_dependencies_build cmake ..\opensim-core\dependencies -G”Visual Studio 15 2017 Win64” -DCMAKE_INSTALL_PREFIX=”..\opensim_dependencies_install” cmake –build . –config RelWithDebInfo – /maxcpucount:8 cd .. mkdir opensim_build cd .\opensim_build cmake ..\opensim-core -G”Visual Studio 15 2017 Win64” -DCMAKE_INSTALL_PREFIX=”..\opensim_install” -DOPENSIM_DEPENDENCIES_DIR=”..\opensim_dependencies_install” -DBUILD_JAVA_WRAPPING=OFF -DBUILD_PYTHON_WRAPPING=ON -DWITH_BTK=ON -DOPENSIM_PYTHON_VERSION=3
cmake –build . –config RelWithDebInfo – /maxcpucount:8 ctest –build-config RelWithDebInfo –parallel 8 cmake –build . –config RelWithDebInfo –target install – /maxcpucount:8

Add “C:\mygit\opensim_install\bin” to PATH

In activated conda prompt (or in powershell for global install) cd C:\mygit\opensim_install\sdk\python and run “python setup.py install”

Posted by Arnaldur_Bjarnason  almost 2 years ago |  Quote

I managed to set it up since I wanted to use tensorflow but it was a bit of a hassle and if you look at some of the more recent discussions you will see that I had some problems which might be related to that (or just server issues).