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
Opensim Installation on Ubuntu(Debian)
- Nicholas Bianco
- Posts: 999
- Joined: Thu Oct 04, 2012 8:09 pm
Re: Opensim Installation on Ubuntu(Debian)
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
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
- Samane Amini
- Posts: 100
- Joined: Sun Jan 12, 2020 3:48 am
Re: Opensim Installation on Ubuntu(Debian)
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
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
- Nicholas Bianco
- Posts: 999
- Joined: Thu Oct 04, 2012 8:09 pm
Re: Opensim Installation on Ubuntu(Debian)
Hi Samane,
For OpenSim 4.1 on Ubuntu, you might need to update the LD_LIBRARY_PATH.
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
- Samane Amini
- Posts: 100
- Joined: Sun Jan 12, 2020 3:48 am
Re: Opensim Installation on Ubuntu(Debian)
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
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
- Thomas Uchida
- Posts: 1789
- Joined: Wed May 16, 2012 11:40 am
Re: Opensim Installation on Ubuntu(Debian)
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).Do you know which version of Python works for opensim 4.1? And how about other opensim 4.3, 4.4 and 4.5?
- Nicholas Bianco
- Posts: 999
- Joined: Thu Oct 04, 2012 8:09 pm
Re: Opensim Installation on Ubuntu(Debian)
To add: if building from source, OpenSim should work with whatever Python version you build against. Just make sure that your Python environment you install in matches the one in your build.