isaac-sim/IsaacGymEnvs

When trying the cartpole example it tries to access gymtorch.cpp which doesn't exist in the isaac gym distrubution.

Closed this issue · 1 comments

I am using the latest Cuda=11.7

python train.py task=Cartpole

Importing module 'gym_38' (/home/bizon/anaconda3/envs/rlquad/lib/python3.8/site-packages/isaacgym/_bindings/linux-x86_64/gym_38.so)
Setting GYM_USD_PLUG_INFO_PATH to /home/bizon/anaconda3/envs/rlquad/lib/python3.8/site-packages/isaacgym/_bindings/linux-x86_64/usd/plugInfo.json
Warning: Gym version v0.24.1 has a number of critical issues with gym.make such that environment observation and action spaces are incorrectly evaluated, raising incorrect errors and warning . It is recommend to downgrading to v0.23.1 or upgrading to v0.25.1
train.py:49: UserWarning:
The version_base parameter is not specified.
Please specify a compatability version level, or None.
Will assume defaults for version 1.1
@hydra.main(config_name="config", config_path="./cfg")
/home/bizon/anaconda3/envs/rlquad/lib/python3.8/site-packages/hydra/_internal/defaults_list.py:251: UserWarning: In 'config': Defaults list is missing _self_. See https://hydra.cc/docs/1.2/upgrades/1.0_to_1.1/default_composition_order for more information
warnings.warn(msg, UserWarning)
/home/bizon/anaconda3/envs/rlquad/lib/python3.8/site-packages/hydra/_internal/defaults_list.py:415: UserWarning: In config: Invalid overriding of hydra/job_logging:
Default list overrides requires 'override' keyword.
See https://hydra.cc/docs/1.2/upgrades/1.0_to_1.1/defaults_list_override for more information.

deprecation_warning(msg)
/home/bizon/anaconda3/envs/rlquad/lib/python3.8/site-packages/hydra/_internal/hydra.py:119: UserWarning: Future Hydra versions will no longer change working directory at job runtime by default.
See https://hydra.cc/docs/1.2/upgrades/1.1_to_1.2/changes_to_job_working_dir/ for more information.
ret = run_job(
/home/bizon/anaconda3/envs/rlquad/lib/python3.8/site-packages/pkg_resources/init.py:121: DeprecationWarning: pkg_resources is deprecated as an API
warnings.warn("pkg_resources is deprecated as an API", DeprecationWarning)
/home/bizon/anaconda3/envs/rlquad/lib/python3.8/site-packages/pkg_resources/init.py:2870: DeprecationWarning: Deprecated call to pkg_resources.declare_namespace('google').
Implementing implicit namespace packages (as specified in PEP 420) is preferred to pkg_resources.declare_namespace. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
declare_namespace(pkg)
PyTorch version 1.13.1
Device count 2
/home/bizon/anaconda3/envs/rlquad/lib/python3.8/site-packages/isaacgym/_bindings/src/gymtorch
Using /home/bizon/.cache/torch_extensions/py38_cu117 as PyTorch extensions root...
Error executing job with overrides: ['task=Cartpole']
Traceback (most recent call last):
File "train.py", line 51, in launch_rlg_hydra
from isaacgymenvs.utils.rlgames_utils import RLGPUEnv, RLGPUAlgoObserver, get_rlgames_env_creator
File "/home/bizon/eric/IsaacGymEnvs-main/isaacgymenvs/utils/rlgames_utils.py", line 37, in
from isaacgymenvs.tasks import isaacgym_task_map
File "/home/bizon/eric/IsaacGymEnvs-main/isaacgymenvs/tasks/init.py", line 30, in
from .ant import Ant
File "/home/bizon/eric/IsaacGymEnvs-main/isaacgymenvs/tasks/ant.py", line 33, in
from isaacgym import gymtorch
File "/home/bizon/anaconda3/envs/rlquad/lib/python3.8/site-packages/isaacgym/gymtorch.py", line 109, in
_import_gymtorch()
File "/home/bizon/anaconda3/envs/rlquad/lib/python3.8/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 "/home/bizon/anaconda3/envs/rlquad/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1284, in load
return _jit_compile(
File "/home/bizon/anaconda3/envs/rlquad/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1467, in _jit_compile
version = JIT_EXTENSION_VERSIONER.bump_version_if_changed(
File "/home/bizon/anaconda3/envs/rlquad/lib/python3.8/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 "/home/bizon/anaconda3/envs/rlquad/lib/python3.8/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: '/home/bizon/anaconda3/envs/rlquad/lib/python3.8/site-packages/isaacgym/_bindings/src/gymtorch/gymtorch.cpp'

From what I can tell conda has a _bindings directory for issacgym that differs from the one from the actual distribution. I could make a symbolic link in the anaconda _bindings directory to the repository but it seems like a kludge. Anyone else see this problem and know the correct fix?

Hi, i also have this problem, did you solve it? Thank you.