Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial build of html docs fails with a 404 #231

Open
kpinc opened this issue Mar 29, 2024 · 1 comment
Open

Initial build of html docs fails with a 404 #231

kpinc opened this issue Mar 29, 2024 · 1 comment

Comments

@kpinc
Copy link

kpinc commented Mar 29, 2024

Hi,

Following the instructions here:
https://github.com/Pylons/pyramid_cookbook/blob/master/contributing.md

In the Build HTML docs step, the build fails with a 404.

$ make html SPHINXBUILD=../../venv/bin/sphinx-build 
../../venv/bin/sphinx-build -b html -d _build/doctrees  -W . _build/html
Running Sphinx v7.2.6
making output directory... done
loading intersphinx inventory from https://docs.python.org/objects.inv...
loading intersphinx inventory from https://docs.python.org/3/objects.inv...
loading intersphinx inventory from https://docs.pylonsproject.org/projects/pyramid/en/latest/objects.inv...
loading intersphinx inventory from https://docs.pylonsproject.org/projects/pyramid-tutorials/en/latest/objects.inv...
intersphinx inventory has moved: https://docs.python.org/objects.inv -> https://docs.python.org/3/objects.inv

Warning, treated as error:
failed to reach any of the inventories with the following issues:
intersphinx inventory 'https://docs.pylonsproject.org/projects/pyramid-tutorials/en/latest/objects.inv' not fetchable due to <class 'requests.exceptions.HTTPError'>: 404 Client Error: Not Found for url: https://docs.pylonsproject.org/projects/pyramid-tutorials/en/latest/objects.inv
make: *** [Makefile:40: html] Error 2

Looks like the inventory url has moved to: https://docs.python.org/3/objects.inv

@kpinc
Copy link
Author

kpinc commented Mar 29, 2024

The quick and dirty work-around is to tell the build process to ignore warnings by removing the -W sphinx-build option by passing SPHINXOPTS='' to make.

$ make SPHINXOPTS='' html SPHINXBUILD=../../venv/bin/sphinx-build 

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

No branches or pull requests

1 participant