The templating syntax changed slightly, because Sphinx 0.6 uses Jinja version 2.

The line should be {%- macro relbar() %}  (which also works with later versions
of Jinja 1).

Georg

Nichols A. Romero schrieb:
> I am building some documentation for a code, called GPAW, and I get this 
> error:
> 
> I am on MAC Leopard OS.
> 
> Running Sphinx v0.6b1
> running: ./exercises/neb/plot.py
> ./exercises/neb Al110slab.png
> running: ./exercises/transport/pt_h2.py
> ./exercises/transport pt_h2.png
> No builder selected, using default: html
> loading pickled environment... done
> building [html]: targets for 167 source files that are out of date
> updating environment: 0 added, 3 changed, 0 removed
> reading sources... [100%] install/BGP/using_TAU_on_surveyor
> /Users/naromero/gpaw/doc/exercises/neb/neb.rst:: WARNING: image file not 
> readable: exercises/neb/Al110slab.png
> /Users/naromero/gpaw/doc/exercises/transport/transport.rst:: WARNING: image 
> file not readable: exercises/transport/pt_h2.png
> /Users/naromero/gpaw/doc/exercises/transport/transport.rst:: WARNING: image 
> file not readable: exercises/transport/pt_h2.png
> looking for now-outdated files... none found
> pickling environment... done
> checking consistency... done
> preparing documents... done
> Exception occurred:  0%] contents               
>   File 
> "/Library/Frameworks/Python.framework/Versions/4.1.30001/lib/python2.5/site-packages/Jinja2-2.1.1-py2.5-macosx-10.3-i386.egg/jinja2/environment.py",
>  line 357, in parse
>     raise e
> TemplateSyntaxError: expected token 'lparen', got 'block_end'
>   File "/Users/naromero/gpaw/doc/_templates/layout.html", line 7
>     {%- macro relbar %}
> The full traceback has been saved in 
> /var/folders/Lj/LjY0obvVGQCTq9U42uGTIE+++TQ/-Tmp-/sphinx-err-TEGina.log, if 
> you want to report the issue to the author.
> Please also report this if it was a user error, so that a better error 
> message can be provided next time.
> Send reports to [email protected]. Thanks!
> 
> 
> Nichols A. Romero, Ph.D.
> Argonne Leadership Computing Facility
> Argonne National Laboratory
> Building 360 Room L-146
> 9700 South Cass Avenue
> Argonne, IL 60490
> (630) 252-3441
> 
> 
> > 


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

Reply via email to