IsaacLab icon indicating copy to clipboard operation
IsaacLab copied to clipboard

[Question] Can't Set up IDE in own project which use Application Template

Open LiuXianBang opened this issue 1 year ago • 1 comments

Question

I Create My Project using Application Template, Everything is fine until i want Set up IDE. When I using setup_python_env in Tasks: Run Task, It ask me to input isaac_path and tell me i can skip it if Isaac Sim installed from pip.

I install everything including IsaacLab and IsaacSim using pip. But I tried many paths, including directly using the default value, but they couldn't be set properly.

Steps to reproduce

When I using default path C:/isaacsim

the error:

C: /isaacsim/python. bat: Cannot recognize the 'C:/isaacsim/python.bat' item as the name of a cmd, function, script file, or executable program. Please check the spelling of the name, if it includes the path, make sure the path is correct, and then try again.
+ C:/isaacsim/python.bat D:\Project\BangBot/.vscode/tools/setup_vscode. ...
+ ~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:/isaacsim/python.bat:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

and I try to give a correct path to solve this error.

I try .conda\envs\env_isaaclab\Lib\site-packages\omni\dev\tools\packman\python.bat and D:\Project\IsaacLab\isaaclab.bat or direct run setup_vscode.py in python. but all fail

Can someone tell me how to fix the problem and fill in the correct path?

System Info

Describe the characteristic of your environment:

  • Isaac Sim Version: 2.1.1
  • OS: Windows11
  • GPU: RTX 4070TI(LapTop)
  • CUDA: 12.8

LiuXianBang avatar Aug 09 '25 03:08 LiuXianBang

Thank you for posting this. The error occurs because the setup_python_env VSCode task expects a folder or executable (like python.bat/python.sh) from a standalone Isaac Sim installation (from the Omniverse Launcher), but the pip installation of Isaac Sim and Isaac Lab does not create this folder or these files (such as _isaac_sim or python.bat).

How to work with pip installs

You should not provide any isaac_path—just SKIP this step, skip the isaac_path question by leaving it blank. The IDE setup script is supposed to detect your pip install, and if it doesn’t, or if the .vscode/settings.json is missing, you need to set up your own interpreter path for VSCode.

Correct steps with pip installation

  1. Activate your Conda environment (or venv) where IsaacLab and IsaacSim are installed.
  2. Open the IsaacLab project folder in VSCode.
  3. Select your Python interpreter:
    • Press Ctrl+Shift+P, type Python: Select Interpreter, and manually choose your environment’s Python executable (e.g., from .conda/envs/env_isaaclab/.../python.exe).
    • This ensures that VSCode is using the correct Python+IsaacLab environment.
  4. Manually configure VSCode settings if the auto-setup script fails:
    • If .vscode/settings.json is missing, create it manually and include (change path accordingly to specify your conda environment's python):
{
  "python.defaultInterpreterPath": "C:/Users/<your_username>/anaconda3/envs/env_isaaclab/python.exe"
}
  1. Optionally, set "python.analysis.extraPaths" to include site-packages/isaacsim if you want improved language IntelliSense.

  2. Ignore requests for isaac_path in the task prompt.

    • This is not required for pip installed versions and is a relic from binary install workflows.

Key references and current status

  • Isaac Lab’s official Developer Guide confirms VSCode auto setup only works with local/binary installs. For pip installs, select your interpreter manually.
  • There is no need to create or copy a python.bat file; VSCode only needs your environment’s Python executable, and the lack of the .vscode/settings.json from IsaacSim pip package is by design.

RandomOakForest avatar Aug 10 '25 12:08 RandomOakForest