IsaacLab icon indicating copy to clipboard operation
IsaacLab copied to clipboard

[Bug Report] Version issues of numpy can lead to crashes.

Open VinHo-C opened this issue 9 months ago • 1 comments

Description

If you install Pinocchio and then pull the code of Isaac Lab and Isaac Sim, it will cause a crash due to inconsistent numpy versions. However, it has been tested that downgrading numpy to version 1.26.4 works fine.

  File "/home/chenwenhao/anaconda3/envs/env_isaaclab/lib/python3.10/site-packages/trimesh/exchange/ply.py", line 7, in <module>
    from numpy.lib.recfunctions import structured_to_unstructured, unstructured_to_structured
  File "/home/chenwenhao/anaconda3/envs/env_isaaclab/lib/python3.10/site-packages/isaacsim/extscache/omni.kit.pip_archive-0.0.0+d02c707b.lx64.cp310/pip_prebundle/numpy/lib/recfunctions.py", line 13, in <module>
    from numpy.ma.mrecords import MaskedRecords
  File "/home/chenwenhao/anaconda3/envs/env_isaaclab/lib/python3.10/site-packages/isaacsim/extscache/omni.kit.pip_archive-0.0.0+d02c707b.lx64.cp310/pip_prebundle/numpy/ma/mrecords.py", line 27, in <module>
    from numpy.core.records import (
  File "/home/chenwenhao/anaconda3/envs/env_isaaclab/lib/python3.10/site-packages/isaacsim/extscache/omni.kit.pip_archive-0.0.0+d02c707b.lx64.cp310/pip_prebundle/numpy/core/records.py", line 44, in <module>
    from .arrayprint import _get_legacy_print_mode
  File "/home/chenwenhao/anaconda3/envs/env_isaaclab/lib/python3.10/site-packages/isaacsim/extscache/omni.kit.pip_archive-0.0.0+d02c707b.lx64.cp310/pip_prebundle/numpy/core/arrayprint.py", line 41, in <module>
    from .numeric import concatenate, asarray, errstate
  File "/home/chenwenhao/anaconda3/envs/env_isaaclab/lib/python3.10/site-packages/isaacsim/extscache/omni.kit.pip_archive-0.0.0+d02c707b.lx64.cp310/pip_prebundle/numpy/core/numeric.py", line 2520, in <module>

System Info

Describe the characteristic of your environment:

  • Isaac Sim Version: 4.5
  • OS: [e.g. Ubuntu 22.04
  • GPU: [4060]
  • CUDA: [e.g. 12.6]
  • GPU Driver: [e.g. 560.35.05]

Additional context

Add any other context about the problem here.

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.

  • [ ] Criteria 1
  • [ ] Criteria 2

VinHo-C avatar Apr 03 '25 04:04 VinHo-C

Thank you for posting this. Good to hear that at least you can update numpy to a version that works. The team will review this.

RandomOakForest avatar Apr 03 '25 10:04 RandomOakForest

Isaac Lab and Isaac Sim have to use numpy < 2 for now as that is the version that Omniverse ships with. We will be looking at upgrading numpy version in later releases when Omniverse also updates numpy to 2+.

kellyguo11 avatar Jul 08 '25 00:07 kellyguo11

@kellyguo11 Is there any update on this? Is there a very rough timeline of when Omniverse might get Numpy 2.0+ support?

pseudo-rnd-thoughts avatar Nov 04 '25 12:11 pseudo-rnd-thoughts