René's URL Explorer Experiment


Title: Library bindings are not importable if the underlying library is not installed · Issue #951 · NVIDIA/cuda-python · GitHub

Open Graph Title: Library bindings are not importable if the underlying library is not installed · Issue #951 · NVIDIA/cuda-python

X Title: Library bindings are not importable if the underlying library is not installed · Issue #951 · NVIDIA/cuda-python

Description: During the investigation of #920 I noticed that if I remove nvJitLink from my current environment, cuda.core cannot fall back to use the cuLink* driver APIs because the pathfinder error is not caught: Traceback (most recent call last): F...

Open Graph Description: During the investigation of #920 I noticed that if I remove nvJitLink from my current environment, cuda.core cannot fall back to use the cuLink* driver APIs because the pathfinder error is not caug...

X Description: During the investigation of #920 I noticed that if I remove nvJitLink from my current environment, cuda.core cannot fall back to use the cuLink* driver APIs because the pathfinder error is not caug...

Opengraph URL: https://github.com/NVIDIA/cuda-python/issues/951

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Library bindings are not importable if the underlying library is not installed","articleBody":"During the investigation of #920 I noticed that if I remove nvJitLink from my current environment, `cuda.core` cannot fall back to use the `cuLink*` driver APIs because the pathfinder error is not caught:\n```python\nTraceback (most recent call last):\n  File \"/local/home/leof/dev/debug_920.py\", line 94, in \u003cmodule>\n    program = Program(code, code_type=\"ptx\", options=options)\n              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/local/home/leof/dev/cuda-python/cuda_core/cuda/core/experimental/_program.py\", line 411, in __init__\n    ObjectCode._init(code.encode(), code_type), options=self._translate_program_options(options)\n                                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/local/home/leof/dev/cuda-python/cuda_core/cuda/core/experimental/_program.py\", line 420, in _translate_program_options\n    return LinkerOptions(\n           ^^^^^^^^^^^^^^\n  File \"\u003cstring>\", line 24, in __init__\n  File \"/local/home/leof/dev/cuda-python/cuda_core/cuda/core/experimental/_linker.py\", line 189, in __post_init__\n    _lazy_init()\n  File \"/local/home/leof/dev/cuda-python/cuda_core/cuda/core/experimental/_linker.py\", line 69, in _lazy_init\n    _decide_nvjitlink_or_driver()\n  File \"/local/home/leof/dev/cuda-python/cuda_core/cuda/core/experimental/_linker.py\", line 47, in _decide_nvjitlink_or_driver\n    if inner_nvjitlink._inspect_function_pointer(\"__nvJitLinkVersion\") == 0:\n       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"cuda/bindings/_internal/nvjitlink.pyx\", line 247, in cuda.bindings._internal.nvjitlink._inspect_function_pointer\n  File \"cuda/bindings/_internal/nvjitlink.pyx\", line 250, in cuda.bindings._internal.nvjitlink._inspect_function_pointer\n  File \"cuda/bindings/_internal/nvjitlink.pyx\", line 198, in cuda.bindings._internal.nvjitlink._inspect_function_pointers\n  File \"cuda/bindings/_internal/nvjitlink.pyx\", line 70, in cuda.bindings._internal.nvjitlink._check_or_init_nvjitlink\n  File \"cuda/bindings/_internal/nvjitlink.pyx\", line 92, in cuda.bindings._internal.nvjitlink._check_or_init_nvjitlink\n  File \"cuda/bindings/_internal/nvjitlink.pyx\", line 58, in cuda.bindings._internal.nvjitlink.load_library\n  File \"/local/home/leof/miniforge3/envs/py312_cu129/lib/python3.12/site-packages/cuda/pathfinder/_dynamic_libs/load_nvidia_dynamic_lib.py\", line 120, in load_nvidia_dynamic_lib\n    return _load_lib_no_cache(libname)\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/local/home/leof/miniforge3/envs/py312_cu129/lib/python3.12/site-packages/cuda/pathfinder/_dynamic_libs/load_nvidia_dynamic_lib.py\", line 48, in _load_lib_no_cache\n    found.raise_if_abs_path_is_None()\n  File \"/local/home/leof/miniforge3/envs/py312_cu129/lib/python3.12/site-packages/cuda/pathfinder/_dynamic_libs/find_nvidia_dynamic_lib.py\", line 199, in raise_if_abs_path_is_None\n    raise DynamicLibNotFoundError(f'Failure finding \"{self.lib_searched_for}\": {err}\\n{att}')\ncuda.pathfinder._dynamic_libs.load_dl_common.DynamicLibNotFoundError: Failure finding \"libnvJitLink.so\": No such file: libnvJitLink.so*, No such file: libnvJitLink.so*\n\n```\nThis echos @kkraus14's concern earlier (#728). We want to be able to catch errors at run time when the underlying library (including the driver) does not provide the needed symbol, which implies that the exception raising should be deferred to as late as when it's actually needed.","author":{"url":"https://github.com/leofang","@type":"Person","name":"leofang"},"datePublished":"2025-09-08T13:51:43Z","url":"https://github.com/NVIDIA/cuda-python/issues/951"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:708ac903-1af3-939d-2552-66fe8a9417dd
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idABC2:3AABB4:1337333:19540FA:6AF88940
html-safe-nonce069a28013198f9ee9d12de2080c01a01466d03071c411d454867a83bbed978e9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQkMyOjNBQUJCNDoxMzM3MzMzOjE5NTQwRkE6NkFGODg5NDAiLCJ2aXNpdG9yX2lkIjoiMzc2NjE3MTI2MzYxMzU2OTM0NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacc03cfc0bc24ce197ccbeab1674229257864413caf5c9c383b1b160e461d9a941
hovercard-subject-tagissue:3394329010
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NVIDIA/cuda-python/951/issue_layout
twitter:imagehttps://opengraph.githubassets.com/9ea9f163f78dcf30d15aefe90a62cf686bed18bfe370a878c7abcb3df504e175/NVIDIA/cuda-python/issues/951
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/9ea9f163f78dcf30d15aefe90a62cf686bed18bfe370a878c7abcb3df504e175/NVIDIA/cuda-python/issues/951
og:image:altDuring the investigation of #920 I noticed that if I remove nvJitLink from my current environment, cuda.core cannot fall back to use the cuLink* driver APIs because the pathfinder error is not caug...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameleofang
hostnamegithub.com
expected-hostnamegithub.com
None5713ecd83001b2f55c3509fb7a292bf7d66d0f167c7ae87a9f7eaec5a52bf8db
turbo-cache-controlno-preview
go-importgithub.com/NVIDIA/cuda-python git https://github.com/NVIDIA/cuda-python.git
octolytics-dimension-user_id1728152
octolytics-dimension-user_loginNVIDIA
octolytics-dimension-repository_id381173759
octolytics-dimension-repository_nwoNVIDIA/cuda-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id381173759
octolytics-dimension-repository_network_root_nwoNVIDIA/cuda-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release653be32ff5c755082a4db662491bfbbcfc9112c1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/NVIDIA/cuda-python/issues/951#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNVIDIA%2Fcuda-python%2Fissues%2F951
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNVIDIA%2Fcuda-python%2Fissues%2F951
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=NVIDIA%2Fcuda-python
Reloadhttps://github.com/NVIDIA/cuda-python/issues/951
Reloadhttps://github.com/NVIDIA/cuda-python/issues/951
Reloadhttps://github.com/NVIDIA/cuda-python/issues/951
NVIDIAhttps://github.com/NVIDIA
cuda-pythonhttps://github.com/NVIDIA/cuda-python
Codehttps://github.com/NVIDIA/cuda-python
Issues219 (219)https://github.com/NVIDIA/cuda-python/issues
Pull requests92 (92)https://github.com/NVIDIA/cuda-python/pulls
Discussionshttps://github.com/NVIDIA/cuda-python/discussions
Actionshttps://github.com/NVIDIA/cuda-python/actions
Projectshttps://github.com/NVIDIA/cuda-python/projects
Wikihttps://github.com/NVIDIA/cuda-python/wiki
Security and qualityhttps://github.com/NVIDIA/cuda-python/security
Insightshttps://github.com/NVIDIA/cuda-python/pulse
https://github.com/NVIDIA/cuda-python
New issuehttps://github.com/login?return_to=https://github.com/NVIDIA/cuda-python/issues/951
New issuehttps://github.com/login?return_to=https://github.com/NVIDIA/cuda-python/issues/951
#1055https://github.com/NVIDIA/cuda-python/pull/1055
Library bindings are not importable if the underlying library is not installedhttps://github.com/NVIDIA/cuda-python/issues/951#top
#1055https://github.com/NVIDIA/cuda-python/pull/1055
https://github.com/rwgk
P0High priority - Must do!https://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3A%22P0%22
bugSomething isn't workinghttps://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3A%22bug%22
cuda.coreEverything related to the cuda.core modulehttps://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3A%22cuda.core%22
cuda.core beta 7https://github.com/NVIDIA/cuda-python/milestone/19
https://github.com/leofang
leofanghttps://github.com/leofang
on Sep 8, 2025https://github.com/NVIDIA/cuda-python/issues/951#issue-3394329010
#920https://github.com/NVIDIA/cuda-python/issues/920
@kkraus14https://github.com/kkraus14
#728https://github.com/NVIDIA/cuda-python/issues/728
leofanghttps://github.com/leofang
cuda-python 13-next, 12-nexthttps://github.com/NVIDIA/cuda-python/milestone/14
on Sep 8, 2025https://github.com/NVIDIA/cuda-python/issues/951#event-19565740051
leofanghttps://github.com/leofang
rwgkhttps://github.com/rwgk
on Sep 8, 2025https://github.com/NVIDIA/cuda-python/issues/951#event-19565740145
leofanghttps://github.com/leofang
bugSomething isn't workinghttps://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3A%22bug%22
P0High priority - Must do!https://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3A%22P0%22
cuda.bindingsEverything related to the cuda.bindings modulehttps://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3A%22cuda.bindings%22
on Sep 8, 2025https://github.com/NVIDIA/cuda-python/issues/951#event-19565740631
leofanghttps://github.com/leofang
rwgkhttps://github.com/rwgk
on Sep 8, 2025https://github.com/NVIDIA/cuda-python/issues/951#event-19565762179
https://github.com/leofang
leofanghttps://github.com/leofang
on Sep 8, 2025https://github.com/NVIDIA/cuda-python/issues/951#issuecomment-3266468879
@mdboomhttps://github.com/mdboom
@rwgkhttps://github.com/rwgk
https://github.com/leofang
leofanghttps://github.com/leofang
on Sep 8, 2025https://github.com/NVIDIA/cuda-python/issues/951#issuecomment-3267447462
@rwgkhttps://github.com/rwgk
mdboomhttps://github.com/mdboom
on Sep 30, 2025https://github.com/NVIDIA/cuda-python/issues/951#event-20014542271
mdboomhttps://github.com/mdboom
on Sep 30, 2025https://github.com/NVIDIA/cuda-python/issues/951#event-20015309216
Fix NVIDIA#951: Fallback gracefully if a library can't be loadedhttps://github.com/mdboom/cuda-python/commit/f46d0f49b7c3d3a88cbfad374105690ba5bdbef0
NVIDIA#951https://github.com/NVIDIA/cuda-python/issues/951
https://docs.github.com/articles/closing-issues-via-commit-messages
f46d0f4https://github.com/mdboom/cuda-python/commit/f46d0f49b7c3d3a88cbfad374105690ba5bdbef0
https://github.com/mdboom
mdboomhttps://github.com/mdboom
on Sep 30, 2025https://github.com/NVIDIA/cuda-python/issues/951#issuecomment-3353566664
https://github.com/leofang
leofanghttps://github.com/leofang
on Sep 30, 2025https://github.com/NVIDIA/cuda-python/issues/951#issuecomment-3353968447
cuda-python/cuda_core/cuda/core/experimental/_linker.pyhttps://github.com/NVIDIA/cuda-python/blob/c4bb6230eb448a77b38b707cfb4c3be24808cd6f/cuda_core/cuda/core/experimental/_linker.py#L47-L49
c4bb623https://github.com/NVIDIA/cuda-python/commit/c4bb6230eb448a77b38b707cfb4c3be24808cd6f
cuda-python/cuda_core/cuda/core/experimental/_linker.pyhttps://github.com/NVIDIA/cuda-python/blob/c4bb6230eb448a77b38b707cfb4c3be24808cd6f/cuda_core/cuda/core/experimental/_linker.py#L43-L45
c4bb623https://github.com/NVIDIA/cuda-python/commit/c4bb6230eb448a77b38b707cfb4c3be24808cd6f
cuda-python/.github/workflows/test-wheel-linux.ymlhttps://github.com/NVIDIA/cuda-python/blob/5a134485b2d20f623c8d44d185f6416d09f85431/.github/workflows/test-wheel-linux.yml#L64-L72
5a13448https://github.com/NVIDIA/cuda-python/commit/5a134485b2d20f623c8d44d185f6416d09f85431
@mdboomhttps://github.com/mdboom
@rwgkhttps://github.com/rwgk
leofanghttps://github.com/leofang
rwgkhttps://github.com/rwgk
mdboomhttps://github.com/mdboom
on Oct 2, 2025https://github.com/NVIDIA/cuda-python/issues/951#event-20069311246
leofanghttps://github.com/leofang
cuda.coreEverything related to the cuda.core modulehttps://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3A%22cuda.core%22
cuda.bindingsEverything related to the cuda.bindings modulehttps://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3A%22cuda.bindings%22
on Oct 2, 2025https://github.com/NVIDIA/cuda-python/issues/951#event-20069315834
leofanghttps://github.com/leofang
cuda-python 13.0.2 & 12.9.3https://github.com/NVIDIA/cuda-python/milestone/14
cuda.core beta 7https://github.com/NVIDIA/cuda-python/milestone/19
on Oct 2, 2025https://github.com/NVIDIA/cuda-python/issues/951#event-20069316412
leofanghttps://github.com/leofang
completedhttps://github.com/NVIDIA/cuda-python/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#1055https://github.com/NVIDIA/cuda-python/pull/1055
on Oct 7, 2025https://github.com/NVIDIA/cuda-python/issues/951#event-20151743581
Sign up for freehttps://github.com/signup?return_to=https://github.com/NVIDIA/cuda-python/issues/951
Sign in to commenthttps://github.com/login?return_to=https://github.com/NVIDIA/cuda-python/issues/951
rwgkhttps://github.com/rwgk
P0High priority - Must do!https://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3A%22P0%22
bugSomething isn't workinghttps://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3A%22bug%22
cuda.coreEverything related to the cuda.core modulehttps://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3A%22cuda.core%22
cuda.core beta 7https://github.com/NVIDIA/cuda-python/milestone/19
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.