chore: cap torch-geometric below 2.8#902
Merged
Merged
Conversation
torch-geometric 2.8.0 rewrote knn_graph to hard-require pyg-lib>=0.6.0, dropping the torch-cluster fallback. The PyG wheel index only ships pyg-lib>=0.6.0 for torch 2.8.0, so torch 2.5/2.6/2.7 installs resolve to an older pyg-lib and fail at import with: ImportError: 'knn_graph' requires 'pyg-lib>=0.6.0' Cap all torch extras at torch-geometric<2.8 until pyg-lib>=0.6.0 wheels exist for the pinned torch versions. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Aske-Rosted
approved these changes
Jun 10, 2026
Aske-Rosted
left a comment
Collaborator
There was a problem hiding this comment.
Thanks for looking into this.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Caps
torch-geometric<2.8in all three torch extras (torch-25,torch-26,torch-27) insetup.py.torch-geometric 2.8.0 (released 2026-06-05) rewrote
knn_graphto hard-requirepyg-lib>=0.6.0and removed thetorch-clusterfallback. The PyG wheel index only shipspyg-lib>=0.6.0for torch 2.8.0, so installs on our pinned torch versions (2.5/2.6/2.7) resolve to an olderpyg-liband fail at import:Because
torch-geometricwas unpinned, CI went red with no code change on our side — purely an upstream release picked up by dependency resolution.Fix
Pin
torch-geometric<2.8untilpyg-lib>=0.6.0wheels exist for the pinned torch versions.Closes #901
🤖 Generated with Claude Code