-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 16.10.2010 21:38, schrieb Luc Saffre: > Hi, > > when I try to build my docs using the latest development version, I get > the following error:: > > Running Sphinx v1.1pre/407346b47d9e+ > > Configuration error: > There is a syntax error in your configuration file: \ > invalid syntax (conf.py, line 13) > > But line 13 of my `conf.py` is an empty line just after the initial > comment lines. You can see the entire file here: > http://code.google.com/p/lino/source/browse/docs/conf.py > > I changed line 197 of sphinx/config.py from ``raise > ConfigError(CONFIG_SYNTAX_ERROR % err)`` into a simple ``raise`` in the > hope of getting more detailed traceback. Here it is:: > > # Sphinx version: 1.1pre/407346b47d9e+ > # Docutils version: 0.7 repository > # Jinja2 version: unknown > Traceback (most recent call last): > File "l:\snapshots\sphinx\sphinx\cmdline.py", line 172, in main > warningiserror, tags) > File "l:\snapshots\sphinx\sphinx\application.py", line 101, in __init__ > confoverrides or {}, self.tags) > File "l:\snapshots\sphinx\sphinx\config.py", line 186, in __init__ > code = compile(source, config_file, 'exec') > File "T:\hgwork\lino\docs\conf.py", line 11 > > ^ > SyntaxError: invalid syntax > > But that didn't help me to understand what's happening... > > If I just run ``python conf.py`` then I don't get any error message.
That sounds strange indeed. Does your Sphinx happen to run on Python 3? Georg -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) iEYEARECAAYFAky7KNcACgkQN9GcIYhpnLDMZACbBvCLaGCqLDmw6lliE+CjEVmh 4QMAoJEMoqVL/Fb4TcEnzhwJ2RRWO5nt =VIi7 -----END PGP SIGNATURE----- -- You received this message because you are subscribed to the Google Groups "sphinx-dev" group. To post to this group, send email to sphinx-...@googlegroups.com. To unsubscribe from this group, send email to sphinx-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sphinx-dev?hl=en.