Skip to content

fix(packaging): guard find_spec against missing parent package#18

Merged
NewComer00 merged 1 commit into
mainfrom
fix/pyinstaller-hook-find-spec-robustness
Feb 25, 2026
Merged

fix(packaging): guard find_spec against missing parent package#18
NewComer00 merged 1 commit into
mainfrom
fix/pyinstaller-hook-find-spec-robustness

Conversation

@NewComer00
Copy link
Copy Markdown
Owner

importlib.util.find_spec raises ModuleNotFoundError when the parent of a dotted name (e.g. nvidia) is not installed, instead of returning None. Wrap the call so CPU-only builds don't error out.

importlib.util.find_spec raises ModuleNotFoundError when the parent
of a dotted name (e.g. nvidia) is not installed, instead of returning
None. Wrap the call so CPU-only builds don't error out.
@NewComer00 NewComer00 merged commit 7daccd2 into main Feb 25, 2026
3 checks passed
@NewComer00 NewComer00 deleted the fix/pyinstaller-hook-find-spec-robustness branch February 25, 2026 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant