Unable to import omni modules

I am unable to import omni.isaac or omni.ui

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'omni.isaac'

Similar issues were raised here:
#197314
#246712

I am using Isaac Sim 2022.2.1, and i am running the following two lines only by launching the Python shell script provided in Isaac Sim.

import carb
from omni.isaac.kit import SimulationApp

I am able to import the modules on isaac_sim-2022.2.0 however.

Hi @naruto.uzumaki - Please refer to this forum chat and see if the issue gets resolved or not.

Hi.
I am not using VSCode and the forum chat you shared, the user reported an entirely different issue where the modules cannot be found in the VSCode path.

For me, I am not able to import the modules in python. I am simply running the ./python.sh provided in ${HOME}/.local/share/ov/isaac_sim-2022.2.1/ folder and running the two lines below:

import carb
from omni.isaac.kit import SimulationApp

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'omni.isaac'

How to fix this issue?

Hi @naruto.uzumaki - Apologies for the delay in the response. You can find the python environment and related requirements here:Python Environment — Omniverse Robotics documentation

Also, the two posts that you mentioned earlier has information from devs. Have you followed that and still having issues?