Isaac Sim Version
4.2.0
Operating System
Ubuntu 24.10
Topic Description
I currently try to compile/import the pybind example extension to include a C++ lib into IsaacSim. The compilation does work (after removing the tests), but on extension activation a “ModuleNotFoundError: No module named ‘omni.example’” prevents the extension from loading.
Detailed Description
I pulled the cpp extension repo and removed everything except this kit-extension-template-cpp/source/extensions/omni.example.cpp.pybind at main · NVIDIA-Omniverse/kit-extension-template-cpp · GitHub extension. Other extensions did not compile and as I do not need them, I skipped them.
The extension compilation was successful after I removed the test cases, because the fixture generation reported an invalid memory access.
The extension can be found in the IsaacSim extension explorer and the enable switch turns green, but with a red alert. The error in the terminal showed the error from above.
Steps to Reproduce
- Pull the latest kit-extension-cpp main
- remove everything except the pybind extension
- remove the test cases (also in premake)
- compile
- start isaac sim with the pybind extension as --ext start argument
- activate extension in ext explorer
- red alert + error in terminal
Error Messages
2025-01-20 20:29:01 [546,326ms] [Error] [omni.ext._impl.custom_importer] Failed to import python module omni.example.cpp.pybind. Error: No module named 'omni.example'. Traceback:
Traceback (most recent call last):
File "/home/vincent/.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/vincent/.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 "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'omni.example'