Python joint_monkey.py ImportError: libpython3.7m.so.1.0:

I have ubuntu 20.04
When I try run the example joint_monkey.py:

(rlgpu) dmitriy@dmitriy:~/isaacgym/python/examples$ python joint_monkey.py
Importing module 'gym_37' (/home/dmitriy/isaacgym/python/isaacgym/_bindings/linux-x86_64/gym_37.so)
Traceback (most recent call last):
  File "joint_monkey.py", line 19, in <module>
    from isaacgym import gymapi, gymutil
  File "/home/dmitriy/isaacgym/python/isaacgym/__init__.py", line 5, in <module>
    from isaacgym import gymapi
  File "/home/dmitriy/isaacgym/python/isaacgym/gymapi.py", line 104, in <module>
    _import_active_version()
  File "/home/dmitriy/isaacgym/python/isaacgym/gymapi.py", line 63, in _import_active_version
    module = importlib.import_module(package_path)
  File "/home/dmitriy/miniconda3/envs/rlgpu/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
ImportError: libpython3.7m.so.1.0: cannot open shared object file: No such file or directory

I improve it by run :sudo apt-get install libpython3.7, but I have this error when running:

/buildAgent/work/45f70df4210b2e3e/source/physx/src/NpScene.cpp (2869) : internal error : PhysX Internal CUDA error. Simulation can not continue!

/buildAgent/work/45f70df4210b2e3e/source/physx/src/NpScene.cpp (3175) : invalid operation : PxScene::fetchResults: fetchResults() called illegally! It must be called after advance() or simulate()

[Error] [carb.gym.plugin] Gym cuda error: an illegal memory access was encountered: ../../../source/plugins/carb/gym/impl/Gym/GymPhysX.cpp: 3362
[Error] [carb.gym.plugin] Gym cuda error: an illegal memory access was encountered: ../../../source/plugins/carb/gym/impl/Gym/GymPhysX.cpp: 3428
[Error] [carb.gym.plugin] Gym cuda error: an illegal memory access was encountered: ../../../source/plugins/carb/gym/impl/Gym/GymPhysX.cpp: 3492
[Error] [carb.gym.plugin] Gym cuda error: an illegal memory access was encountered: ../../../source/plugins/carb/gym/impl/Gym/GymPhysX.cpp: 3336

But when I run export LD_LIBRARY_PATH=/home/xyz/anaconda3/envs/rlgpu/lib program worked correct.

2 Likes

same for me (also in ubuntu 18.04) except after sudo apt-get install libpython3.7 i kept getting that same initial error message (…No such file or directory)

2 Likes

When I read the /docs/install.html carefully, I find that

export LD_LIBRARY_PATH=/home/xyz/anaconda3/envs/rlgpu/lib

will be helpful.

However, I met another problem:

Importing module ‘gym_37’ (/root/isaacgym/python/isaacgym/_bindings/linux-x86_64/gym_37.so)
Setting GYM_USD_PLUG_INFO_PATH to /root/isaacgym/python/isaacgym/_bindings/linux-x86_64/usd/plugInfo.json
WARNING: Forcing CPU pipeline.
Not connected to PVD
+++ Using GPU PhysX
Physics Engine: PhysX
Physics Device: cuda:0
GPU Pipeline: disabled
Segmentation fault (core dumped)

Is there any method to cope with this problem?

BTW, my device is NVIDIA A100 40GB PCIe GPU Accelerator.
Can it be used in Isaac Gym?