[omni.ext._impl.custom_importer] Failed to import python module XXX

在通过模板新建extension之后,设置载入会报错
2024-10-09 01:55:40 [17,907ms] [Error] [omni.ext._impl.custom_importer] Failed to import python module script_files_python. Error: No module named ‘script_files_python’. Traceback:
Traceback (most recent call last):
File “/home/arnold/.local/share/ov/pkg/isaac-sim-4.2.0/kit/kernel/py/omni/ext/_impl/custom_importer.py”, line 76, in import_module
return importlib.import_module(name)
File “/home/arnold/.local/share/ov/pkg/isaac-sim-4.2.0/kit/python/lib/python3.10/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1050, in _gcd_import
File “”, line 1027, in _find_and_load
File “”, line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named ‘script_files_python’

2024-10-09 01:55:40 [17,907ms] [Error] [carb.scripting-python.plugin] Exception: Extension python module: ‘script_files_python’ in ‘/home/arnold/Develop/omni_ext_scripts/config’ failed to load.

At:
/home/arnold/.local/share/ov/pkg/isaac-sim-4.2.0/kit/kernel/py/omni/ext/_impl/_internal.py(213): startup
/home/arnold/.local/share/ov/pkg/isaac-sim-4.2.0/kit/kernel/py/omni/ext/_impl/_internal.py(328): startup_extension
PythonExtension.cpp::startup()(2):
/home/arnold/.local/share/ov/pkg/isaac-sim-4.2.0/extscache/omni.kit.window.extensions-1.4.11+10a4b5c0/omni/kit/window/extensions/ext_commands.py(33): do
/home/arnold/.local/share/ov/pkg/isaac-sim-4.2.0/extscache/omni.kit.commands-1.4.9+10a4b5c0.lx64.r.cp310/omni/kit/undo/undo.py(80): execute
/home/arnold/.local/share/ov/pkg/isaac-sim-4.2.0/extscache/omni.kit.commands-1.4.9+10a4b5c0.lx64.r.cp310/omni/kit/commands/command.py(463): execute
/home/arnold/.local/share/ov/pkg/isaac-sim-4.2.0/extscache/omni.kit.window.extensions-1.4.11+10a4b5c0/omni/kit/window/extensions/common.py(481): toggle_extension
/home/arnold/.local/share/ov/pkg/isaac-sim-4.2.0/extscache/omni.kit.window.extensions-1.4.11+10a4b5c0/omni/kit/window/extensions/ext_components.py(110): toggle

2024-10-09 01:55:40 [17,907ms] [Error] [omni.ext.plugin] [ext: config-1.0.0] Failed to startup python extension.

版本 4.2.0 系统Ubuntu 22.04

Hi ArnoldKKK,
是否可以详细描述下复现步骤?我们需要复现下问题,另外guide有个extension的例子 Writing a Custom Python Extension,按照这个步骤可以试试是否可以增加新的extension。
Isaac Sim Workflows — Omniverse IsaacSim latest documentation (nvidia.com)

使用Generate Extension Templates
image
生成 UI Component Library
image
设置拓展路径并激活后就会报这个错误。我在Win和ubuntu都测试了,错误一样