From e382e0170aaa7882ddac16fc6e55a506cfbb1159 Mon Sep 17 00:00:00 2001 From: wertyuilife Date: Sat, 11 Apr 2026 00:25:09 +0800 Subject: [PATCH] update scripts, preload tensordict's native extension to prevent Windows access violation during RSL-RL imports. --- scripts/rsl_rl/play.py | 4 ++++ scripts/rsl_rl/train.py | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/scripts/rsl_rl/play.py b/scripts/rsl_rl/play.py index d245fd2..dd60d5d 100644 --- a/scripts/rsl_rl/play.py +++ b/scripts/rsl_rl/play.py @@ -14,6 +14,10 @@ import argparse import os import sys +# Preload tensordict's native extension before isaacsim/Kit modules are imported +# to avoid a Windows access violation when RSL-RL imports it later. +import tensordict # noqa: F401 + from isaaclab.app import AppLauncher # local imports diff --git a/scripts/rsl_rl/train.py b/scripts/rsl_rl/train.py index fe3dac3..ef6a0f8 100644 --- a/scripts/rsl_rl/train.py +++ b/scripts/rsl_rl/train.py @@ -14,6 +14,10 @@ import argparse import os import sys +# Preload tensordict's native extension before isaacsim/Kit modules are imported +# to avoid a Windows access violation when RSL-RL imports it later. +import tensordict # noqa: F401 + from isaaclab.app import AppLauncher # local imports