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(
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
the error came as following:
Traceback (most recent call last):
File “”, line 12, in
File “isaacgym/IsaacGymEnvs/isaacgymenvs/”, line 27, in make
from isaacgymenvs.utils.rlgames_utils import get_rlgames_env_creator
File “isaacgym/IsaacGymEnvs/isaacgymenvs/utils/”, line 40, in
from isaacgymenvs.tasks import isaacgym_task_map
File “/data/ML_document/isaacgym/IsaacGymEnvs/isaacgymenvs/tasks/”, line 29, in
from .ant import Ant
File “/isaacgym/IsaacGymEnvs/isaacgymenvs/tasks/”, line 33, in
from isaacgym import gymtorch
File “/Conda/envs/isaac/lib/python3.7/site-packages/isaacgym/”, line 109, in
File “Conda/envs/isaac/lib/python3.7/site-packages/isaacgym/”, 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/”, line 1296, in load
File “/Conda/envs/isaac/lib/python3.7/site-packages/torch/utils/”, line 1474, in _jit_compile
File “/Conda/envs/isaac/lib/python3.7/site-packages/torch/utils/”, 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/”, 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