How to run IsaacSim with Python?

Isaac Sim Version

4.5.0
4.2.0
4.1.0
4.0.0
4.5.0
2023.1.1
2023.1.0-hotfix.1
Other (please specify):

Operating System

Ubuntu 22.04
Ubuntu 20.04
Windows 11
Windows 10
Other (please specify):

GPU Information

  • Model:
  • Driver Version:

Topic Description

Detailed Description

I installed Isaac Sim via this tutorial Python Environment Installation

I’m not able to run the ./python.sh at the root level where I source env_isaacsim/bin/activate . Since I used pip to install IsaacSim, there isn’t even a python.sh at root.

I did find a python.sh in env_isaacsim/lib/python3.10/site-packages/omni/dev/tools/packman/python.sh

I am able to run the GUI, Extension in the tutorial Quickstart with Isaac Sim, but not the Standalone Python.

Steps to Reproduce

  1. source env_isaacsim/bin/activate
  2. env_isaacsim/lib/python3.10/site-packages/omni/dev/tools/packman/python.sh env_isaacsim/lib/python3.10/site-packages/isaacsim/exts/isaacsim.examples.interactive/isaacsim/examples/interactive/follow_target/follow_target.py

Error Messages

from isaacsim.examples.interactive.base_sample import BaseSample
ModuleNotFoundError: No module named 'isaacsim'

Screenshots or Videos

(If applicable, add screenshots or links to videos that demonstrate the issue)

Additional Information

What I’ve Tried

I also tried using just python instead of python.sh, same results. I was able to run Isaac Lab’s python scripts without any problems for some reason.

Resolved via reinstalling IsaacSim as workstation instead of using the pip method.
https://docs.isaacsim.omniverse.nvidia.com/latest/installation/install_workstation.html

Hi @genozen

Two points:

  1. Executing Isaac Sim script for installation using Isaac Sim - Python packages (PIP) should be done using python rather than python.sh (last one is for binary installation)
  2. [The cause of the error] The script you are trying to execute is not a standalone example but an Isaac Sim extension (and therefore, a non-runnable script from terminal). Please refer to Isaac Sim’s Workflows for more details

Thanks for the reply! While I have read the documentation before, I didn’t quite grasp it fully until I started making my own extension following the tutorial from the Isaac Lab github doc. This had helped tremendously. There’s still some confusing part about the linkage between Isaac Lab and Sim, but I think I just have to keep experimenting and go through more documentations/tutorials.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.