jetson-containers icon indicating copy to clipboard operation
jetson-containers copied to clipboard

TypeError: '>=' not supported between instances of 'str' and 'Version' (`CUDA_VERSION` not set)

Open tokk-nv opened this issue 5 months ago • 0 comments

This is a known issue, so I'm filing this just for tracking purposes.

When you only install nvidia-container package and docker on a fresh Jetson Linux (L4T) setup, jetson-container will run into this error.

  File "/home/jetson/jetson-containers_tokknv/packages/cuda/cudnn/config.py", line 11, in <module>
    if CUDA_VERSION >= Version('12.6'):
TypeError: '>=' not supported between instances of 'str' and 'Version'

A workaround would be to set CUDA_VERSION in an environment variable, like

export CUDA_VERSION=12.4

but perhaps we may want to auto-set the expected CUDA_VERSION by default based on the L4T revision number.

tokk-nv avatar Sep 06 '24 20:09 tokk-nv