Error occurs when launching Isaac Sim: Error: No module named 'omni.isaac.imu_sensor'

Hi all!
I want to import module named _imu_sensor in the extension in Isaac Examples > Dynamic Control > Joint Controler . But when I close Isaac Sim and open it again, an error occurs:
2022-01-26 03:04:44 [3,441ms] [Error] [omni.ext.impl._internal] Failed to import python module omni.isaac.examples.dynamic_control.joint_controller. Error: No module named ‘omni.isaac.imu_sensor’. Traceback:
Traceback (most recent call last):
** File “/home/yangg/.local/share/ov/pkg/isaac_sim-2021.2.1/kit/plugins/bindings-python/omni/ext/impl/_internal.py”, line 65, in import_module**
** return importlib.import_module(name)**
** File “/home/yangg/.local/share/ov/pkg/isaac_sim-2021.2.1/kit/python/lib/python3.7/importlib/init.py”, line 127, in import_module**
** return _bootstrap._gcd_import(name[level:], package, level)**
** File “”, line 1006, in _gcd_import**
** File “”, line 983, in _find_and_load**
** File “”, line 967, in _find_and_load_unlocked**
** File “”, line 677, in _load_unlocked**
** File “”, line 728, in exec_module**
** File “”, line 219, in _call_with_frames_removed**
** File “/home/yangg/.local/share/ov/pkg/isaac_sim-2021.2.1/exts/omni.isaac.examples/omni/isaac/examples/dynamic_control/joint_controller.py”, line 19, in **
** from omni.isaac.imu_sensor import _imu_sensor**
ModuleNotFoundError: No module named 'omni.isaac.imu_sensor’

2022-01-26 03:04:44 [3,441ms] [Error] [carb.scripting-python.plugin] Exception: Extension python module: ‘omni.isaac.examples.dynamic_control.joint_controller’ in ‘/home/yangg/.local/share/ov/pkg/isaac_sim-2021.2.1/exts/omni.isaac.examples/.’ failed to load.

At:
** /home/yangg/.local/share/ov/pkg/isaac_sim-2021.2.1/kit/plugins/bindings-python/omni/ext/impl/_internal.py(169): startup_all_extensions_in_module**
** /home/yangg/.local/share/ov/pkg/isaac_sim-2021.2.1/kit/plugins/bindings-python/omni/ext/impl/_internal.py(225): startup_all_extensions_in_module**
** PythonExtension.cpp::startup()(2): **

2022-01-26 03:04:44 [3,441ms] [Error] [omni.ext.plugin] [ext: omni.isaac.examples-0.1.17] Failed to process python module extension in ‘/home/yangg/.local/share/ov/pkg/isaac_sim-2021.2.1/exts/omni.isaac.examples/.’.

Here is a part of the code:
import os

import asyncio

import weakref

import carb

import omni

import omni.ui as ui

import omni.kit.test

from omni.kit.menu.utils import add_menu_items, remove_menu_items, MenuItemDescription

from omni.isaac.ui.ui_utils import setup_ui_headers, get_style, btn_builder, scrolling_frame_builder

from omni.isaac.core.utils.stage import open_stage_async

from omni.isaac.dynamic_control import _dynamic_control

from pxr import Usd

import omni.physx as _physx

import numpy as np

from omni.isaac.imu_sensor import _imu_sensor

After that I can’t find the extension in Isaac Examples.

How can I solve this problem?
Thanks!

Hi @JayWong

This error occurs because the omni.isaac.imu_sensor extension is not loaded when loading the examples…

A feasible solution is to add the omni.isaac.imu_sensor extension as dependency for the omni.isaac.examples to force its loading… Edit the omni.isaac.examples config (PATH_TO_ISAAC_SIM/exts/omni.isaac.examples/config/extension.toml line 37) and include:

"omni.isaac.imu_sensor" = {}

I’ve tried this method. But another error which has not occurred before occurs.

2022-01-26 09:25:00 [3,536ms] [Error] [omni.ext.impl._internal] Failed to import python module omni.isaac.examples.dynamic_control.joint_controller. Error: No module named ‘rospy’. Traceback:
Traceback (most recent call last):
** File “/home/yangg/.local/share/ov/pkg/isaac_sim-2021.2.1/kit/plugins/bindings-python/omni/ext/impl/_internal.py”, line 65, in import_module**
** return importlib.import_module(name)**
** File “/home/yangg/.local/share/ov/pkg/isaac_sim-2021.2.1/kit/python/lib/python3.7/importlib/init.py”, line 127, in import_module**
** return _bootstrap._gcd_import(name[level:], package, level)**
** File “”, line 1006, in _gcd_import**
** File “”, line 983, in _find_and_load**
** File “”, line 967, in _find_and_load_unlocked**
** File “”, line 677, in _load_unlocked**
** File “”, line 728, in exec_module**
** File “”, line 219, in _call_with_frames_removed**
** File “/home/yangg/.local/share/ov/pkg/isaac_sim-2021.2.1/exts/omni.isaac.examples/omni/isaac/examples/dynamic_control/joint_controller.py”, line 21, in **
** import rospy**
ModuleNotFoundError: No module named 'rospy’

2022-01-26 09:25:00 [3,537ms] [Error] [carb.scripting-python.plugin] Exception: Extension python module: ‘omni.isaac.examples.dynamic_control.joint_controller’ in ‘/home/yangg/.local/share/ov/pkg/isaac_sim-2021.2.1/exts/omni.isaac.examples/.’ failed to load.

At:
** /home/yangg/.local/share/ov/pkg/isaac_sim-2021.2.1/kit/plugins/bindings-python/omni/ext/impl/_internal.py(169): startup_all_extensions_in_module**
** /home/yangg/.local/share/ov/pkg/isaac_sim-2021.2.1/kit/plugins/bindings-python/omni/ext/impl/_internal.py(225): startup_all_extensions_in_module**
** PythonExtension.cpp::startup()(2): **

2022-01-26 09:25:00 [3,537ms] [Error] [omni.ext.plugin] [ext: omni.isaac.examples-0.1.17] Failed to process python module extension in ‘/home/yangg/.local/share/ov/pkg/isaac_sim-2021.2.1/exts/omni.isaac.examples/.’.

It can’t find the module named rospy. Here is a part of the code:

import asyncio

import weakref

import carb

import omni

import omni.ui as ui

import omni.kit.test

from omni.isaac.core import World

from omni.kit.menu.utils import add_menu_items, remove_menu_items, MenuItemDescription

from omni.isaac.ui.ui_utils import setup_ui_headers, get_style, btn_builder, scrolling_frame_builder

from omni.isaac.core.utils.stage import open_stage_async

from omni.isaac.dynamic_control import _dynamic_control

from pxr import UsdGeom

import omni.physx as _physx

import numpy as np

from omni.isaac.imu_sensor import _imu_sensor

import rospy

from sensor_msgs.msg import JointState

import rospy.core

Hi

The same but now for

"omni.isaac.ros_bridge" = {}

Got it! Thank you !

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