Isaac Sim 4.0 when I follow the step from Hello World — Omniverse IsaacSim latest documentation
here is a problem when I run following code
and I have no ideal how the terminal send [ModuleNotFoundError: No module named ‘isaacsim’]
Isaac Sim 4.0 when I follow the step from Hello World — Omniverse IsaacSim latest documentation
here is a problem when I run following code
Hi @jesse.liu1 the script needs to be run with the Isaac Sim Python interpreter. Are you using the ./python.sh
command followed by the location of the script to run it?
Got the same error following this guide
(env_isaaclab) c:\IsaacLab>isaaclab.bat -p scripts\tutorials\00_sim\create_empty.py
[INFO] Using python from: C:\Users\user\anaconda3\envs\env_isaaclab\python.exe
Traceback (most recent call last):
File “c:\IsaacLab\scripts\tutorials\00_sim\create_empty.py”, line 20, in
from isaaclab.app import AppLauncher
File “C:\IsaacLab\source\isaaclab\isaaclab\app_init_.py”, line 15, in
from .app_launcher import AppLauncher # noqa: F401, F403
File “C:\IsaacLab\source\isaaclab\isaaclab\app\app_launcher.py”, line 27, in
from isaacsim import SimulationApp
ModuleNotFoundError: No module named ‘isaacsim’
edit: nvm, fixed it by downloading all everything pip install isaaclab issaacsim isaacsim-rl isaacsim-replicator isaacsim-extscache-physics isaacsim-extscache-kit-sdk isaacsim-extscache-kit isaacsim-app --extra-index-url https://pypi.nvidia.com and then isaaclab.bat -p scripts\tutorials\00_sim\create_empty.py in Anaconda Prompt. The installation guide seemed to be very confusing and outdated. But even after it appeared to launch briefly, it crashed with an error “AssertionError: Torch not compiled with CUDA enabled”. And yes, I read about the CUDA installation in the PIP install guide. I had to run pip uninstall torch torchvision torchaudio -y and then pip install torch==2.5.1 torchvision==0.20.1 --index-url https://download.pytorch.org/whl/cu118 to finally get it working.
edit2: even the isaaclab is working, some dependencies are still not loaded. had to do lots to get it working
git clone GitHub - leggedrobotics/rsl_rl: Fast and simple implementation of RL algorithms, designed to run fully on GPU.
cd C:\IsaacLab\rsl_rl
pip install -e .
pip install stable-baselines3
Then isaaclab.bat -p scripts/reinforcement_learning/rsl_rl/train.py --task=Isaac-Velocity-Rough-Anymal-C-v0 can now work. Even though there’s still one last error AttributeError: ‘AnymalCRoughPPORunnerCfg’ object has no attribute ‘clip_actions’ and had to replace env = RslRlVecEnvWrapper(env, clip_actions=agent_cfg.clip_actions) with env = RslRlVecEnvWrapper(env). This is just very confusing for an absolutely newbie like myself smh.
Please submit this to its GitHub repo (GitHub - isaac-sim/IsaacLab: Unified framework for robot learning built on NVIDIA Isaac Sim) following the instructions provided on Isaac Lab’s Contributing Guidelines (Contribution Guidelines — Isaac Lab Documentation). Thanks.