Skip to content

chore: cap torch-geometric below 2.8#902

Merged
sevmag merged 1 commit into
graphnet-team:mainfrom
sevmag:chore/pin-PyG-version
Jun 11, 2026
Merged

chore: cap torch-geometric below 2.8#902
sevmag merged 1 commit into
graphnet-team:mainfrom
sevmag:chore/pin-PyG-version

Conversation

@sevmag

@sevmag sevmag commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator

Summary

Caps torch-geometric<2.8 in all three torch extras (torch-25, torch-26, torch-27) in setup.py.

torch-geometric 2.8.0 (released 2026-06-05) rewrote knn_graph to hard-require pyg-lib>=0.6.0 and removed the torch-cluster fallback. The PyG wheel index only ships pyg-lib>=0.6.0 for torch 2.8.0, so installs on our pinned torch versions (2.5/2.6/2.7) resolve to an older pyg-lib and fail at import:

ImportError: 'knn_graph' requires 'pyg-lib>=0.6.0'

Because torch-geometric was 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.8 until pyg-lib>=0.6.0 wheels exist for the pinned torch versions.

Closes #901

🤖 Generated with Claude Code

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>
@sevmag sevmag requested a review from Aske-Rosted June 10, 2026 15:54

@Aske-Rosted Aske-Rosted left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for looking into this.

@sevmag sevmag merged commit ced21ab into graphnet-team:main Jun 11, 2026
12 checks passed
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.

torch-geometric 2.8.0 breaks CI: knn_graph requires pyg-lib>=0.6.0

2 participants