Skip to content

[Bug Report] isaaclab.sh does not properly configure python version in install #3783

Closed

Description

@inkyant

Describe the bug

I have set up an isaacsim/isaaclab install, and had it working for training a robot.
Now, I added a user and realized there is an issue with the install script.
In the IsaacLab install requirements, it clearly states that required python version is 3.11 for isaaclab 5.0 and 3.10 for isaaclab 4.5, yet when running the script ./isaaclab.sh --uv it creates a UV env with the python version of whatever the variable python_path is in the script. However I'm not completely clear on what the purpose of this variable is, since it often is unset, and thus UV just installs the same default version of python, which is for me 3.12. So what happens is that the default install script installs the wrong version of python!
Here is the line of code in ./isaaclab.sh
uv venv --clear --python "${python_path}" "${env_path}"
While env_path is set, python_path is not set.
To fix this, we can change:
uv venv --clear --python "${python_path}" "${env_path}"
to:
uv venv --clear --python "3.11" "${env_path}"
I would be willing to make a PR, if I can confirm that the python_path variable is unnecessary.

Steps to reproduce

I've created a new user.
Installing UV, and restarting the terminal

Image

Go to my install folder for Isaaclab, which the user has permissions over:

Image

Current version (no env) is python 3.12:

Image

Creating the env:

Image

Notice, it creates python version 3.12

This comes from the line of code in isaaclab.sh in the function setup_uv_env() which is uv venv --clear --python "${python_path}" "${env_path}"
We can see that the env variable python_path is unset by adding an echo statement:

Image

We can see that when creating an env now, it echos a blank line (compare to before last screenshot of uv env setup):

Image

So as python_path is unset, it installs simply 3.12, the existing python version.
To fix this, we can change:
uv venv --clear --python "${python_path}" "${env_path}"
to:
uv venv --clear --python "3.11" "${env_path}"
I would be willing to make a PR, if I can confirm that the python_path variable is unnecessary.

System Info

Describe the characteristic of your environment:

  • Commit: fc2ff6c
  • Isaac Sim Version: 5.0.0-rc.45+release.23960.184afb15.gl
  • OS: Ubuntu 24.04
  • GPU: RTX 5090
  • CUDA: 12.8
  • GPU Driver: 580.95.05

Checklist

  • I have checked that there is no similar issue in the repo (required)
  • I have checked that the issue is not in running Isaac Sim itself and is related to the repo

Acceptance Criteria

Add the criteria for which this task is considered done. If not known at issue creation time, you can add this once the issue is assigned.

  • running ./isaaclab.sh --uv for any current python version installs the correct python version, 3.11. Or docs are updated to say that 3.12 is supported

Activity

  1. LemonFoxmere commented on Oct 21, 2025

    @LemonFoxmere

    I was able to replicate this issue on the same environment under a new user. Adding on, after running ./isaaclab.sh -i after sourcing the 3.12 venv, I noticed that IsaacSim seemed to not be installed properly, and Pytorch completely failed to install. Check out the full installation log on this gist.

    (env_test) stacy@gpu-rtx5090:/home/shared/IsaacLab$ python3
    Python 3.12.3 (main, Aug 14 2025, 17:47:21) [GCC 13.3.0] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>>
    >>>
    >>> import isaaclab
    >>> import isaacsim
    Unable to expose 'isaacsim.simulation_app' API: No module named 'carb._carb'
    >>> import omni
    >>> import torch
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "/home/shared/IsaacLab/_isaac_sim/exts/omni.isaac.ml_archive/pip_prebundle/torch/__init__.py", line 994, in <module>
        raise ImportError(
    ImportError: Failed to load PyTorch C extensions:
        It appears that PyTorch has loaded the `torch/_C` folder
        of the PyTorch repository rather than the C extensions which
        are expected in the `torch._C` namespace. This can occur when
        using the `install` workflow. e.g.
            $ python setup.py install && python -c "import torch"
    
        This error can generally be solved using the `develop` workflow
            $ python setup.py develop && python -c "import torch"  # This should succeed
        or by running Python from a different directory.
    >>>
    

    I was able to fix this by changing line 432. Instead of using the python_path variable, I changed it to use a static "3.11". E.g.,
    Image
    Here is a gist for the full installation log now (note: Stacy was deleted and recreated as a new user)

    (env_test_2) stacy@gpu-rtx5090:/home/shared/IsaacLab$ python3
    Python 3.11.14 (main, Oct 14 2025, 21:26:53) [Clang 20.1.4 ] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import isaaclab
    >>> import isaacsim
    >>> import omni
    >>> import torch
    >>>
    
  2. inkyant commented on Oct 21, 2025

    @inkyant
    Author

    I see there is actually PR #3560 addresses this, but the documentation should be updated as well. Not sure if I should code until the PR is accepted.

  3. RandomOakForest commented on Dec 4, 2025

    @RandomOakForest
    Collaborator

    @zoctipus for vis.

  4. added
    bug
    documentation
    on Dec 4, 2025
  5. AntoineRichard commented on Aug 27, 2026

    @AntoineRichard
    Collaborator

    @inkyant thanks for the precise diagnosis, and sorry for the delay.

    That code path is gone: #4579 moved installation into the isaaclab Python CLI, so isaaclab.sh is now just a launcher. The interpreter is resolved by determine_python_version() in source/isaaclab/isaaclab/cli/utils.py, which maps the detected Isaac Sim release to a Python version (5.x → 3.11, 6.x → 3.12). The install docs now spell out uv venv --python 3.12 too. Please reopen if the installer still picks the wrong Python.


    🤖 This issue was reviewed as part of an AI-assisted triage of the Isaac Lab backlog, with automated verification against the current codebase. If we got this wrong, please reopen — we'd rather hear about it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugdocumentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions