STEP format not available in Omniverse Isaac Sim CAD importer

Hi,
I am following this reference to import a STEP file into omniverse isaac sim. The STEP (.stp) format does not appear in the list of supported formats and the stp files do not appear in the import explorer window. Here’s the list of available formats from the import window.
image
The CAD importer shows as active and up-to-date in the extensions:
image

I am running Isaac Sim 2022.1.0 through omniverse streaming client from the container:

sudo docker run --name isaac-sim --entrypoint bash -it --gpus all -e "ACCEPT_EULA=Y" --rm --network=host -v ~/docker/isaac-sim/cache/kit/nv_shadercache:/isaac-sim/kit/cache/Kit/103.1/73d4ca54/nv_shadercache:rw -v ~/docker/isaac-sim/cache/ov:/root/.cache/ov:rw -v ~/docker/isaac-sim/cache/pip:/root/.cache/pip:rw -v ~/docker/isaac-sim/cache/glcache:/root/.cache/nvidia/GLCache:rw -v ~/docker/isaac-sim/cache/computecache:/root/.nv/ComputeCache:rw -v ~/docker/isaac-sim/logs:/root/.nvidia-omniverse/logs:rw -v ~/docker/isaac-sim/config:/root/.nvidia-omniverse/config:rw -v ~/docker/isaac-sim/data:/root/.local/share/ov/data:rw -v ~/docker/isaac-sim/documents:/root/Documents:rw nvcr.io/nvidia/isaac-sim:2022.1.0

Hi @ombudsthom

It seems to be there is a problem with the omni.kit.imported.cad extension in Isaac Sim 2022.1.0 docker version during loading. That is why the red warning symbol. The error comes from the libfontconfig library

2022-08-28 17:01:31 [13,348ms] [Error] [carb] [Plugin: libomni.kit.importer.cad.plugin.so] Could not load the dynamic library from /isaac-sim/exts/omni.kit.importer.cad-0.3.1+lx64.r.cp37/bin/libomni.kit.
importer.cad.plugin.so. Error: libfontconfig.so.1: cannot open shared object file: No such file or directory                                                                                               
2022-08-28 17:01:31 [13,348ms] [Warning] [carb] Potential plugin preload failed: /isaac-sim/exts/omni.kit.importer.cad-0.3.1+lx64.r.cp37/bin/libomni.kit.importer.cad.plugin.so                            
2022-08-28 17:01:31 [13,348ms] [Error] [omni.ext.plugin] [ext: omni.kit.importer.cad-0.3.1] failed to load native plugin: /isaac-sim/exts/omni.kit.importer.cad-0.3.1+lx64.r.cp37/bin/libomni.kit.importer.
cad.plugin.so                                                                                                                                                                                              
2022-08-28 17:01:31 [13,359ms] [Error] [carb.scripting-python.plugin] RuntimeError: Failed to acquire interface: omni::isaac::cad_importer::CadImporter (pluginName: nullptr)                              
                                                                                                                                                                   
At:                                                                                                                                                                                                        
/isaac-sim/exts/omni.kit.importer.cad-0.3.1+lx64.r.cp37/omni/kit/importer/cad/scripts/cad_importer_helper.py(29): __init__                                                                               
/isaac-sim/exts/omni.kit.importer.cad-0.3.1+lx64.r.cp37/omni/kit/importer/cad/scripts/extension.py(46): on_startup                                                                                       
/isaac-sim/kit/plugins/bindings-python/omni/ext/impl/_internal.py(135): _startup_ext                                                                                                                     
/isaac-sim/kit/plugins/bindings-python/carb/profiler/__init__.py(80): wrapper                                                                                                                            
/isaac-sim/kit/plugins/bindings-python/omni/ext/impl/_internal.py(186): startup                                                                                                                          
/isaac-sim/kit/plugins/bindings-python/omni/ext/impl/_internal.py(268): startup_extension                                                                                                                
PythonExtension.cpp::startup()(2): <module>   

To solve it just install the libfontconfig as follow:

apt-get install libfontconfig

After that, the extension will load correctly and the .STEP will appear on File > Import menu

Note: If you have problems with apt-get inside docker, please, check this post: Isaac Sim container 2022.1.0 problem with "urm.nvidia.com" when launching "./run_all_tests.sh" - #2 by Sheikh_Dawood

Thanks @toni.sm,
I have tried updating my /etc/apt/sources.list accordingly inside my docker container:

deb https://urm.nvidia.com/artifactory/ct-omniverse-approved-debian bionic main
deb http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted
deb http://archive.ubuntu.com/ubuntu/ bionic universe
deb http://archive.ubuntu.com/ubuntu/ bionic-updates universe
deb http://archive.ubuntu.com/ubuntu/ bionic multiverse
deb http://archive.ubuntu.com/ubuntu/ bionic-updates multiverse
deb http://archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ bionic-security main restricted
deb http://security.ubuntu.com/ubuntu/ bionic-security universe
deb http://security.ubuntu.com/ubuntu/ bionic-security multiverse

Unfortunately apt does not locates libfontconfig:

root@ai:/isaac-sim# apt-get install libfontconfig
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libfontconfig

Hi @ombudsthom

Does apt update complete without errors before trying to install libfontconfig?

Also, try removing urm.nvidia.com line from source.list…

Thanks,
I do get errors with apt update that go away when I remove the line with urm.nvidia.com in /etc/apt/sources.list.
But libfontconfig still cannot be found:

root@ai:~$ apt update
Hit:1 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:2 http://security.ubuntu.com/ubuntu bionic-security InRelease
Hit:3 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
18 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@ai:~$ apt-get install libfontconfig
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libfontconfig

Hi @ombudsthom

Try with libfontconfig1 instead

root@user:/isaac-sim# apt-get install libfontconfig
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'libfontconfig1' instead of 'libfontconfig'
libfontconfig1 is already the newest version (2.12.6-0ubuntu2).
0 upgraded, 0 newly installed, 0 to remove and 26 not upgraded.

Thanks @toni.sm,
I get something different with libfontconfig1, but the installation still fails:

root@ai:/isaac-sim# apt install libfontconfig1
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libfontconfig1 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libfontconfig1' has no installation candidate

Hi @ombudsthom

Looking further I have found that libfontconfig1 belongs to pool/main which is not already configured in your source.list

Please, use this configuration:

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://archive.ubuntu.com/ubuntu/ bionic main restricted
# deb-src http://archive.ubuntu.com/ubuntu/ bionic main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted
# deb-src http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu/ bionic universe
# deb-src http://archive.ubuntu.com/ubuntu/ bionic universe
deb http://archive.ubuntu.com/ubuntu/ bionic-updates universe
# deb-src http://archive.ubuntu.com/ubuntu/ bionic-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://archive.ubuntu.com/ubuntu/ bionic multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ bionic multiverse
deb http://archive.ubuntu.com/ubuntu/ bionic-updates multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ bionic-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu bionic partner
# deb-src http://archive.canonical.com/ubuntu bionic partner

deb http://security.ubuntu.com/ubuntu/ bionic-security main restricted
# deb-src http://security.ubuntu.com/ubuntu/ bionic-security main restricted
deb http://security.ubuntu.com/ubuntu/ bionic-security universe
# deb-src http://security.ubuntu.com/ubuntu/ bionic-security universe
deb http://security.ubuntu.com/ubuntu/ bionic-security multiverse
# deb-src http://security.ubuntu.com/ubuntu/ bionic-security multiverse

Thanks @toni.sm, that did the trick!
In summary, each time we launch the 2022.1.0 isaac sim container we must:

  • Replace the /etc/apt/sources.list file with the one you provided.
  • Run apt update
  • Run apt install libfontconfig1

…before launching isaac sim with ./runheadless.native.sh.
Your help was very appreciated.
Have a nice day!

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