`ModuleNotFoundError: No module named 'omni.isaac.core'` Why this error appear?

Hi,

Now I trying to run OGIE with skrl with my custom task environment.

Error message ModuleNotFoundError: No module named 'omni.isaac.core' appeared from my task environment code.

It does not have an error when I run the example file and the example file has the same import procedures.

import omni
from omni.isaac.core.prims import RigidPrimView

The error message comes from above at the almost first line.

Below is the entire error message.

python torch_ur5e_moving_target_ppo.py 
/home/bak/.local/share/ov/pkg/isaac_sim-2023.1.0-hotfix.1/extscache/omni.pip.torch-2_0_1-2.0.2+105.1.lx64/torch-2-0-1/torch/utils/tensorboard/__init__.py:4: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
  if not hasattr(tensorboard, "__version__") or LooseVersion(
/home/bak/.local/share/ov/pkg/isaac_sim-2023.1.0-hotfix.1/kit/exts/omni.kit.pip_archive/pip_prebundle/botocore/httpsession.py:17: DeprecationWarning: 'urllib3.contrib.pyopenssl' module is deprecated and will be removed in a future release of urllib3 2.x. Read more in this issue: https://github.com/urllib3/urllib3/issues/2680
  from urllib3.contrib.pyopenssl import orig_util_SSLContext as SSLContext
Traceback (most recent call last):
  File "/home/bak/.local/share/ov/pkg/isaac_sim-2023.1.0-hotfix.1/OmniIsaacGymEnvs/omniisaacgymenvs/skrl_examples/torch_ur5e_moving_target_ppo.py", line 22, in <module>
    from omniisaacgymenvs.skrl_examples.moving_target_env import MovingTargetTask, TASK_CFG
  File "/home/bak/.local/share/ov/pkg/isaac_sim-2023.1.0-hotfix.1/OmniIsaacGymEnvs/omniisaacgymenvs/skrl_examples/moving_target_env.py", line 12, in <module>
    from omni.isaac.core.prims import RigidPrimView
ModuleNotFoundError: No module named 'omni.isaac.core'



`

I check with

import sys
print(sys.path)

and I found Isaac Sim does not contain modules from exts.
Sometimes I feel this is kind of a prevalent problem.

I can solve that I made an env = get_env_instance(headless=True) instance before import environment class and SimConfig.

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