Can't run Python cartpole_example.py ImportError: undefined symbol

I have followed all steps in Isaac Gym tutorial but failed at step 3 “Creating New RL Environment” (6. Custom RL Example using Stable Baselines — Omniverse Robotics documentation). I got an error while importing something packages:

File “cartpole_example.py”, line 4, in
from cartpole_task import CartpoleTask
File “/home/xa/Desktop/XA/omniverse_lib/isaac_sim-2022.1.0/cartpole_task.py”, line 3, in
from omni.isaac.core.utils.nucleus import get_assets_root_path
File “/home/xa/Desktop/XA/omniverse_lib/isaac_sim-2022.1.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/xa/Desktop/XA/omniverse_lib/isaac_sim-2022.1.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/xa/Desktop/XA/omniverse_lib/isaac_sim-2022.1.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/xa/Desktop/XA/omniverse_lib/isaac_sim-2022.1.0/kit/extscore/omni.usd.libs/pxr/Usd/init.py”, line 24, in
from . import _usd
ImportError: /home/liuqixuan/Desktop/XA/omniverse_lib/isaac_sim-2022.1.0/kit/extscore/omni.usd.libs/bin/libjs.so: undefined symbol: _ZN32pxrInternal_v0_20__pxrReserved__18Tf_PostErrorHelperERKNS_13TfCallContextENS_16TfDiagnosticTypeEPKcz

I’m using anaconda python environment and successfully created and activated isaac-sim environment (step 4.5. Advanced: Running with Anaconda )

Does anyone have any ideas?

Seems similar to this error, you can refer here

In addition, if you use the external environment

Here is a temporary solution.
Open this script:

omniisaacgymenvs/utlis/config_utlis/path_utils.py

comment import omni.client on line 32.
But this is not a perfect solution, you will not be able to load checkpoints. Waiting for the official solution.

1 Like

Many thanks!

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