emerge sys-apps/portage-2.2_rc27 fails when "epydoc" user flag is enabled Reproducible: Always Expected Results: compilation should go fine with epydoc use flag Writing pt04.html for part(qa) Writing index.html for book(portage) xmlto xhtml-nochunks -m custom.xsl portage.docbook * Generating api docs UNEXPECTED ERROR: 'utf8' codec can't decode bytes in position 589-591: invalid data
Created attachment 186235 [details] here is full emerge log
It works for me with epydoc-3.0.1. Which version of epydoc do you have?
I'am using the same version of epydoc dev-python/epydoc-3.0.1 USE="-doc -latex" maybe it depends on python version? here is mine: dev-lang/python-2.5.4-r2 USE="doc gdbm ncurses readline ssl threads xml -berkdb -build -examples -ipv6 -sqlite -tk -ucs2 -wininst"
Mine is pretty close to yours: dev-lang/python-2.5.4-r2 USE="doc gdbm ipv6 ncurses readline sqlite ssl threads tk xml -berkdb -build -examples -ucs2 -wininst" dev-python/epydoc-3.0.1 USE="doc -latex" Can you edit the portage ebuild, add --debug to the epydoc command, and post the output that it gives you then?
Created attachment 186396 [details] Sure , I attached new portage log called portage-2.2_rc27:20090327-091614.log
Created attachment 186466 [details, diff] patch epydoc to show some more info about the UnicodeDecodeError Can you apply this patch to epydoc, and generate the error again? This will allow us to see which module it was processing, and the specific characters that triggered the error.
After you apply the patch, you should regenerate the associated *.pyc and *.pyo in order to avoid a potential sandbox violation: x=/usr/lib64/python2.5/site-packages/epydoc python -c "from compileall import compile_dir; compile_dir('$x')" python -O -c "from compileall import compile_dir; compile_dir('$x')"
Created attachment 186480 [details] Done , new attachment called portage-2.2_rc27:20090327-210356.log
It seems that dev-python/pysqlite contains some invalid characters inside the author's name in the header of /usr/lib64/python2.5/site-packages/pysqlite2/dbapi2.py: #-*- coding: utf-8 -*- # pysqlite2/dbapi2.py: the DB-API 2.0 interface # # Copyright (C) 2004-2007 Gerhard H�ring <gh@ghaering.de> # *** This bug has been marked as a duplicate of bug 208759 ***