>>> Unpacking source... >>> Unpacking HTMLgen.tgz to /var/tmp/portage/dev-python/htmlgen-2.2.2/work >>> Source unpacked in /var/tmp/portage/dev-python/htmlgen-2.2.2/work >>> Compiling source in /var/tmp/portage/dev-python/htmlgen-2.2.2/work/HTMLgen ... make -j14 Type "make install" to install HTMLgen. The modules will be put in site-packages. Other targets include: test gendoc compileall dist bigdist >>> Source compiled. >>> Test phase [test]: dev-python/htmlgen-2.2.2 make -j14 -j1 test python HTMLtest.py Traceback (most recent call last): File "HTMLtest.py", line 5, in import string, regex, regsub, os, time, glob ImportError: No module named regex make: *** [test] Error 1 * * ERROR: dev-python/htmlgen-2.2.2 failed. * Call stack: * ebuild.sh, line 49: Called src_test * environment, line 1244: Called _eapi0_src_test * ebuild.sh, line 613: Called die * The specific snippet of code: * hasq test $FEATURES && die "Make test failed. See above for details." * The die message: * Make test failed. See above for details. * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/log/portage/dev-python/htmlgen-2.2.2:20090717-092321.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-python/htmlgen-2.2.2/temp/environment'. * >>> Install htmlgen-2.2.2 into /var/tmp/portage/dev-python/htmlgen-2.2.2/image/ category dev-python >>> Completed installing htmlgen-2.2.2 into /var/tmp/portage/dev-python/htmlgen-2.2.2/image/ * Removing /usr/share/doc * Removing /usr/share/man * Removing /usr/share/info * Byte compiling python modules for python-2.6 .. ...  [ ok ] * htmlgen now resides in its own subdirectory * so you need to do "from htmlgen import HTMLgen" instead of "import HTMLgen"