Opensim Installation on Ubuntu(Debian)

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Samane Amini
Posts: 96
Joined: Sun Jan 12, 2020 3:48 am

Opensim Installation on Ubuntu(Debian)

Post by Samane Amini » Sat Jun 29, 2024 3:30 am

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

User avatar
Nicholas Bianco
Posts: 963
Joined: Thu Oct 04, 2012 8:09 pm

Re: Opensim Installation on Ubuntu(Debian)

Post by Nicholas Bianco » Sat Jun 29, 2024 11:16 am

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

User avatar
Samane Amini
Posts: 96
Joined: Sun Jan 12, 2020 3:48 am

Re: Opensim Installation on Ubuntu(Debian)

Post by Samane Amini » Sun Jun 30, 2024 12:58 am

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

User avatar
Nicholas Bianco
Posts: 963
Joined: Thu Oct 04, 2012 8:09 pm

Re: Opensim Installation on Ubuntu(Debian)

Post by Nicholas Bianco » Mon Jul 01, 2024 11:00 am

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

POST REPLY