Page 1 of 1

Opensim Installation on Ubuntu(Debian)

Posted: Sat Jun 29, 2024 3:30 am
by amini_opensim
Hi guys

I have installed Opensim4.1 on Ubuntu. Now I want to configue opensim with Python according to the instruction:

https://opensimconfluence.atlassian.net ... +in+Python

bu my main problem is that i don't have any python3.x folder in my opensim installation directory:
$ cd <OPENSIM_INSTALL_DIR>/lib/python3.x/site-packages

Do you know how to create it ?

Best

Re: Opensim Installation on Ubuntu(Debian)

Posted: Sat Jun 29, 2024 11:16 am
by nbianco
Hi Samane,

If you want to build on Ubuntu from source, please refer to the following build script: https://github.com/opensim-org/opensim- ... -script.sh.

If you just need a working Python environment with OpenSim on Linux, please consider using the OpenSim conda packages: https://opensimconfluence.atlassian.net ... da+Package.

We have conda packages for OpenSim 4.5, but not that it does not include Moco currently. (Our next set of conda packages will include Moco support, so stay tuned for that.)

-Nick

Re: Opensim Installation on Ubuntu(Debian)

Posted: Sun Jun 30, 2024 12:58 am
by amini_opensim
Dear Nicholas

Actually, I have installed opensim4.1 on debain, but I have problem to configure opensim with python and I received this error when using 'import opensim':
ImportError: cannot import name '_simbody' from partially initialized module 'opensim'

in terms of opensim installation by anaconda, the last versions of anaconda3 that support opensim don't install on my system (Debian for Raspberrypi4 model B).

Do you know how to fix the problem I found?

Best

Re: Opensim Installation on Ubuntu(Debian)

Posted: Mon Jul 01, 2024 11:00 am
by nbianco
Hi Samane,

For OpenSim 4.1 on Ubuntu, you might need to update the LD_LIBRARY_PATH.

Code: Select all

$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<YOUR_INSTALL_DIRECTORY_HERE>/sdk/lib
$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<YOUR_INSTALL_DIRECTORY_HERE>/sdk/Simbody/lib

Re: Opensim Installation on Ubuntu(Debian)

Posted: Tue Jul 02, 2024 1:24 am
by amini_opensim
Dear Nicholas

Thanks for your help.

Do you know which version of Python works for opensim 4.1? And how about other opensim 4.3, 4.4 and 4.5?

Thanks

Re: Opensim Installation on Ubuntu(Debian)

Posted: Wed Jul 03, 2024 6:46 am
by tkuchida
Do you know which version of Python works for opensim 4.1? And how about other opensim 4.3, 4.4 and 4.5?
There is a table listing the Python version for each OpenSim version since 4.3 on the "Scripting in Python" page in the User's Guide (https://opensimconfluence.atlassian.net ... +in+Python, in the "Note on Python versions" section). OpenSim 4.1 used Python 3.7 (see the "What's New in OpenSim 4.1?" page, https://opensimconfluence.atlassian.net ... penSim+4.1).