On May 11, 2009, at 12:11 PM, Walter Cruz wrote:
> pylons repo get from: http://pylonshq.com/hg/pylons-dev/ > > (sphinx)wal...@stark ~/devel/python/pylons/pylons/docs/en$ make html > mkdir -p _build/html _build/doctrees > sphinx-build -b html -d _build/doctrees . _build/html > Running Sphinx v0.6.1 > loading pickled environment... not found > building [html]: targets for 77 source files that are out of date > updating environment: 77 added, 0 changed, 0 removed > Exception occurred:[ 58%] thirdparty/formencode_api > File "/home/walter/.virtualenvs/sphinx/lib/python2.5/site-packages/ > Sphinx-0.6.1-py2.5.egg/sphinx/ext/autodoc.py", line 487, in > get_object_members > for mname in self.get_attr(self.object, '__dict__')]) > RuntimeError: dictionary changed size during iteration > The full traceback has been saved in /tmp/sphinx-err-OtGUsQ.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! > make: ** [html] Erro 1 > > > The trouble is with pylons docs or sphinx? Luckily sphinx-build has a pdb option (-P) which let me narrow this down easily, formencode.Validator triggers it. It's really a sphinx bug with tricky classes, this fixes it: http://pylonshq.com/pasties/cd4b0d856ce7efe39b8e7378b931c3ee Could you maybe log a ticket about this with Sphinx? I get another even stranger error after this when it's autodocing WebOb. Do you get this with the patch applied? Exception occurred:[ 89%] thirdparty/webob File "/Users/pjenvey/src/python/pylons-apple/lib/python2.5/site- packages/Sphinx-0.6.1-py2.5.egg/sphinx/ext/autodoc.py", line 844, in import_object self.doc_as_attr = (self.objpath[-1] != self.object.__name__) AttributeError: '_AnyETag' object has no attribute '__name__' -> >>> from webob.etag import _AnyETag >>> _AnyETag.__name__ '_AnyETag' FYI downgrading Sphinx should get around all this. -- Philip Jenvey --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" 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/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
