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.

Tested with Python 2.5 and Python 2.6.

Everything is fine if I use the released version 1.0.4 but I thought I
should mention the issue here.

Luc

-- 
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.

Reply via email to