Cad Converter Failed to Import Python Module

I am attempting to load the extension Cad Converter on a fresh install of isaac sim using the omniverse app image tool. After enabling the Cad Converter extension using the Window->Extensions pane I see an error in the pop-up terminal when you launch Isaac Sim:

The first seems to relate to Cad Converter Core:
2023-12-20 13:26:12 [5,164ms] [Error] [omni.ext._impl.custom_importer] Failed to import python module omni.kit.converter.cad_core. Error: cannot import name ‘strip_file_regex’ from ‘omni.kit.converter.common’ (/home/pkohler/.local/share/ov/pkg/isaac_sim-2023.1.1/extscache/omni.kit.converter.common-200.1.0-rc.4+105.1/omni/kit/converter/common/init.py). Traceback:
Traceback (most recent call last):
File “/home/pkohler/.local/share/ov/pkg/isaac_sim-2023.1.1/kit/kernel/py/omni/ext/_impl/custom_importer.py”, line 76, in import_module
return importlib.import_module(name)
File “/home/pkohler/.local/share/ov/pkg/isaac_sim-2023.1.1/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 1006, in _find_and_load_unlocked
File “”, line 688, in _load_unlocked
File “”, line 883, in exec_module
File “”, line 241, in _call_with_frames_removed
File “/home/pkohler/.local/share/ov/data/Kit/Isaac-Sim/2023.1/exts/3/omni.kit.converter.cad_core-200.1.1-rc.10+105.1.lx64.r.cp310/omni/kit/converter/cad_core/init.py”, line 6, in
from ._impl.extension import *
File “/home/pkohler/.local/share/ov/data/Kit/Isaac-Sim/2023.1/exts/3/omni.kit.converter.cad_core-200.1.1-rc.10+105.1.lx64.r.cp310/omni/kit/converter/cad_core/_impl/init.py”, line 1, in
from .extension import *
File “/home/pkohler/.local/share/ov/data/Kit/Isaac-Sim/2023.1/exts/3/omni.kit.converter.cad_core-200.1.1-rc.10+105.1.lx64.r.cp310/omni/kit/converter/cad_core/_impl/extension.py”, line 8, in
from .cad_converter_helper import CadConverterHelper
File “/home/pkohler/.local/share/ov/data/Kit/Isaac-Sim/2023.1/exts/3/omni.kit.converter.cad_core-200.1.1-rc.10+105.1.lx64.r.cp310/omni/kit/converter/cad_core/_impl/cad_converter_helper.py”, line 14, in
from omni.kit.converter.common import ConverterStatus, OmniClientWrapper, OmniUrl, strip_file_regex
ImportError: cannot import name ‘strip_file_regex’ from ‘omni.kit.converter.common’ (/home/pkohler/.local/share/ov/pkg/isaac_sim-2023.1.1/extscache/omni.kit.converter.common-200.1.0-rc.4+105.1/omni/kit/converter/common/init.py)

2023-12-20 13:26:12 [5,164ms] [Error] [carb.scripting-python.plugin] Exception: Extension python module: ‘omni.kit.converter.cad_core’ in ‘/home/pkohler/.local/share/ov/data/Kit/Isaac-Sim/2023.1/exts/3/omni.kit.converter.cad_core-200.1.1-rc.10+105.1.lx64.r.cp310’ failed to load.

At:
/home/pkohler/.local/share/ov/pkg/isaac_sim-2023.1.1/kit/kernel/py/omni/ext/_impl/_internal.py(213): startup
/home/pkohler/.local/share/ov/pkg/isaac_sim-2023.1.1/kit/kernel/py/omni/ext/_impl/_internal.py(328): startup_extension
PythonExtension.cpp::startup()(2):

2023-12-20 13:26:12 [5,164ms] [Error] [omni.ext.plugin] [ext: omni.kit.converter.cad_core-200.1.1-rc.10] Failed to startup python extension.

The second seems to relate to Cad Converter:
2023-12-20 13:26:13 [5,405ms] [Error] [omni.ext._impl.custom_importer] Failed to import python module omni.kit.converter.cad. Error: cannot import name ‘strip_file_regex’ from ‘omni.kit.converter.common’ (/home/pkohler/.local/share/ov/pkg/isaac_sim-2023.1.1/extscache/omni.kit.converter.common-200.1.0-rc.4+105.1/omni/kit/converter/common/init.py). Traceback:
Traceback (most recent call last):
File “/home/pkohler/.local/share/ov/pkg/isaac_sim-2023.1.1/kit/kernel/py/omni/ext/_impl/custom_importer.py”, line 76, in import_module
return importlib.import_module(name)
File “/home/pkohler/.local/share/ov/pkg/isaac_sim-2023.1.1/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 1006, in _find_and_load_unlocked
File “”, line 688, in _load_unlocked
File “”, line 883, in exec_module
File “”, line 241, in _call_with_frames_removed
File “/home/pkohler/.local/share/ov/data/Kit/Isaac-Sim/2023.1/exts/3/omni.kit.converter.cad-200.1.1-rc.8+105.1/omni/kit/converter/cad/init.py”, line 1, in
from .extension import *
File “/home/pkohler/.local/share/ov/data/Kit/Isaac-Sim/2023.1/exts/3/omni.kit.converter.cad-200.1.1-rc.8+105.1/omni/kit/converter/cad/extension.py”, line 6, in
from omni.kit.converter.cad_core import CAD_CORE_FILTER_DATA, DGN_CORE_FILTER_DATA
File “/home/pkohler/.local/share/ov/data/Kit/Isaac-Sim/2023.1/exts/3/omni.kit.converter.cad_core-200.1.1-rc.10+105.1.lx64.r.cp310/omni/kit/converter/cad_core/init.py”, line 6, in
from ._impl.extension import *
File “/home/pkohler/.local/share/ov/data/Kit/Isaac-Sim/2023.1/exts/3/omni.kit.converter.cad_core-200.1.1-rc.10+105.1.lx64.r.cp310/omni/kit/converter/cad_core/_impl/init.py”, line 1, in
from .extension import *
File “/home/pkohler/.local/share/ov/data/Kit/Isaac-Sim/2023.1/exts/3/omni.kit.converter.cad_core-200.1.1-rc.10+105.1.lx64.r.cp310/omni/kit/converter/cad_core/_impl/extension.py”, line 8, in
from .cad_converter_helper import CadConverterHelper
File “/home/pkohler/.local/share/ov/data/Kit/Isaac-Sim/2023.1/exts/3/omni.kit.converter.cad_core-200.1.1-rc.10+105.1.lx64.r.cp310/omni/kit/converter/cad_core/_impl/cad_converter_helper.py”, line 14, in
from omni.kit.converter.common import ConverterStatus, OmniClientWrapper, OmniUrl, strip_file_regex
ImportError: cannot import name ‘strip_file_regex’ from ‘omni.kit.converter.common’ (/home/pkohler/.local/share/ov/pkg/isaac_sim-2023.1.1/extscache/omni.kit.converter.common-200.1.0-rc.4+105.1/omni/kit/converter/common/init.py)

2023-12-20 13:26:13 [5,405ms] [Error] [carb.scripting-python.plugin] Exception: Extension python module: ‘omni.kit.converter.cad’ in ‘/home/pkohler/.local/share/ov/data/Kit/Isaac-Sim/2023.1/exts/3/omni.kit.converter.cad-200.1.1-rc.8+105.1’ failed to load.

At:
/home/pkohler/.local/share/ov/pkg/isaac_sim-2023.1.1/kit/kernel/py/omni/ext/_impl/_internal.py(213): startup
/home/pkohler/.local/share/ov/pkg/isaac_sim-2023.1.1/kit/kernel/py/omni/ext/_impl/_internal.py(328): startup_extension
PythonExtension.cpp::startup()(2):

2023-12-20 13:26:13 [5,405ms] [Error] [omni.ext.plugin] [ext: omni.kit.converter.cad-200.1.1-rc.8] Failed to startup python extension.

Any help on how to resolve this dependency issue would be thoroughly appreciated. If you need any more information please let me know.

Thank you!

1 Like

Bump! Any ideas? Should I try an older version of isaac sim?

1 Like

I have forwarded this question to right PIC, he should be able to look into this and get back to you.

I imported STEP file from Linux machine and it was ok. Then I found out that I can update the CAD importer and it failed to update. Here is the screenshot:


When I hover over red triangle it says "Failed to solve extension".
After this, I can’t import STEP files anymore. Looks like STEP importer fails: here is a piece of log while loading:

2024-02-11 19:51:02 [23,329ms] [Error] [omni.ext._impl.custom_importer] Failed to import python module omni.kit.converter.cad_core. Error: cannot import name 'strip_file_regex' from 'omni.kit.converter.common' (/home/pkoprov/.local/share/ov/pkg/isaac_sim-2023.1.1/extscache/omni.kit.converter.common-200.1.0-rc.4+105.1/omni/kit/converter/common/__init__.py). Traceback:
Traceback (most recent call last):
  File "/home/pkoprov/.local/share/ov/pkg/isaac_sim-2023.1.1/kit/kernel/py/omni/ext/_impl/custom_importer.py", line 76, in import_module
    return importlib.import_module(name)
  File "/home/pkoprov/.local/share/ov/pkg/isaac_sim-2023.1.1/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 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/home/pkoprov/.local/share/ov/data/Kit/Isaac-Sim/2023.1/exts/3/omni.kit.converter.cad_core-200.1.1-rc.10+105.1.lx64.r.cp310/omni/kit/converter/cad_core/__init__.py", line 6, in <module>
    from ._impl.extension import *
  File "/home/pkoprov/.local/share/ov/data/Kit/Isaac-Sim/2023.1/exts/3/omni.kit.converter.cad_core-200.1.1-rc.10+105.1.lx64.r.cp310/omni/kit/converter/cad_core/_impl/__init__.py", line 1, in <module>
    from .extension import *
  File "/home/pkoprov/.local/share/ov/data/Kit/Isaac-Sim/2023.1/exts/3/omni.kit.converter.cad_core-200.1.1-rc.10+105.1.lx64.r.cp310/omni/kit/converter/cad_core/_impl/extension.py", line 8, in <module>
    from .cad_converter_helper import CadConverterHelper
  File "/home/pkoprov/.local/share/ov/data/Kit/Isaac-Sim/2023.1/exts/3/omni.kit.converter.cad_core-200.1.1-rc.10+105.1.lx64.r.cp310/omni/kit/converter/cad_core/_impl/cad_converter_helper.py", line 14, in <module>
    from omni.kit.converter.common import ConverterStatus, OmniClientWrapper, OmniUrl, strip_file_regex
ImportError: cannot import name 'strip_file_regex' from 'omni.kit.converter.common' (/home/pkoprov/.local/share/ov/pkg/isaac_sim-2023.1.1/extscache/omni.kit.converter.common-200.1.0-rc.4+105.1/omni/kit/converter/common/__init__.py)

2024-02-11 19:51:02 [23,329ms] [Error] [carb.scripting-python.plugin] Exception: Extension python module: 'omni.kit.converter.cad_core' in '/home/pkoprov/.local/share/ov/data/Kit/Isaac-Sim/2023.1/exts/3/omni.kit.converter.cad_core-200.1.1-rc.10+105.1.lx64.r.cp310' failed to load.

At:
  /home/pkoprov/.local/share/ov/pkg/isaac_sim-2023.1.1/kit/kernel/py/omni/ext/_impl/_internal.py(213): startup
  /home/pkoprov/.local/share/ov/pkg/isaac_sim-2023.1.1/kit/kernel/py/omni/ext/_impl/_internal.py(328): startup_extension
  PythonExtension.cpp::startup()(2): <module>

2024-02-11 19:51:02 [23,329ms] [Error] [omni.ext.plugin] [ext: omni.kit.converter.cad_core-200.1.1-rc.10] Failed to startup python extension.
[23.752s] [ext: semantics.schema.editor-0.3.4] startup
[23.756s] [ext: omni.kit.menu.common-1.1.4] startup
[23.759s] [ext: omni.kit.quicklayout-1.0.5] startup
[23.761s] [ext: omni.anim.retarget.ui-105.1.4] startup
[23.769s] [ext: omni.kit.window.title-1.1.3] startup
[23.771s] [ext: semantics.schema.property-1.0.2] startup
[23.774s] [ext: omni.kit.converter.cad-200.1.1-rc.8] startup
2024-02-11 19:51:02 [23,754ms] [Error] [omni.ext._impl.custom_importer] Failed to import python module omni.kit.converter.cad. Error: cannot import name 'strip_file_regex' from 'omni.kit.converter.common' (/home/pkoprov/.local/share/ov/pkg/isaac_sim-2023.1.1/extscache/omni.kit.converter.common-200.1.0-rc.4+105.1/omni/kit/converter/common/__init__.py). Traceback:
Traceback (most recent call last):
  File "/home/pkoprov/.local/share/ov/pkg/isaac_sim-2023.1.1/kit/kernel/py/omni/ext/_impl/custom_importer.py", line 76, in import_module
    return importlib.import_module(name)
  File "/home/pkoprov/.local/share/ov/pkg/isaac_sim-2023.1.1/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 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/home/pkoprov/.local/share/ov/data/Kit/Isaac-Sim/2023.1/exts/3/omni.kit.converter.cad-200.1.1-rc.8+105.1/omni/kit/converter/cad/__init__.py", line 1, in <module>
    from .extension import *
  File "/home/pkoprov/.local/share/ov/data/Kit/Isaac-Sim/2023.1/exts/3/omni.kit.converter.cad-200.1.1-rc.8+105.1/omni/kit/converter/cad/extension.py", line 6, in <module>
    from omni.kit.converter.cad_core import CAD_CORE_FILTER_DATA, DGN_CORE_FILTER_DATA
  File "/home/pkoprov/.local/share/ov/data/Kit/Isaac-Sim/2023.1/exts/3/omni.kit.converter.cad_core-200.1.1-rc.10+105.1.lx64.r.cp310/omni/kit/converter/cad_core/__init__.py", line 6, in <module>
    from ._impl.extension import *
  File "/home/pkoprov/.local/share/ov/data/Kit/Isaac-Sim/2023.1/exts/3/omni.kit.converter.cad_core-200.1.1-rc.10+105.1.lx64.r.cp310/omni/kit/converter/cad_core/_impl/__init__.py", line 1, in <module>
    from .extension import *
  File "/home/pkoprov/.local/share/ov/data/Kit/Isaac-Sim/2023.1/exts/3/omni.kit.converter.cad_core-200.1.1-rc.10+105.1.lx64.r.cp310/omni/kit/converter/cad_core/_impl/extension.py", line 8, in <module>
    from .cad_converter_helper import CadConverterHelper
  File "/home/pkoprov/.local/share/ov/data/Kit/Isaac-Sim/2023.1/exts/3/omni.kit.converter.cad_core-200.1.1-rc.10+105.1.lx64.r.cp310/omni/kit/converter/cad_core/_impl/cad_converter_helper.py", line 14, in <module>
    from omni.kit.converter.common import ConverterStatus, OmniClientWrapper, OmniUrl, strip_file_regex
ImportError: cannot import name 'strip_file_regex' from 'omni.kit.converter.common' (/home/pkoprov/.local/share/ov/pkg/isaac_sim-2023.1.1/extscache/omni.kit.converter.common-200.1.0-rc.4+105.1/omni/kit/converter/common/__init__.py)

2024-02-11 19:51:02 [23,754ms] [Error] [carb.scripting-python.plugin] Exception: Extension python module: 'omni.kit.converter.cad' in '/home/pkoprov/.local/share/ov/data/Kit/Isaac-Sim/2023.1/exts/3/omni.kit.converter.cad-200.1.1-rc.8+105.1' failed to load.

At:
  /home/pkoprov/.local/share/ov/pkg/isaac_sim-2023.1.1/kit/kernel/py/omni/ext/_impl/_internal.py(213): startup
  /home/pkoprov/.local/share/ov/pkg/isaac_sim-2023.1.1/kit/kernel/py/omni/ext/_impl/_internal.py(328): startup_extension
  PythonExtension.cpp::startup()(2): <module>

2024-02-11 19:51:02 [23,754ms] [Error] [omni.ext.plugin] [ext: omni.kit.converter.cad-200.1.1-rc.8] Failed to startup python extension.
[24.180s] [ext: omni.kit.quicksearch.menu-0.8.7] startup
[24.183s] [ext: omni.isaac.occupancy_map-0.3.2] startup
[24.205s] [ext: omni.importer.mjcf-1.1.0] startup
[24.217s] [ext: omni.anim.retarget.bundle-105.1.1] startup
[24.221s] [ext: omni.isaac.app.setup-0.11.2] startup
2024-02-11 19:51:03 [24,200ms] [Warning] [omni.kit.app._impl] carb.imgui is deprecated. Use omni.kit.imgui instead.
[24.222s] Isaac Sim Version: 2023.1.1-rc.8
[24.223s] Writing Isaac Sim icon file
[24.226s] [ext: omni.kit.window.stats-0.1.4] startup
[24.228s] [ext: omni.isaac.assets_check-0.3.3] startup
[24.231s] [ext: omni.isaac.sim.base-2023.1.1] startup
[24.232s] [ext: omni.isaac.sim-2023.1.1] startup
2024-02-11 19:51:03 [24,285ms] [Warning] [omni.kit.hotkeys.core.registry] [Hotkey] duplicated action as SPACE (On Press) with omni.kit.widget.toolbar.omni.kit.widget.toolbar::toolbar::play!
2024-02-11 19:51:03 [24,285ms] [Warning] [omni.kit.hotkeys.core.registry] [Hotkey] Cannot register Global [omni.kit.widget.toolbar] omni.kit.widget.toolbar::toolbar::play.SPACE, error code: Duplicated action definition
[24.536s] app ready
2024-02-11 19:51:04 [25,112ms] [Warning] [omni.kit.hotkeys.core.registry] [Hotkey] duplicated action as SPACE (On Press) with omni.kit.widget.toolbar.omni.kit.widget.toolbar::toolbar::play!
2024-02-11 19:51:04 [25,112ms] [Warning] [omni.kit.hotkeys.core.registry] [Hotkey] Cannot register Global [omni.kit.widget.toolbar] omni.kit.widget.toolbar::toolbar::play.SPACE, error code: Duplicated action definition
[28.066s] RTX ready
[28.073s] Isaac Sim App is loaded.

I cannot even revert back.