USE="epydoc" emerge portage-2.2_rc20 fails with python-2.6.1 and epydoc-2.1-r2. It works with epydoc-3.0.1. Traceback (most recent call last): File "/usr/bin/epydoc", line 7, in <module> cli() File "//usr/lib64/python2.6/site-packages/epydoc/cli.py", line 113, in cli if options['action'] == 'html': _html(docmap, options) File "//usr/lib64/python2.6/site-packages/epydoc/cli.py", line 593, in _html from epydoc.html import HTMLFormatter File "//usr/lib64/python2.6/site-packages/epydoc/html.py", line 181, in <module> from epydoc.colorize import colorize_re File "//usr/lib64/python2.6/site-packages/epydoc/colorize.py", line 63, in <module> import sys, sre_parse, sre, re File "/usr/lib64/python2.6/sre.py", line 7, in <module> DeprecationWarning, 2) File "/usr/lib64/python2.6/warnings.py", line 29, in _show_warning file.write(formatwarning(message, category, filename, lineno, line)) TypeError: _formatwarning() takes exactly 4 arguments (5 given) * * ERROR: sys-apps/portage-2.2_rc20 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2464: Called die * The specific snippet of code: * PYTHONPATH="${S}/pym:${PYTHONPATH}" epydoc -o "${WORKDIR}"/api -qqqqq --no-frames --show-imports $epydoc_opts --name "${PN}" --url "${HOMEPAGE}" ${my_modules} || die "epydoc failed"; * The die message: * epydoc failed
Thanks for the report, assigning to maintainers.
This is fixed in svn r12362:12364. Note that the same TypeError is triggered for any deprecation warning, such as in bug 244450.
This is fixed in 2.1.6.5 and 2.2_rc21.