Sub

Hi i try to test isaac gym
the joint_monkey example is well executed
but when i tried franka_cube_ik_osc.py the problem is occured
i want to know what is problem

$ python franka_cube_ik_osc.py
Importing module 'gym_38' (/home/seok2/isaacgym/python/isaacgym/_bindings/linux-x86_64/gym_38.so)
Setting GYM_USD_PLUG_INFO_PATH to /home/seok2/isaacgym/python/isaacgym/_bindings/linux-x86_64/usd/plugInfo.json
PyTorch version 1.10.0+cu113
Device count 1
/home/seok2/isaacgym/python/isaacgym/_bindings/src/gymtorch
Using /home/seok2/.cache/torch_extensions/py38_cu113 as PyTorch extensions root...
Traceback (most recent call last):
  File "franka_cube_ik_osc.py", line 18, in <module>
    from isaacgym import gymtorch
  File "/home/seok2/isaacgym/python/isaacgym/gymtorch.py", line 109, in <module>
    _import_gymtorch()
  File "/home/seok2/isaacgym/python/isaacgym/gymtorch.py", line 45, in _import_gymtorch
    gt = torch.utils.cpp_extension.load(name="gymtorch", sources=sources, extra_cflags=cflags, verbose=True)
  File "/home/seok2/anaconda3/envs/rlstudy/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1124, in load
    return _jit_compile(
  File "/home/seok2/anaconda3/envs/rlstudy/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1337, in _jit_compile
    _write_ninja_file_and_build_library(
  File "/home/seok2/anaconda3/envs/rlstudy/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1423, in _write_ninja_file_and_build_library
    check_compiler_abi_compatibility(compiler)
  File "/home/seok2/anaconda3/envs/rlstudy/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 294, in check_compiler_abi_compatibility
    if not check_compiler_ok_for_platform(compiler):
  File "/home/seok2/anaconda3/envs/rlstudy/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 254, in check_compiler_ok_for_platform
    which = subprocess.check_output(['which', compiler], stderr=subprocess.STDOUT)
  File "/home/seok2/anaconda3/envs/rlstudy/lib/python3.8/subprocess.py", line 415, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/home/seok2/anaconda3/envs/rlstudy/lib/python3.8/subprocess.py", line 516, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['which', 'c++']' returned non-zero exit status 1.

Hi @Jung

What is the output of which c++ in your terminal? Do you have it installed? If not, you can install it using sudo apt install build-essential

1 Like

It works!! thank you so much!

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