Isaac Examples > Awesome Example is no longer displayed

Hi!!
I was going through the isaac sim tutorial and rewrote some Python files. This may be the reason why some of the “Isaac Examples” menu items, including “Awesome Example”, are not showing up anymore.
How can I solve this problem?Here is the error code.

2022-07-30 02:15:43 [7,586ms] [Error] [omni.ext.impl._internal] Failed to import python module omni.isaac.examples.tests from /home/yoshie/.local/share/ov/pkg/isaac_sim-2022.1.0/exts/omni.isaac.examples. Error: expected an indented block (hello_world.py, line 14). Traceback:
Traceback (most recent call last):
File “/home/yoshie/.local/share/ov/pkg/isaac_sim-2022.1.0/kit/plugins/bindings-python/omni/ext/impl/_internal.py”, line 151, in _custom_importer
return _import_public(ext_module.path, ext_module.name)
File “/home/yoshie/.local/share/ov/pkg/isaac_sim-2022.1.0/kit/plugins/bindings-python/omni/ext/impl/_internal.py”, line 78, in _import_public
module = import_module(module_name)
File “/home/yoshie/.local/share/ov/pkg/isaac_sim-2022.1.0/kit/plugins/bindings-python/carb/profiler/init.py”, line 78, in wrapper
r = f(*args, **kwds)
File “/home/yoshie/.local/share/ov/pkg/isaac_sim-2022.1.0/kit/plugins/bindings-python/omni/ext/impl/custom_importer.py”, line 76, in import_module
return importlib.import_module(name)
File “/home/yoshie/.local/share/ov/pkg/isaac_sim-2022.1.0/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/yoshie/.local/share/ov/pkg/isaac_sim-2022.1.0/exts/omni.isaac.examples/omni/isaac/examples/tests/init.py”, line 17, in
from .test_hello_world import *
File “/home/yoshie/.local/share/ov/pkg/isaac_sim-2022.1.0/exts/omni.isaac.examples/omni/isaac/examples/tests/test_hello_world.py”, line 18, in
from omni.isaac.examples.hello_world import HelloWorld
File “/home/yoshie/.local/share/ov/pkg/isaac_sim-2022.1.0/exts/omni.isaac.examples/omni/isaac/examples/hello_world/init.py”, line 10, in
from omni.isaac.examples.hello_world.hello_world import HelloWorld
File “/home/yoshie/.local/share/ov/pkg/isaac_sim-2022.1.0/exts/omni.isaac.examples/omni/isaac/examples/hello_world/hello_world.py”, line 14
def init(self) → None:
^
IndentationError: expected an indented block

2022-07-30 02:15:43 [7,586ms] [Error] [carb.scripting-python.plugin] Exception: Extension python module: ‘omni.isaac.examples.tests’ in ‘/home/yoshie/.local/share/ov/pkg/isaac_sim-2022.1.0/exts/omni.isaac.examples’ failed to load.

At:
/home/yoshie/.local/share/ov/pkg/isaac_sim-2022.1.0/kit/plugins/bindings-python/omni/ext/impl/_internal.py(177): startup
/home/yoshie/.local/share/ov/pkg/isaac_sim-2022.1.0/kit/plugins/bindings-python/omni/ext/impl/_internal.py(268): startup_extension
PythonExtension.cpp::startup()(2):

2022-07-30 02:15:43 [7,586ms] [Error] [omni.ext.plugin] [ext: omni.isaac.examples-1.0.0] Failed to startup python extension.
2022-07-30 02:15:43 [7,632ms] [Error] [omni.ext.python] IndentationError: expected an indented block (hello_world.py, line 14)

At:
/home/yoshie/.local/share/ov/pkg/isaac_sim-2022.1.0/exts/omni.isaac.examples/omni/isaac/examples/hello_world/init.py(10):
(219): _call_with_frames_removed
(728): exec_module
(677): _load_unlocked
(967): _find_and_load_unlocked
(983): _find_and_load
/home/yoshie/.local/share/ov/pkg/isaac_sim-2022.1.0/exts/omni.isaac.examples/omni/isaac/examples/tests/test_hello_world.py(18):
(219): _call_with_frames_removed
(728): exec_module
(677): _load_unlocked
(967): _find_and_load_unlocked
(983): _find_and_load
/home/yoshie/.local/share/ov/pkg/isaac_sim-2022.1.0/exts/omni.isaac.examples/omni/isaac/examples/tests/init.py(17):
(219): _call_with_frames_removed
(728): exec_module
(677): _load_unlocked
(967): _find_and_load_unlocked
(983): _find_and_load
(1006): _gcd_import
(219): _call_with_frames_removed
(953): _find_and_load_unlocked
(983): _find_and_load
(1006): _gcd_import
/home/yoshie/.local/share/ov/pkg/isaac_sim-2022.1.0/kit/python/lib/python3.7/importlib/init.py(127): import_module
/home/yoshie/.local/share/ov/pkg/isaac_sim-2022.1.0/kit/exts/omni.graph/omni/graph/core/_impl/extension.py(57): on_after_ext_enabled

If you have typo or error in you code. It will not be displayed.

Hi @yoshietoshi104

As @jwson3 indicate, the extension is not enabled due to the following error:

Edit the file (at line 14) and make sure the indentation is correct

It looks like the error was caused by incorrect indentation of the python program. Thanks everyone for your answers.

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