Opened 10 years ago

Closed 10 years ago

#23044 closed Bug (fixed)

Missing page

Reported by: anonymous Owned by: nobody
Component: *.djangoproject.com Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

https://docs.djangoproject.com/en/1.3/intro/tutorial03/

was the first hit searching google for "python requests django library tutorial" so since you might have traffic looking for that url I thought I'd report it.

Change History (6)

comment:1 by Baptiste Mispelon, 10 years ago

Component: Uncategorized*.djangoproject.com
Triage Stage: UnreviewedAccepted
Type: UncategorizedBug
Version: 1.6master

Hi,

Seeing how #23402, #23038, and #23035 were all filed recently, it seems something went wrong with the docs generation process.

First, I thought it was intentional that unsupported versions weren't made available anymore but now I'm starting to think this might have been accidental and it should probably be fixed.

Thanks!

comment:2 by Baptiste Mispelon, 10 years ago

This might be caused by a bug in sphinx.

Building the documentation locally for the 1.3 branch yields this traceback:

# Sphinx version: 1.2.2
# Python version: 3.4.1
# Docutils version: 0.12 release
# Jinja2 version: 2.7.3
# Loaded extensions:
#   djangodocs from django/docs/_ext/djangodocs.py
#   sphinx.ext.oldcmarkup from /usr/lib/python3.4/site-packages/sphinx/ext/oldcmarkup.py
Traceback (most recent call last):
  File "/usr/lib/python3.4/site-packages/sphinx/cmdline.py", line 254, in main
    app.build(force_all, filenames)
  File "/usr/lib/python3.4/site-packages/sphinx/application.py", line 212, in build
    self.builder.build_update()
  File "/usr/lib/python3.4/site-packages/sphinx/builders/__init__.py", line 214, in build_update
    'out of date' % len(to_build))
  File "/usr/lib/python3.4/site-packages/sphinx/builders/__init__.py", line 276, in build
    self.write(docnames, list(updated_docnames), method)
  File "/usr/lib/python3.4/site-packages/sphinx/builders/__init__.py", line 320, in write
    self._write_serial(sorted(docnames), warnings)
  File "/usr/lib/python3.4/site-packages/sphinx/builders/__init__.py", line 333, in _write_serial
    self.write_doc(docname, doctree)
  File "/usr/lib/python3.4/site-packages/sphinx/builders/html.py", line 433, in write_doc
    self.docwriter.write(doctree, destination)
  File "/usr/lib/python3.4/site-packages/docutils/writers/__init__.py", line 80, in write
    self.translate()
  File "/usr/lib/python3.4/site-packages/sphinx/writers/html.py", line 51, in translate
    self.document.walkabout(visitor)
  File "/usr/lib/python3.4/site-packages/docutils/nodes.py", line 174, in walkabout
    if child.walkabout(visitor):
  File "/usr/lib/python3.4/site-packages/docutils/nodes.py", line 174, in walkabout
    if child.walkabout(visitor):
  File "/usr/lib/python3.4/site-packages/docutils/nodes.py", line 174, in walkabout
    if child.walkabout(visitor):
  File "/usr/lib/python3.4/site-packages/docutils/nodes.py", line 187, in walkabout
    visitor.dispatch_departure(self)
  File "/usr/lib/python3.4/site-packages/docutils/nodes.py", line 1895, in dispatch_departure
    return method(node)
  File "/usr/lib/python3.4/site-packages/docutils/writers/html4css1/__init__.py", line 1561, in depart_table
    self.compact_p = self.context.pop()
IndexError: pop from empty list

comment:3 by Jannis Leidel, 10 years ago

I've upgraded Sphinx from 1.2 to 1.2.2 a few days ago, I wonder if this is causing the build error.

https://github.com/django/djangoproject.com/commit/85d3407a16692a8074348cba05b8102c9b829d10

BTW, can you paste the error you're seeing when building locally?

comment:4 by Jannis Leidel, 10 years ago

Ah, thanks!

comment:5 by Baptiste Mispelon, 10 years ago

Backporting the following 4 commits to the stable/1.3.X branch seems to fix the issue:

How far do we want to backport this though?

comment:6 by Tim Graham, 10 years ago

Resolution: fixed
Status: newclosed

Thanks for researching. I backported those commits to 1.3. I think docs for 1.0 and 1.1 have been gone for some time. Let's try dropping 1.2 now.

Note: See TracTickets for help on using tickets.
Back to Top