Status: Valid
Owner: ----
Labels: Type-Defect Priority-Medium Documentation Python3
New issue 3598 by [email protected]: Docs do not build in Python 3
http://code.google.com/p/sympy/issues/detail?id=3598
Running Sphinx v1.1.3
loading translations [zh]... done
loading pickled environment... not yet created
Exception occurred:
File "../sympy/sets/__init__.py", line 1, in <module>
from .fancysets import TransformationSet, Range
File "../sympy/sets/fancysets.py", line 13
class Naturals(Set, metaclass=Singleton):
^
SyntaxError: invalid syntax
The full traceback has been saved in
/var/folders/wc/dppcpmxs1tlb36nqcw853wkm0000gq/T/sphinx-err-E_043m.log, if
you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error
message can be provided next time.
Either send bugs to the mailing list at
<http://groups.google.com/group/sphinx-dev/>,
or report them in the tracker at
<http://bitbucket.org/birkenfeld/sphinx/issues/>. Thanks!
cp: _build/i18n/zh/tutorial/tutorial.html: No such file or directory
make: *** [htmli18n] Error 1
(it does this several times, for each language I guess). The full
traceback from the log is
# Sphinx version: 1.1.3
# Python version: 2.7.3
# Docutils version: 0.8 release
# Jinja2 version: 2.6
Traceback (most recent call last):
File "/sw/lib/python2.7/site-packages/sphinx/cmdline.py", line 188, in
main
warningiserror, tags)
File "/sw/lib/python2.7/site-packages/sphinx/application.py", line 134,
in __init__
self._init_builder(buildername)
File "/sw/lib/python2.7/site-packages/sphinx/application.py", line 194,
in _init_builder
self.builder = builderclass(self)
File "/sw/lib/python2.7/site-packages/sphinx/builders/__init__.py", line
57, in __init__
self.init()
File "/sw/lib/python2.7/site-packages/sphinx/builders/html.py", line 94,
in init
self.init_templates()
File "/sw/lib/python2.7/site-packages/sphinx/builders/html.py", line 131,
in init_templates
self.create_template_bridge()
File "/sw/lib/python2.7/site-packages/sphinx/builders/__init__.py", line
72, in create_template_bridge
from sphinx.jinja2glue import BuiltinTemplateLoader
File "/sw/lib/python2.7/site-packages/sphinx/jinja2glue.py", line 18, in
<module>
from jinja2.sandbox import SandboxedEnvironment
File "/sw/lib/python2.7/site-packages/jinja2/sandbox.py", line 57, in
<module>
from sets import Set
File "../sympy/sets/__init__.py", line 1, in <module>
from .fancysets import TransformationSet, Range
File "../sympy/sets/fancysets.py", line 13
class Naturals(Set, metaclass=Singleton):
^
SyntaxError: invalid syntax
I bisected this to
commit 96d4b7f4f680dd41d126f69a77b78757ac9f8059
Author: Aaron Meurer <[email protected]>
Date: Sun Dec 16 23:28:39 2012 -0700
Make sure Sphinx extensions are put in the front of the PATH
On a related note, we need to start testing Sphinx in Python 3 with SymPy
bot (or at least "we" meaning "I").
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en.