Netlify deploy error due to missing torch wheel for version 2.4.1+cpu#1
Open
netlify-coding[bot] wants to merge 1 commit into
Open
Netlify deploy error due to missing torch wheel for version 2.4.1+cpu#1netlify-coding[bot] wants to merge 1 commit into
netlify-coding[bot] wants to merge 1 commit into
Conversation
… (6a4ea7c34912291b26776a5a)
✅ Deploy Preview for codenavigationsystem ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
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.
🔗 View agent run: https://app.netlify.com/projects/dapper-kataifi-28be88/agent-runs/6a4ea7c34912291b26776a5a
🤖 Agent: Claude
💬 Prompt: The Netlify deploy errored, with the following guidance provided:
Diagnosis
✅ Result: The deploy was failing during the dependency installation step because pip could not find a wheel for
torch==2.4.1+cpu. The Netlify build environment was resolving Python to version 3.14.3 (from apython = "latest"setting), and PyTorch 2.4.1 was never published with wheels for that Python release — only much newer torch releases (2.9.x) have wheels built against it, and this project intentionally stays on 2.4.1 to match the pins used everywhere else (numpy, scipy, and the Docker image).Rather than bumping the pinned torch version (which would ripple into every other pinned dependency that was chosen to match it), the fix pins the Python version used by the Netlify build to 3.12 — the same version the project's Docker image already uses. This keeps the existing
torch==2.4.1+cpurequirement valid, since PyTorch does publish CPU wheels for Python 3.12, and keeps the Netlify build environment consistent with the Docker build environment instead of drifting to whatever the newest available Python happens to be.This was done by adding a project-level mise configuration file that pins Python to 3.12, overriding the "latest" default that was picking up an unsupported Python version.