AttributeError: 'xxxTask' object has no attribute 'actions'

I am trying reinforcement learning with an original model using Isaac sim 2022.2.1 and OmniIsaacGymEnvs.

I got the following error even though the other samples do not define actions.
I think the place I should look at is probably not pre_physics_step, but where should I check?

Error executing job with overrides: ['task=Fork']
Traceback (most recent call last):
  File "scripts/rlgames_train_mt.py", line 206, in parse_hydra_configs
    trainer.env.run(trainer)
  File "/home/ubuntu/.local/share/ov/pkg/isaac_sim-2022.2.1/exts/omni.isaac.gym/omni/isaac/gym/vec_env/vec_env_mt.py", line 208, in run
    self._task.pre_physics_step(actions)
  File "/home/ubuntu/OmniIsaacGymEnvs/omniisaacgymenvs/tasks/fork.py", line 563, in pre_physics_step
    self.actions[:] = actions.clone().to(self._device)
AttributeError: 'ForkTask' object has no attribute 'actions'

Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace.
e[0mException ignored in: <function _make_registry.<locals>._Registry.__del__ at 0x7f69100e8680>
Traceback (most recent call last):
  File "/home/ubuntu/.local/share/ov/pkg/isaac_sim-2022.2.1/kit/extscore/omni.kit.viewport.registry/omni/kit/viewport/registry/registry.py", line 103, in __del__
  File "/home/ubuntu/.local/share/ov/pkg/isaac_sim-2022.2.1/kit/extscore/omni.kit.viewport.registry/omni/kit/viewport/registry/registry.py", line 98, in destroy
TypeError: 'NoneType' object is not callable
Exception ignored in: <function _make_registry.<locals>._Registry.__del__ at 0x7f69100e8680>
Traceback (most recent call last):
  File "/home/ubuntu/.local/share/ov/pkg/isaac_sim-2022.2.1/kit/extscore/omni.kit.viewport.registry/omni/kit/viewport/registry/registry.py", line 103, in __del__
  File "/home/ubuntu/.local/share/ov/pkg/isaac_sim-2022.2.1/kit/extscore/omni.kit.viewport.registry/omni/kit/viewport/registry/registry.py", line 98, in destroy
TypeError: 'NoneType' object is not callable
Exception ignored in: <function SettingChangeSubscription.__del__ at 0x7f6cf52fb7a0>
Traceback (most recent call last):
  File "/home/ubuntu/.local/share/ov/pkg/isaac_sim-2022.2.1/kit/kernel/py/omni/kit/app/_impl/__init__.py", line 114, in __del__
AttributeError: 'NoneType' object has no attribute 'get_settings'
Exception ignored in: <function RegisteredActions.__del__ at 0x7f68d1af3b00>
Traceback (most recent call last):
  File "/home/ubuntu/.local/share/ov/pkg/isaac_sim-2022.2.1/extscache/omni.kit.viewport.menubar.lighting-104.0.9/omni/kit/viewport/menubar/lighting/actions.py", line 347, in __del__
  File "/home/ubuntu/.local/share/ov/pkg/isaac_sim-2022.2.1/extscache/omni.kit.viewport.menubar.lighting-104.0.9/omni/kit/viewport/menubar/lighting/actions.py", line 352, in destroy
TypeError: 'NoneType' object is not callable
/home/ubuntu/.local/share/ov/pkg/isaac_sim-2022.2.1/python.sh: 41 行: 51488 Segmentation fault      $python_exe "$@" $args
There was an error running python
e]0;ubuntu@ip-10-0-0-183: ~/OmniIsaacGymEnvs/omniisaacgymenvsae[01;32mubuntu@ip-10-0-0-183e[00m:e[01;34m~/OmniIsaacGymEnvs/omniisaacgymenvse[00m$ exit
exit

Script done on 2023-10-25 03:35:14+00:00 [COMMAND_EXIT_CODE="1"]

Hi @1616ttkj - Are you getting the same errors with the latest 2023.1.0 release as well?

I haven’t tried it yet in 2023.1. I’m currently porting the code.

No problems occurred after porting to 2023.1.0.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.