From 3a3e8f95fa8cf322ee5c7f79ae904c4524db88e5 Mon Sep 17 00:00:00 2001 From: wertyuilife Date: Sat, 11 Apr 2026 01:03:52 +0800 Subject: [PATCH] update scripts, preload h5py to fix windows bug when using GUI. --- scripts/rsl_rl/play.py | 5 +++-- scripts/rsl_rl/train.py | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/rsl_rl/play.py b/scripts/rsl_rl/play.py index dd60d5d..79c7c95 100644 --- a/scripts/rsl_rl/play.py +++ b/scripts/rsl_rl/play.py @@ -14,8 +14,9 @@ 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. +# Preload native extensions before isaacsim/Kit modules are imported to avoid +# Windows DLL loader conflicts when Isaac Lab/RSL-RL import them later. +import h5py # noqa: F401 import tensordict # noqa: F401 from isaaclab.app import AppLauncher diff --git a/scripts/rsl_rl/train.py b/scripts/rsl_rl/train.py index ef6a0f8..ee3daa6 100644 --- a/scripts/rsl_rl/train.py +++ b/scripts/rsl_rl/train.py @@ -14,8 +14,9 @@ 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. +# Preload native extensions before isaacsim/Kit modules are imported to avoid +# Windows DLL loader conflicts when Isaac Lab/RSL-RL import them later. +import h5py # noqa: F401 import tensordict # noqa: F401 from isaaclab.app import AppLauncher