Skip to content

Bug: libpy_nvblox.so fails to load with PyTorch 2.9 #99

@zhuangaoooo

Description

@zhuangaoooo

Hi nvblox team,

Thank you for the great work on this project. I encountered an issue when trying to use nvblox_torch with newer PyTorch versions (e.g., 2.9 or 2.10 nightly, it's sad that my laptop only supports nightly version pytorch). The library fails to load due to an undefined symbol, likely caused by an ABI mismatch.


Error Log

OSError: /.../libpy_nvblox.so: undefined symbol: _ZN5torch6detail10class_baseC2ERKSsS3_SsRKSt9type_infoS6_

Environment

  • Ubuntu 24.04
  • CUDA 12.6
  • PyTorch 2.10.0.dev20251030
  • nvblox_torch 0.0.8rc5+cu12ubuntu24

Analysis
libpy_nvblox.so appears to be compiled against PyTorch 2.4 headers. Since PyTorch 2.5+, the torch::class_ C++ API changed, leading to symbol mismatches with the precompiled binary.


Thanks again for your excellent work on nvblox!
I’d really appreciate any guidance on how to make nvblox_torch work with newer PyTorch releases. 🙏

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions