mirror of
https://github.com/Comfy-Org/comfy-aimdo.git
synced 2026-11-04 23:37:21 +00:00
[GH-ISSUE #90] torch bridge requires numpy at runtime but the package declares no dependency on it #31
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/comfy-aimdo#31
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Kosinkadink on GitHub (Aug 16, 2026).
Original GitHub issue: https://github.com/Comfy-Org/comfy-aimdo/issues/90
comfy_aimdo/torch.pybuilds tensors from__cuda_array_interface__holders viatorch.as_tensor(holder, device=device)(line 22 at v0.4.13, unchanged since v0.4.10). torch'sas_tensorpath for array-interface holders requires NumPy; without it the call fails at runtime:(Reproduced with torch 2.13.0+cu130 and numpy hidden from the environment; also emits
UserWarning: Failed to initialize NumPy: No module named 'numpy'from torch internals.)pyproject.tomldeclares no runtime dependencies, so consumers installing comfy-aimdo get a working import but a broken tensor bridge unless numpy happens to be present. Suggest either declaringnumpyas a dependency (or an extra alongside the torch integration), or documenting the requirement and raising a clear ImportError fromcomfy_aimdo.torchwhen numpy is absent.Found while aligning Domfy to comfy-aimdo 0.4.13; Domfy now declares numpy in its own extra to compensate.