IsaacLab icon indicating copy to clipboard operation
IsaacLab copied to clipboard

[Bug Report] gymnasium.error.NameNotFound: Environment `Isaac-PickPlace-GR1T2-WaistEnabled-Abs` doesn't exist.

Open chwenjun225 opened this issue 1 month ago • 7 comments

gymnasium.error.NameNotFound: Environment Isaac-PickPlace-GR1T2-WaistEnabled-Abs doesn't exist.

Describe the bug

IsaacSim get Error gymnasium.error.NameNotFound: Environment `Isaac-PickPlace-GR1T2-WaistEnabled-Abs` doesn't exist., while I run (env_isaaclab) PS C:\projects_workspace\IsaacLab> .\isaaclab.bat -p .\scripts\reinforcement_learning\rsl_rl\train.py --task=Isaac-PickPlace-GR1T2-WaistEnabled-Abs-v0

Steps to reproduce

System Info

Describe the characteristic of my environment:

  • Isaac Sim Version: [e.g. 5.1]
  • OS: [e.g. Windows 11]
  • GPU: [e.g. RTX 4090]
  • CUDA: [e.g. 12.6]
  • GPU Driver: [e.g. 560.94]

Additional context

I checked in source\isaaclab_tasks\isaaclab_tasks\manager_based\manipulation\pick_place\__init__.py, the environment is also registered gym.register( id="Isaac-PickPlace-GR1T2-WaistEnabled-Abs-v0", entry_point="isaaclab.envs:ManagerBasedRLEnv", kwargs={ "env_cfg_entry_point": f"{__name__}.pickplace_gr1t2_waist_enabled_env_cfg:PickPlaceGR1T2WaistEnabledEnvCfg", "robomimic_bc_cfg_entry_point": f"{agents.__name__}:robomimic/bc_rnn_low_dim.json", }, invalid hóa_env_checker=True, ) But still error.

Checklist

  • [ ✅] I have checked that there is no similar issue in the repo (required)
  1. The similar bug is https://github.com/isaac-sim/IsaacLab/issues/2769#issue-3171088483
  2. The similar bug is https://github.com/isaac-sim/IsaacLab/issues/1457#issue-2687789133 => But they are all using Ubuntu not Windows, and not describe detaild
  • [✅ ] I have checked that the issue is not in running Isaac Sim itself and is related to the repo

Acceptance Criteria

Add the criteria for which this task is considered done. If not known at issue creation time, you can add this once the issue is assigned.

  • [ ] Criteria 1
  • [x] Criteria 2
Image Image

chwenjun225 avatar Nov 11 '25 10:11 chwenjun225

Hi, The PickPlace envs are not installed by default. But you can try the environments through the record_demos.py or teleop_se3_agent.py scripts, see comments in a similar task in #3879

PeterL-NV avatar Nov 12 '25 18:11 PeterL-NV

I followed the instructions from this document, got to this part https://isaac-sim.github.io/IsaacLab/main/source/overview/imitation-learning/teleop_imitation.html#generate-the-dataset

Then the program reports an error that the module cannot be found.

Traceback (most recent call last):
  File "C:\projects_workspace\IsaacLab\scripts\imitation_learning\robomimic\train.py", line 461, in <module>
    main(args)
  File "C:\projects_workspace\IsaacLab\scripts\imitation_learning\robomimic\train.py", line 378, in main
    raise ValueError(f"Could not find module file for: '{mod_name}'")
ValueError: Could not find module file for: 'isaaclab_tasks.manager_based.manipulation.pick_place.agents'

I checked the folder and it is not there.

isaaclab_tasks.manager_based.manipulation.pick_place.agents
Image

-> It seems that this folder does not contain the agents definition file.

Hi, The PickPlace envs are not installed by default. But you can try the environments through the record_demos.py or teleop_se3_agent.py scripts, see comments in a similar task in #3879

chwenjun225 avatar Nov 13 '25 02:11 chwenjun225

So you got the error at the Generate the dataset step? I could follow the doc and both dataset generation and training worked for me. I am under Ubuntu, so not sure if your problem is Windows specific.

PeterL-NV avatar Nov 13 '25 18:11 PeterL-NV

So you got the error at the Generate the dataset step? I could follow the doc and both dataset generation and training worked for me. I am under Ubuntu, so not sure if your problem is Windows specific.

Hi, I am using Ubuntu and got the same issue when running ./isaaclab.sh -p scripts/reinforcement_learning/rsl_rl/train.py --task Isaac-PickPlace-GR1T2-Abs-v0

Traceback (most recent call last): File "/home/mylifeducks/works/IsaacLab/scripts/reinforcement_learning/rsl_rl/train.py", line 221, in <module> main() File "/home/mylifeducks/works/IsaacLab/source/isaaclab_tasks/isaaclab_tasks/utils/hydra.py", line 81, in wrapper env_cfg, agent_cfg = register_task_to_hydra(task_name.split(":")[-1], agent_cfg_entry_point) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/mylifeducks/works/IsaacLab/source/isaaclab_tasks/isaaclab_tasks/utils/hydra.py", line 42, in register_task_to_hydra env_cfg = load_cfg_from_registry(task_name, "env_cfg_entry_point") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/mylifeducks/works/IsaacLab/source/isaaclab_tasks/isaaclab_tasks/utils/parse_cfg.py", line 57, in load_cfg_from_registry cfg_entry_point = gym.spec(task_name.split(":")[-1]).kwargs.get(entry_point_key) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/mylifeducks/miniforge3/envs/isaacsim/lib/python3.11/site-packages/gymnasium/envs/registration.py", line 1000, in spec _check_version_exists(ns, name, version) File "/home/mylifeducks/miniforge3/envs/isaacsim/lib/python3.11/site-packages/gymnasium/envs/registration.py", line 392, in _check_version_exists _check_name_exists(ns, name) File "/home/mylifeducks/miniforge3/envs/isaacsim/lib/python3.11/site-packages/gymnasium/envs/registration.py", line 369, in _check_name_exists raise error.NameNotFound( gymnasium.error.NameNotFound: Environment Isaac-PickPlace-GR1T2-Absdoesn't exist.

GreatenAnoymous avatar Nov 14 '25 01:11 GreatenAnoymous

Hi, I am using Ubuntu and got the same issue when running ./isaaclab.sh -p scripts/reinforcement_learning/rsl_rl/train.py --task Isaac-PickPlace-GR1T2-Abs-v0

Traceback (most recent call last): File "/home/mylifeducks/works/IsaacLab/scripts/reinforcement_learning/rsl_rl/train.py", line 221, in <module> main() File "/home/mylifeducks/works/IsaacLab/source/isaaclab_tasks/isaaclab_tasks/utils/hydra.py", line 81, in wrapper env_cfg, agent_cfg = register_task_to_hydra(task_name.split(":")[-1], agent_cfg_entry_point) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/mylifeducks/works/IsaacLab/source/isaaclab_tasks/isaaclab_tasks/utils/hydra.py", line 42, in register_task_to_hydra env_cfg = load_cfg_from_registry(task_name, "env_cfg_entry_point") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/mylifeducks/works/IsaacLab/source/isaaclab_tasks/isaaclab_tasks/utils/parse_cfg.py", line 57, in load_cfg_from_registry cfg_entry_point = gym.spec(task_name.split(":")[-1]).kwargs.get(entry_point_key) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/mylifeducks/miniforge3/envs/isaacsim/lib/python3.11/site-packages/gymnasium/envs/registration.py", line 1000, in spec _check_version_exists(ns, name, version) File "/home/mylifeducks/miniforge3/envs/isaacsim/lib/python3.11/site-packages/gymnasium/envs/registration.py", line 392, in _check_version_exists _check_name_exists(ns, name) File "/home/mylifeducks/miniforge3/envs/isaacsim/lib/python3.11/site-packages/gymnasium/envs/registration.py", line 369, in _check_name_exists raise error.NameNotFound( gymnasium.error.NameNotFound: Environment Isaac-PickPlace-GR1T2-Absdoesn't exist.

Please check #3879

PeterL-NV avatar Nov 14 '25 17:11 PeterL-NV

So you got the error at the Generate the dataset step? I could follow the doc and both dataset generation and training worked for me. I am under Ubuntu, so not sure if your problem is Windows specific.

Right now, I'm done at Generate_the_dataset, currently I'm got error at https://isaac-sim.github.io/IsaacLab/main/source/overview/imitation-learning/teleop_imitation.html#train-a-policy,

The error is Traceback (most recent call last): File "C:\projects_workspace\IsaacLab\scripts\imitation_learning\robomimic\train.py", line 461, in <module> main(args) File "C:\projects_workspace\IsaacLab\scripts\imitation_learning\robomimic\train.py", line 378, in main raise ValueError(f"Could not find module file for: '{mod_name}'") ValueError: Could not find module file for: 'isaaclab_tasks.manager_based.manipulation.pick_place.agents'

chwenjun225 avatar Nov 14 '25 22:11 chwenjun225

So you got the error at the Generate the dataset step? I could follow the doc and both dataset generation and training worked for me. I am under Ubuntu, so not sure if your problem is Windows specific.

Right now, I'm done at Generate_the_dataset, currently I'm got error at https://isaac-sim.github.io/IsaacLab/main/source/overview/imitation-learning/teleop_imitation.html#train-a-policy,

The error is Traceback (most recent call last): File "C:\projects_workspace\IsaacLab\scripts\imitation_learning\robomimic\train.py", line 461, in <module> main(args) File "C:\projects_workspace\IsaacLab\scripts\imitation_learning\robomimic\train.py", line 378, in main raise ValueError(f"Could not find module file for: '{mod_name}'") ValueError: Could not find module file for: 'isaaclab_tasks.manager_based.manipulation.pick_place.agents'

I had the same problem, but I solved it using the following method, which you can refer to:

  1. Copy all the files circled in red to the agents folder.
  2. Keep only the _init_.py file that you just copied to the agents folder, but clear its contents and save it.
  3. You should then be able to perform training.
Image

timtimtm753 avatar Nov 17 '25 03:11 timtimtm753

So you got the error at the Generate the dataset step? I could follow the doc and both dataset generation and training worked for me. I am under Ubuntu, so not sure if your problem is Windows specific.

Right now, I'm done at Generate_the_dataset, currently I'm got error at https://isaac-sim.github.io/IsaacLab/main/source/overview/imitation-learning/teleop_imitation.html#train-a-policy, The error is Traceback (most recent call last): File "C:\projects_workspace\IsaacLab\scripts\imitation_learning\robomimic\train.py", line 461, in <module> main(args) File "C:\projects_workspace\IsaacLab\scripts\imitation_learning\robomimic\train.py", line 378, in main raise ValueError(f"Could not find module file for: '{mod_name}'") ValueError: Could not find module file for: 'isaaclab_tasks.manager_based.manipulation.pick_place.agents'

I had the same problem, but I solved it using the following method, which you can refer to:

1. Copy all the files circled in red to the `agents` folder.

2. Keep only the `_init_.py` file that you just copied to the `agents` folder, but clear its contents and save it.

3. You should then be able to perform training.
Image

Oh yeah, I understand, the folder agents work as a package so we need to add __init__.py inside it.

chwenjun225 avatar Nov 18 '25 09:11 chwenjun225