You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEA]: Enhance load_nvidia_dynamic_lib error message if a library cannot be found #851
Also some helper function (like runtime_nvidia_library_load_error(library_name:str) ) would be nice so user can add custom wrapper around load_nvidia_dynamic_lib.
changed the title [-][FEA]: Add force_load_nvidia_dynamic_lib[/-][+][FEA]: Enhance `load_nvidia_dynamic_lib` error message if a library cannot be found[/+]on Aug 18, 2025
Then add a URL pointing to the troubleshooting page from the RuntimeError reporting that the requested library could not be found.
Mock-up (non-existing URL):
cuda.pathfinder._dynamic_libs.load_dl_common.DynamicLibNotFoundError: Failure finding "libnotalib.so"
Please see https://nvidia.github.io/cuda-python/cuda-pathfinder/latest/troubleshooting.html for help.
No such file: libnotalib.so*, No such file: /usr/local/cuda-12.9/lib64/libnotalib.so
...
I would like to work on this, following the plan in the comment above: a troubleshooting page in the cuda-pathfinder docs, plus the URL appended to the not-found error messages.
I have this implemented and validated locally (ruff, mypy-pathfinder, and the pathfinder unit tests pass; the new page follows the existing docs layout, so #760 being done unblocks this):
New docs/source/troubleshooting.rst: how to read the "Failure finding" message, the search order (wheels, conda, OS loader, CUDA_PATH/CUDA_HOME), common causes and fixes, and how to report an issue. Content is derived from the load_nvidia_dynamic_lib docstring.
A small _utils/troubleshooting.py with the URL constant and an append_troubleshooting_url() helper, applied to the raise_not_found sites (dynamic, bitcode, static) and the driver-library message, matching the mock-up format.
Happy to open the PR if assigned, and to trim the scope to the dynamic-lib error only if that is preferred.
Activity
[-][FEA]: Add force_load_nvidia_dynamic_lib[/-][+][FEA]: Enhance `load_nvidia_dynamic_lib` error message if a library cannot be found[/+]rwgk commentedon Aug 18, 2025
Discussed offline:
cuda.pathfinder#760)RuntimeErrorreporting that the requested library could not be found.Mock-up (non-existing URL):
aryanputta commentedon Jul 4, 2026
I would like to work on this, following the plan in the comment above: a
troubleshootingpage in the cuda-pathfinder docs, plus the URL appended to the not-found error messages.I have this implemented and validated locally (ruff, mypy-pathfinder, and the pathfinder unit tests pass; the new page follows the existing docs layout, so #760 being done unblocks this):
docs/source/troubleshooting.rst: how to read the "Failure finding" message, the search order (wheels, conda, OS loader,CUDA_PATH/CUDA_HOME), common causes and fixes, and how to report an issue. Content is derived from theload_nvidia_dynamic_libdocstring._utils/troubleshooting.pywith the URL constant and anappend_troubleshooting_url()helper, applied to theraise_not_foundsites (dynamic, bitcode, static) and the driver-library message, matching the mock-up format.Happy to open the PR if assigned, and to trim the scope to the dynamic-lib error only if that is preferred.