rtfd/readthedocs.org — Issue #132: Build failed
Author: fibichrj
Created: 2011-10-31 20:32:20+00:00
State: open

Hi, I'm in struggle with this build error via RTFD we get on 'csjark' project, 'master' branch . It seems it concerns the Python v3 syntax we use in the project.
The builder doesn't like

values = {p.flag: p.name for name, p in self.platforms.items()}

as it seems to be Python syntax since v3.0.1 - [PEP 0274](http://www.python.org/dev/peps/pep-0274/).
The build completes fine via Sphinx 1.1.

Exception occurred:
File "/home/docs/sites/readthedocs.org/lib/python2.6/site-packages/sphinx/ext/autosummary/__init__.py", line 456, in _import_by_name
__import__(modname)
File "/home/docs/sites/readthedocs.org/checkouts/readthedocs.org/user_builds/csjark/checkouts/latest/CSjark/csjark/dissector.py", line 759
values = {p.flag: p.name for name, p in self.platforms.items()}
^
SyntaxError: invalid syntax
Traceback (most recent call last):
File "/home/docs/sites/readthedocs.org/bin/sphinx-build", line 8, in
load_entry_point('Sphinx==1.1', 'console_scripts', 'sphinx-build')()
File "/home/docs/sites/readthedocs.org/lib/python2.6/site-packages/sphinx/__init__.py", line 72, in main
return cmdline.main(argv)
File "/home/docs/sites/readthedocs.org/lib/python2.6/site-packages/sphinx/cmdline.py", line 216, in main
tbpath = save_traceback()
File "/home/docs/sites/readthedocs.org/lib/python2.6/site-packages/sphinx/util/__init__.py", line 179, in save_traceback
platform.python_version(),
AttributeError: 'module' object has no attribute 'python_version'