[Python-modules-team] Bug#527496: python-webob: FTBFS: 'datetime.timedelta' object has no attribute '__name__'
ubanus at users.sf.net
Wed Jul 15 17:16:21 UTC 2009
clone 527496 -1
severity -1 minor
reassign -1 python-sphinx 0.6.2-1
retitle -1 python-sphinx: better error message needed when using autoclass with a non-class
tags 527496 + patch
* Daniel Schepler <dschepler at gmail.com>, 2009-05-07, 13:54:
>mkdir docs/_static # Sphinx needs it
>PYTHONPATH=. sphinx-build -N -q -E -b html docs/ debian/python-webob/usr/share/doc/python-webob/docs/
> File "/usr/lib/pymodules/python2.5/sphinx/ext/autodoc.py", line 844, in import_object
> self.doc_as_attr = (self.objpath[-1] != self.object.__name__)
>AttributeError: 'datetime.timedelta' object has no attribute '__name__'
>The full traceback has been saved in /tmp/sphinx-err-gkORHk.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 sphinx-dev at googlegroups.com. Thanks!
>make: *** [build-docs] Error 1
Thanks for your report.
The attached patch fixes the problem.
However, python-sphinx should in such a situation (i.e. somebody uses
autoclass directive on something that is not a class) give a more
helpful error message.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1173 bytes
Desc: not available
More information about the Python-modules-team