JetPck 6.0 / torch error

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2023 NVIDIA Corporation
Built on Tue_Aug_15_22:08:11_PDT_2023
Cuda compilation tools, release 12.2, V12.2.140
Build cuda_12.2.r12.2/compiler.33191640_0

I tried to import torch. But “ImportError: cannot import name ‘_get_cpp_backtrace’ from ‘torch._C’ (/home/user/env/lib/python3.10/site-packages/torch/_C.cpython-310-aarch64-linux-gnu.so)” occur.

I tried to install “pip install torch==2.3.0 torchvision==0.18.0a0+6043bc2, torchaudio==2.3.0 --index-url jp6/cu122 index
Looking in indexes: jp6/cu122 index, https://pypi.ngc.nvidia.com” and “pip install torch==2.4.0 torchvision==0.19.0a0+48b1edf torchaudio==2.4.0a0+69d4077 --index-url jp6/cu122 index

How to solve it? I dont know why.. because 2 weeks ago. torch is working also torch.cuda.is_avaliable()

I also try to “PyTorch for Jetson

PyTorch v2.3.0

Hi,

According to the below link, this issue might relate to the cache:

https://stackoverflow.com/questions/76180804/importerror-cannot-import-name-get-cpp-backtrace-from-torch-c

Could you try the suggestion above to see if it can solve your issue?
Thanks.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.