Hi guys. I would like to import an external python package named Pinocchio in the embedded script editor. Here are the codes:
import sys print(sys.executable) import pinocchio
But it gave me a weird error which may relate to a *.so file:
The code in the script editor is rather simple:
The first part of the above code is to validate that Isaac sim is running in the virtual environment created by conda. It seems that it is indeed.
The second part is to import the Pinocchio package. The package seems to be correctly located, however a *.so-file-related error shows up.
- The Pinocchio (Pinocchio: efficient and versatile rigid body dynamics algorithms ) is installed by
conda install pinocchio -c conda-forgeto the specific virtual environment that Isaac Sim runs in.
- The virtual environment is created following the instructions: Python Environment Installation: Advanced: Running with Anaconda
- the package can be successfully imported outside in the standalone python interpreter
- the OS is Ubuntu 22.04. Isaac Sim version is 2023.1.0-hotfix.1
I really need this package to develop algorithms in Isaac Sim, and I appreciate any help or comments.