Hi George, On Aug 23, 9:15 pm, Georg Brandl wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Am 23.08.2010 20:04, schrieb Infinity77: > > > > > > > Thank you for the new release. With Python 2.5 at work, everything > > works smoothly. With 2.6 on my computer, I get this exception: > > > looking for now-outdated files... none found > > pickling environment... done > > checking consistency... done > > preparing documents... done > > writing output... [ 0%] advancedsplash.AdvancedSplash > > > Exception occurred: > > File "C:\Python26\lib\site-packages\jinja2-2.5.2-py2.6.egg > > \jinja2\lexer.py", line 343, in next > > self.current = self._next() > > ValueError: generator already executing > > The full traceback has been saved in c:\users\andrea\appdata\local\temp > > \sphinx-err-88o06g.log, if you want to report the > > issue to the developers. > > <...> > > > The full exception follows: > > > # Sphinx version: 1.0.3 > > # Docutils version: 0.7 release > > # Jinja2 version: 2.5.2 > > Traceback (most recent call last): > > File "C:\Python26\lib\site-packages\sphinx-1.0.3-py2.6.egg\sphinx > > \cmdline.py", line 173, in main > > app.build(force_all, filenames) > > File "C:\Python26\lib\site-packages\sphinx-1.0.3-py2.6.egg\sphinx > > \application.py", line 210, in build > > raise > > File "C:\Python26\lib\site-packages\sphinx-1.0.3-py2.6.egg\sphinx > > \application.py", line 207, in build > > self.builder.build_update() > > File "C:\Python26\lib\site-packages\sphinx-1.0.3-py2.6.egg\sphinx > > \builders\__init__.py", line 198, in build_update > > 'out of date' % len(to_build)) > > File "C:\Python26\lib\site-packages\sphinx-1.0.3-py2.6.egg\sphinx > > \builders\__init__.py", line 254, in build > > self.write(docnames, list(updated_docnames), method) > > File "C:\Python26\lib\site-packages\sphinx-1.0.3-py2.6.egg\sphinx > > \builders\__init__.py", line 293, in write > > self.write_doc(docname, doctree) > > File "C:\Python26\lib\site-packages\sphinx-1.0.3-py2.6.egg\sphinx > > \builders\html.py", line 406, in write_doc > > self.handle_page(docname, ctx, event_arg=doctree) > > File "C:\Python26\lib\site-packages\sphinx-1.0.3-py2.6.egg\sphinx > > \builders\html.py", line 696, in handle_page > > output = self.templates.render(templatename, ctx) > > File "C:\Python26\lib\site-packages\sphinx-1.0.3-py2.6.egg\sphinx > > \jinja2glue.py", line 108, in render > > return self.environment.get_template(template).render(context) > > File "C:\Python26\lib\site-packages\jinja2-2.5.2-py2.6.egg > > \jinja2\environment.py", line 716, in get_template > > return self._load_template(name, self.make_globals(globals)) > > File "C:\Python26\lib\site-packages\jinja2-2.5.2-py2.6.egg > > \jinja2\environment.py", line 690, in _load_template > > template = self.loader.load(self, name, globals) > > File "C:\Python26\lib\site-packages\jinja2-2.5.2-py2.6.egg > > \jinja2\loaders.py", line 127, in load > > code = environment.compile(source, name, filename) > > File "C:\Python26\lib\site-packages\jinja2-2.5.2-py2.6.egg > > \jinja2\environment.py", line 478, in compile > > source = self._parse(source, name, filename) > > File "C:\Python26\lib\site-packages\jinja2-2.5.2-py2.6.egg > > \jinja2\environment.py", line 397, in _parse > > return Parser(self, source, name, > > _encode_filename(filename)).parse() > > File "C:\Python26\lib\site-packages\jinja2-2.5.2-py2.6.egg > > \jinja2\parser.py", line 32, in __init__ > > self.stream = environment._tokenize(source, name, filename, state) > > File "C:\Python26\lib\site-packages\jinja2-2.5.2-py2.6.egg > > \jinja2\environment.py", line 429, in _tokenize > > stream = self.lexer.tokenize(source, name, filename, state) > > File "C:\Python26\lib\site-packages\jinja2-2.5.2-py2.6.egg > > \jinja2\lexer.py", line 501, in tokenize > > return TokenStream(self.wrap(stream, name, filename), name, > > filename) > > File "C:\Python26\lib\site-packages\jinja2-2.5.2-py2.6.egg > > \jinja2\lexer.py", line 298, in __init__ > > next(self) > > File "C:\Python26\lib\site-packages\jinja2-2.5.2-py2.6.egg > > \jinja2\lexer.py", line 343, in next > > self.current = self._next() > > ValueError: generator already executing > > > The configurations I have (at work with Python 2.5 and at home with > > 2.6) are exactly the same in terms of docutils, jinja, pigments and > > friends. What could be causing this kind of exception? > > Hi Andrea, > > that is a good question. I have a very weak and maybe wrong recollection > that someone already had such a problem; in any case I will take it up > with Armin, the developer of Jinja. > > Could you maybe try a few different versions, such as 2.5.1 or 2.5? > (Though I'm using 2.5.2 here too, and it works for me.)
It works for me with 2.5.2 and 2.5.4 on two different computers. Maybe it's just a glitch on 2.6? I have no idea... Andrea. -- 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.