Cannot import omni.isaac.core

I can sucessfully import omni.isaac.gym with no errors. But I’m getting the following error when I tried to import omni.isaac.core.

The only thing in python script (helloword.py) is:
import omni.isaac.core.omni.isaac as core

The way I run the code is (PYTHON_PAHT =[omni_pkg]/python.sh):
$PYTHON_PATH helloword.py

I got the following error:

Traceback (most recent call last):
File “helloworld.py”, line 2, in
import omni.isaac.core.omni.isaac as core
File “/home/qingyu/.local/share/ov/pkg/isaac_sim-2022.2.0/exts/omni.isaac.core/omni/isaac/core/init.py”, line 9, in
from omni.isaac.core.physics_context.physics_context import PhysicsContext
File “/home/qingyu/.local/share/ov/pkg/isaac_sim-2022.2.0/exts/omni.isaac.core/omni/isaac/core/physics_context/init.py”, line 9, in
from omni.isaac.core.physics_context.physics_context import PhysicsContext
File “/home/qingyu/.local/share/ov/pkg/isaac_sim-2022.2.0/exts/omni.isaac.core/omni/isaac/core/physics_context/physics_context.py”, line 12, in
from pxr import Usd, UsdGeom, Gf, Sdf, UsdPhysics, PhysxSchema, UsdShade
File “/home/qingyu/.local/share/ov/pkg/isaac_sim-2022.2.0/kit/extscore/omni.usd.libs/pxr/Usd/init.py”, line 24, in
from . import _usd
ImportError: libusd.so: cannot open shared object file: No such file or directory
There was an error running python

Do anyone know how to solve it?

Hi @xiaoqingyu0113

This post may help:

3 Likes

Thanks! It works!

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