Import torch error

Processor
L4T version 36.3.0
OS Ubuntu 22.04.5 LTS
avxSupported false
coreCount 8
cpu
datetime 2025-06-16 09:23:28 AM
hyperThreading 0
motherboard Jetson, NVIDIA
ramCapacity 16.416199
ramUsage
ramUsed 12.317950
threadCount 8
valid [ Processor: , Motherboard: Jetson, NVIDIA ]
ZED SDK
CUDA Toolkit version V12.2.140 -->located in /usr/local/cuda-12.2/bin/nvcc
CUDA loading false
GPU Driver Version Driver Version : N/A
GPU Performance Performance State : N/A
ZED SDK Version (Diag) 4.2.3
ZED SDK Version (RT) 4.2.3
ai
checkAI true
cudaVersion 12020
cudnnCudartVersion 12020
cudnnVersion 8904
cudnnVersionExpected 8904
tensorVersion 8602
binFiles (3)[ libsl_ai.so, libsl_zed.so, libsl_zed_static.a ]
resourcesFiles (10)[ neural_depth_3.6.model, objects_accurate_3.2.model, objects_medium_3.2.model, objects_performance_3.2.model, person_head_accurate_2.6.model, person_head_performance_2.6.model, person_reid_1.4.model, positional_tracking_2.2.model, skeleton_body18_3.2.model, skeleton_body38_3.5.model ]
resourcesFilesExpected [ objects_performance_3.2 ]
valid
0 ZED SDK version: 4.2.3
1 CUDA version: V12.2.140

(pytorch_env) user@GTW-ONX1-E114LNWP:/usr/local/zed$ python3
Python 3.10.12 (main, Feb 4 2025, 14:57:36) [GCC 11.4.0] on linux
Type “help”, “copyright”, “credits” or “license” for more information.

import torch
Traceback (most recent call last):
File “”, line 1, in
File “/home/user/pytorch_env/lib/python3.10/site-packages/torch/init.py”, line 1272, in
from ._tensor import Tensor
File “/home/user/pytorch_env/lib/python3.10/site-packages/torch/_tensor.py”, line 12, in
import torch.utils.hooks as hooks
File “/home/user/pytorch_env/lib/python3.10/site-packages/torch/utils/init.py”, line 5, in
from .cpp_backtrace import get_cpp_backtrace
File “/home/user/pytorch_env/lib/python3.10/site-packages/torch/utils/cpp_backtrace.py”, line 1, in
from torch._C import _get_cpp_backtrace
ImportError: cannot import name ‘_get_cpp_backtrace’ from ‘torch._C’ (/home/user/pytorch_env/lib/python3.10/site-packages/torch/_C.cpython-310-aarch64-linux-gnu.so)

I cant solve this problem…
Is working at install torch-2.3.0-cp310-cp310-linux_aarch64.whl, torchvision-0.18.0a0+6043bc2-cp310-cp310-linux_aarch64.whl, torchaudio-2.3.0+952ea74-cp310-cp310-linux_aarch64.whl
and then import torch was working. but now not. how can i solve it

Hello @Hamin242,

Thank you for reaching us. Could you please run the ZED_Diagnostic tool, save the generated json file and send it to us please ? Also, it would be helpful if you could provide your python packages list running pip list .

About your sdk version, I strongly recommend you to upgrade your setup to the latest version 5.0. Please find it here: ZED SDK 5.0 EA - Download | Stereolabs

Best regards,