diff --git a/python/open3d/__init__.py b/python/open3d/__init__.py index 8bbf38d0e2c5..6344140669fb 100644 --- a/python/open3d/__init__.py +++ b/python/open3d/__init__.py @@ -79,11 +79,10 @@ def load_cdll(path): "Open3D was built with CUDA support, but no suitable CUDA " "devices found. If your system has CUDA devices, check your " "CUDA drivers and runtime.", ImportWarning) - except OSError: + except OSError as os_error: warnings.warn( - "Open3D was built with CUDA support, but CUDA libraries could " - "not be found! Check your CUDA installation. Falling back to the " - "CPU pybind library.", ImportWarning) + f'Open3D was built with CUDA support, but an error ocurred while loading the Open3D CUDA Python bindings. This is usually because the CUDA libraries could not be found. Check your CUDA installation. Falling back to the CPU pybind library. Reported error: {os_error}.', + ImportWarning) except StopIteration: warnings.warn( "Open3D was built with CUDA support, but Open3D CUDA Python "