I solved this problem by changing line 193 of sphinx/config.py as follows: #~ f = open(config_file, 'rb') f = open(config_file)
Why do you read the file in binary mode? IMHO the binary mode causes problems for compile() when the file contains CR+LF instead of single LF. I'd suggest change this in Sphinx. But I admit that I have no explanation for why nobody else reported this problem until now. Luc On 18.10.2010 2:01, Luc Saffre wrote: > On 17.10.2010 19:48, Georg Brandl wrote: >> Am 16.10.2010 21:38, schrieb Luc Saffre: >>> when I try to build my docs using the latest development version, I get >>> the following error:: >> >> That sounds strange indeed. Does your Sphinx happen to run on Python 3? > > No, with Python 3.2.1 it says:: > > python l:\\snapshots\\sphinx\\sphinx-build.py -b html \ > -d C:\\temp\\sphinxbuild\\lino\\doctrees \ > . C:\\temp\\sphinxbuild\\lino\\html > Traceback (most recent call last): > File "l:\snapshots\sphinx\sphinx-build.py", line 15, in <module> > sys.exit(main(sys.argv)) > File "l:\snapshots\sphinx\sphinx\__init__.py", line 47, in main > from sphinx import cmdline > File "l:\snapshots\sphinx\sphinx\cmdline.py", line 183 > except Exception, err: > ^ > SyntaxError: invalid syntax > > `hg tip` in my development copy of Sphinx says:: > > changeset: 2927:178ef550dfe5 > tag: tip > parent: 2926:0c4bd1e47eb7 > parent: 2924:407346b47d9e > user: Georg Brandl <[email protected]> > date: Sat Oct 16 21:56:02 2010 +0200 > summary: merge > > Luc -- You received this message because you are subscribed to the Google Groups "sphinx-dev" 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/sphinx-dev?hl=en.
