This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Python documentation build fails with "markupsafe module cannot be found"
Type: Stage: resolved
Components: Build, Documentation Versions: Python 3.3, Python 3.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: georg.brandl Nosy List: georg.brandl, larry, ned.deily, python-dev
Priority: release blocker Keywords:

Created on 2014-01-14 10:05 by ned.deily, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (3)
msg208089 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2014-01-14 10:05
With the updates to the Sphinx toolchain for 3.3 (05e84d3ecd1e) and 3.4 (90cd87f64632), the documentation build for the OS X installer now fails with:
  
Error: The markupsafe module cannot be found. Did you install Sphinx and its dependencies correctly?

It appears that the updated version of jinja2 now requires MarkupSafe.

Also, the updated version of jinja2 now requires at least Python 2.6. Prior to these toolchain updates it was possible to build the Python documentation (and all of Python 2.x or 3.x) with Python 2.5.  Perhaps this change should be documented somewhere since it does cause some breakage.  For example, the current Python 32-bit-only installers are built on OS X 10.5; up until now, the Apple-supplied system Python 2.5 could be used to bootstrap the build and build the documentation.  Now we'll have to supply a newer local Python to do that.
msg208090 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2014-01-14 10:59
That's unfortunate, thanks for catching that.  Of course I had markupsafe installed for my system Python.

One more reason to switch to virtualenv at some point.

I think we can go back to the old Jinja version -- there haven't been bugs to my knowledge and Sphinx doesn't require any advanced features there may be.

But just as a heads up -- Sphinx 1.3 will also require Python 2.6 :)
msg208091 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2014-01-14 11:27
New changeset 92fe1cd256f1 by Georg Brandl in branch '3.3':
Closes #20258: Sphinx toolchain: move back to Jinja2 2.3.1 with support for Py2.5.
http://hg.python.org/cpython/rev/92fe1cd256f1
History
Date User Action Args
2022-04-11 14:57:56adminsetgithub: 64457
2014-01-14 11:27:25python-devsetstatus: open -> closed

nosy: + python-dev
messages: + msg208091

resolution: fixed
stage: needs patch -> resolved
2014-01-14 10:59:00georg.brandlsetmessages: + msg208090
2014-01-14 10:05:13ned.deilycreate