Closed FerryRain closed 3 weeks ago
I'm also encountering this error. It's a bit confusing... on line 385 of base_env_window.py
, when elem,.cfg.debug_vis
is accessed, the NoneType error is thrown. Strangely, when I tried to debug print it, it both printed the value, and then threw the NoneType error for the debug print.... Here's a full stack trace after running: HYDRA_FULL_ERROR=1 ./isaaclab.sh -p source/standalone/workflows/sb3/train.py --task Isaac-Cartpole-v0 --num_envs 64
# omitted above prints that seemed irrelevant)
Creating window for environment.
Error executing job with overrides: []
Traceback (most recent call last):
File "/home/chris/Documents/isaaclab99/IsaacLab/source/standalone/workflows/sb3/train.py", line 156, in <module>
main()
File "/home/chris/Documents/isaaclab99/IsaacLab/source/extensions/omni.isaac.lab_tasks/omni/isaac/lab_tasks/utils/hydra.py", line 102, in wrapper
hydra_main()
File "/home/chris/.local/lib/python3.10/site-packages/hydra/main.py", line 94, in decorated_main
_run_hydra(
File "/home/chris/.local/lib/python3.10/site-packages/hydra/_internal/utils.py", line 394, in _run_hydra
_run_app(
File "/home/chris/.local/lib/python3.10/site-packages/hydra/_internal/utils.py", line 457, in _run_app
run_and_report(
File "/home/chris/.local/lib/python3.10/site-packages/hydra/_internal/utils.py", line 223, in run_and_report
raise ex
File "/home/chris/.local/lib/python3.10/site-packages/hydra/_internal/utils.py", line 220, in run_and_report
return func()
File "/home/chris/.local/lib/python3.10/site-packages/hydra/_internal/utils.py", line 458, in <lambda>
lambda: hydra.run(
File "/home/chris/.local/lib/python3.10/site-packages/hydra/_internal/hydra.py", line 132, in run
_ = ret.return_value
File "/home/chris/.local/lib/python3.10/site-packages/hydra/core/utils.py", line 260, in return_value
raise self._return_value
File "/home/chris/.local/lib/python3.10/site-packages/hydra/core/utils.py", line 186, in run_job
ret.return_value = task_function(task_cfg)
File "/home/chris/Documents/isaaclab99/IsaacLab/source/extensions/omni.isaac.lab_tasks/omni/isaac/lab_tasks/utils/hydra.py", line 99, in hydra_main
func(env_cfg, agent_cfg, *args, **kwargs)
File "/home/chris/Documents/isaaclab99/IsaacLab/source/standalone/workflows/sb3/train.py", line 106, in main
env = gym.make(args_cli.task, cfg=env_cfg, render_mode="rgb_array" if args_cli.video else None)
File "/home/chris/anaconda3/envs/isaaclab99/lib/python3.10/site-packages/gymnasium/envs/registration.py", line 802, in make
env = env_creator(**env_spec_kwargs)
File "/home/chris/Documents/isaaclab99/IsaacLab/source/extensions/omni.isaac.lab/omni/isaac/lab/envs/manager_based_rl_env.py", line 75, in __init__
super().__init__(cfg=cfg)
File "/home/chris/Documents/isaaclab99/IsaacLab/source/extensions/omni.isaac.lab/omni/isaac/lab/envs/manager_based_env.py", line 148, in __init__
self._window = self.cfg.ui_window_class_type(self, window_name="IsaacLab")
File "/home/chris/Documents/isaaclab99/IsaacLab/source/extensions/omni.isaac.lab/omni/isaac/lab/envs/ui/manager_based_rl_env_window.py", line 37, in __init__
self._create_debug_vis_ui_element("commands", self.env.command_manager)
File "/home/chris/Documents/isaaclab99/IsaacLab/source/extensions/omni.isaac.lab/omni/isaac/lab/envs/ui/base_env_window.py", line 385, in _create_debug_vis_ui_element
checked=elem.cfg.debug_vis,
AttributeError: 'NoneType' object has no attribute 'debug_vis'
If I set line 385 to True or False instead of checking the debuig_vis parameter, then it the environment works fine and the cartpoles learn.
Isaac Sim Version: 4.2.0
OS: Ubuntu 22.10 (Kinetic)
GPU:RTX 4090
CUDA: 12.2
GPU Driver: 535.129.03
I manually set up my environment rather than using docker, so possibly I missed a step and am missing something or have the wrong version of something. Let me know if there is any other information I can snag to help diagnose the problem.
I don't see the commit linked above: 7d40df3
This should have been fixed on the latest main some time ago. Can you please update your fork and check?
Apologies for omitting the commit. I was on 002fec4...
(several commits ago)
Updating did indeed fix the problem for me. Thanks so much!
I don't see the commit linked above: 7d40df3
This should have been fixed on the latest main some time ago. Can you please update your fork and check?
Thank you very much. I solved the problem when I checked the latest commit.
If you are submitting a bug report, please fill in the following details and use the tag [bug].
Describe the bug
I met an error when I ran the file in the tutorials of the doc files " https://isaac-sim.github.io/IsaacLab/main/source/tutorials/03_envs/create_manager_rl_env.html".
Steps to reproduce
python -p source/standalone/tutorials/03_envs/run_cartpole_rl_env.py --num_envs 32
For more information on this, check: https://www.markdownguide.org/extended-syntax/#fenced-code-blocks
-->
System Info
Describe the characteristic of your environment:
Additional context
Add any other context about the problem here.
Checklist