FileNotFoundError: [Errno 2] No such file or directory: isaacgym/_bindings/src/gymtorc

I download the Isaac Gym Preview 4 release from the website, then follow the installation instructions in the documentation using a conda environment to simplify set up. The Isaac Gym works on my system well when running one of the examples from the python/examples directory. Then I installed the Isaacgymenvs from the website, But when I created the environment using the code in repo:
“”"
import isaacgym
import isaacgymenvs
import torch

num_envs = 2000

envs = isaacgymenvs.make(
seed=0,
task=“Ant”,
num_envs=num_envs,
sim_device=“cuda:0”,
rl_device=“cuda:0”,
)
print(“Observation space is”, envs.observation_space)
print(“Action space is”, envs.action_space)
obs = envs.reset()
for _ in range(20):
random_actions = 2.0 * torch.rand((num_envs,) + envs.action_space.shape, device = ‘cuda:0’) - 1.0
envs.step(random_actions)
“”"
the error came as following:
Traceback (most recent call last):
File “exam_envs_isaacgym.py”, line 12, in
rl_device=“cuda:0”,
File “isaacgym/IsaacGymEnvs/isaacgymenvs/init.py”, line 27, in make
from isaacgymenvs.utils.rlgames_utils import get_rlgames_env_creator
File “isaacgym/IsaacGymEnvs/isaacgymenvs/utils/rlgames_utils.py”, line 40, in
from isaacgymenvs.tasks import isaacgym_task_map
File “/data/ML_document/isaacgym/IsaacGymEnvs/isaacgymenvs/tasks/init.py”, line 29, in
from .ant import Ant
File “/isaacgym/IsaacGymEnvs/isaacgymenvs/tasks/ant.py”, line 33, in
from isaacgym import gymtorch
File “/Conda/envs/isaac/lib/python3.7/site-packages/isaacgym/gymtorch.py”, line 109, in
_import_gymtorch()
File “Conda/envs/isaac/lib/python3.7/site-packages/isaacgym/gymtorch.py”, line 45, in _import_gymtorch
gt = torch.utils.cpp_extension.load(name=“gymtorch”, sources=sources, extra_cflags=cflags, verbose=True)
File “/Conda/envs/isaac/lib/python3.7/site-packages/torch/utils/cpp_extension.py”, line 1296, in load
keep_intermediates=keep_intermediates)
File “/Conda/envs/isaac/lib/python3.7/site-packages/torch/utils/cpp_extension.py”, line 1474, in _jit_compile
is_standalone=is_standalone,
File “/Conda/envs/isaac/lib/python3.7/site-packages/torch/utils/_cpp_extension_versioner.py”, line 45, in bump_version_if_changed
hash_value = hash_source_files(hash_value, source_files)
File “Conda/envs/isaac/lib/python3.7/site-packages/torch/utils/_cpp_extension_versioner.py”, line 15, in hash_source_files
with open(filename) as file:
FileNotFoundError: [Errno 2] No such file or directory: ‘Conda/envs/isaac/lib/python3.7/site-packages/isaacgym/_bindings/src/gymtorch/gymtorch.cpp’

The same question, have you solved it?

Fixed! It’s in the original isaacgym. isaacgym/python/isaacgym/_bindings/src/gymtorch/gymtorch.cpp

1 Like

so, just need to copy this file to the conda envs file path? thank you!