If Python 3 is the default interpreter and USE="doc": scons: done building targets. chmod: cannot access `/var/tmp/portage/sci-geosciences/mapnik-2.0.0/image//usr/lib64/python3.2/site-packages/mapnik2/paths.py': No such file or directory fperms failed +-------------------------------------------------------------------------- | In mapnik2: | No documentation available! | Error: Import failed: | ImportError: No module named mapnik2 | Error: Nothing left to document! !!! dohtml: docs/api_docs/python/* does not exist dohtml failed * ERROR: sci-geosciences/mapnik-2.0.0 failed (install phase): * API doc install failed * * Call stack: * ebuild.sh, line 85: Called src_install * environment, line 4862: Called die * The specific snippet of code: * dohtml -r docs/api_docs/python/* || die "API doc install failed"; * * If you need support, post the output of 'emerge --info =sci-geosciences/mapnik-2.0.0', * the complete build log and the output of 'emerge -pqv =sci-geosciences/mapnik-2.0.0'. * The complete build log is located at '/var/tmp/portage/sci-geosciences/mapnik-2.0.0/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sci-geosciences/mapnik-2.0.0/temp/environment'. * S: '/var/tmp/portage/sci-geosciences/mapnik-2.0.0/work/mapnik-2.0.0' * QA Notice: file does not exist: * * dohtml: docs/api_docs/python/* does not exist Fixed for me by adding: pkg_setup() { if use python ; then python_set_active_version 2 python_pkg_setup fi }
This is for sure fixed in mapnik 2.0.1