pytorch - ✅(Solved) Fix [docs] pytorch.org/docs/stable/objects.inv 404s since pytorch/docs#84, breaking intersphinx for downstream Sphinx projects [1 pull requests, 1 comments, 1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
pytorch/pytorch#182007Fetched 2026-05-01 05:32:54
View on GitHub
Comments
1
Participants
1
Timeline
29
Reactions
0
Author
Participants
Assignees
Timeline (top)
subscribed ×11mentioned ×10labeled ×4assigned ×1

Error Message

intersphinx inventory 'https://pytorch.org/docs/stable/objects.inv' not fetchable due to <class 'urllib.error.HTTPError'>: HTTP Error 404: Not Found ERROR - mkdocstrings: Couldn't load inventory https://pytorch.org/docs/stable/objects.inv through handler 'python': HTTP Error 404: Not Found

Root Cause

pytorch/docs#84 replaced filesystem symlinks under stable/, master/, 1.7.0/, 1.9.0/ with per-page HTML redirect stubs, generated by scripts/make_stubs.py --mirror-canonical. The script has

DEFAULT_KEEP = {"searchindex.js", "objects.inv", ".buildinfo"}

with intent to preserve those files as real bytes under each alias, and the default walk-alias mode honors it correctly. The bug: --mirror-canonical mode iterates iter_canonical_html() (filtered to .html), so keep-listed files are never copied. The PR's "Caveat" section flagged that interactive deep-links to _static/_images would 404, but didn't surface that objects.inv is in the same bucket — and that one is the machine-readable contract surface for every Sphinx project in the ecosystem.

Fix Action

Fix

Surgical patch to scripts/make_stubs.py: pytorch/docs#85. Adds ~13 MB to the deploy artifact (still 99.5% of #84's savings, far under the 10 GB Pages cap).

PR fix notes

PR #1109: Pin url for torch's interpshinx mapping

Description (problem / solution / changelog)

From https://github.com/pytorch/pytorch/issues/182007

Changed files

  • docs/src/conf.py (modified, +1/-1)

Code Example

WARNING: failed to reach any of the inventories with the following issues:
intersphinx inventory 'https://pytorch.org/docs/stable/objects.inv' not fetchable due to <class 'urllib.error.HTTPError'>: HTTP Error 404: Not Found

---

ERROR - mkdocstrings: Couldn't load inventory https://pytorch.org/docs/stable/objects.inv through handler 'python': HTTP Error 404: Not Found
Aborted with 1 errors, 20 warnings in strict mode!

---

DEFAULT_KEEP = {"searchindex.js", "objects.inv", ".buildinfo"}
RAW_BUFFERClick to expand / collapse

🐛 Describe the bug

https://pytorch.org/docs/stable/objects.inv (and searchindex.js, .buildinfo) return 404 since pytorch/docs#84 was merged 2026-04-29 23:09 UTC. This breaks intersphinx for every downstream Sphinx project that cross-references PyTorch, and breaks mkdocstrings-based docs (mkdocs build --strict aborts).

Symptom

Sphinx:

WARNING: failed to reach any of the inventories with the following issues:
intersphinx inventory 'https://pytorch.org/docs/stable/objects.inv' not fetchable due to <class 'urllib.error.HTTPError'>: HTTP Error 404: Not Found

mkdocstrings (--strict):

ERROR - mkdocstrings: Couldn't load inventory https://pytorch.org/docs/stable/objects.inv through handler 'python': HTTP Error 404: Not Found
Aborted with 1 errors, 20 warnings in strict mode!

Root cause

pytorch/docs#84 replaced filesystem symlinks under stable/, master/, 1.7.0/, 1.9.0/ with per-page HTML redirect stubs, generated by scripts/make_stubs.py --mirror-canonical. The script has

DEFAULT_KEEP = {"searchindex.js", "objects.inv", ".buildinfo"}

with intent to preserve those files as real bytes under each alias, and the default walk-alias mode honors it correctly. The bug: --mirror-canonical mode iterates iter_canonical_html() (filtered to .html), so keep-listed files are never copied. The PR's "Caveat" section flagged that interactive deep-links to _static/_images would 404, but didn't surface that objects.inv is in the same bucket — and that one is the machine-readable contract surface for every Sphinx project in the ecosystem.

Blast radius

Workarounds shipped (all pin to /docs/<X.Y>/):

  • vllm-project/vllm#41353
  • isaac-sim/IsaacLab#5452 (merged)
  • newton-physics/newton#2660 (merged)

Latently broken (intersphinx pytorch.org/docs/stable/ but no docs CI run since the merge):

  • Lightning-AI/pytorch-lightning (both pytorch and fabric confs)
  • pytorch/vision
  • pytorch/audio
  • pytorch/text
  • skorch-dev/skorch

Unaffected:

  • HuggingFace stack (transformers/accelerate/diffusers/peft) uses HF's own doc-builder, not Sphinx + intersphinx.
  • pyg-team/pytorch_geometric pre-pinned to /docs/main/.

Fix

Surgical patch to scripts/make_stubs.py: pytorch/docs#85. Adds ~13 MB to the deploy artifact (still 99.5% of #84's savings, far under the 10 GB Pages cap).

Versions

Affects production docs at pytorch.org/docs/stable (and master, 1.7.0, 1.9.0) since 2026-04-29 23:09 UTC.

cc @svekars @sekyondaMeta @AlannaBurke

extent analysis

TL;DR

Apply the surgical patch to scripts/make_stubs.py as described in pytorch/docs#85 to restore the missing objects.inv file.

Guidance

  • Verify the issue by checking the HTTP status code of https://pytorch.org/docs/stable/objects.inv and looking for 404 errors in Sphinx or mkdocstrings builds.
  • Temporarily pin downstream projects to a specific version of PyTorch docs (e.g., /docs/<X.Y>/) to avoid the broken objects.inv file.
  • Review the DEFAULT_KEEP set in scripts/make_stubs.py to ensure it includes all necessary files that should be preserved as real bytes under each alias.
  • Test the fix by running mkdocs build --strict or Sphinx builds with intersphinx enabled to confirm that the objects.inv file is accessible again.

Notes

The provided fix assumes that the issue is indeed caused by the missing objects.inv file and that the surgical patch to scripts/make_stubs.py correctly addresses the problem. It's essential to verify the fix and test it thoroughly to ensure that it resolves the issue without introducing new problems.

Recommendation

Apply the workaround by pinning downstream projects to a specific version of PyTorch docs until the surgical patch to scripts/make_stubs.py is deployed and verified to fix the issue. This will allow projects to continue building their documentation without errors related to the missing objects.inv file.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

pytorch - ✅(Solved) Fix [docs] pytorch.org/docs/stable/objects.inv 404s since pytorch/docs#84, breaking intersphinx for downstream Sphinx projects [1 pull requests, 1 comments, 1 participants]