I got the following error while running any portage-related program, such as emerge or etc-update: !!! Failed to complete python imports. There are internal modules for !!! python and failure here indicates that you have a problem with python !!! itself and thus portage is not able to continue processing. !!! You might consider starting python with verbose flags to see what has !!! gone wrong. Here is the information we got for this exception: No module named cache.cache_errors There seems to be a python module missing.
Yep, the inital ebuild was slightly broken, but it's affect is great. :( # cd ~ # tar jxf $DISTDIR/portage-2.1_pre1.tar.bz2 # cp -R portage-2.1_pre1/pym/{cache,elog_modules} /usr/lib/portage/pym # rm -r portage-2.1_pre1
The broken ebuild currently installs per default after emerge sync; emerge if ACCEPT_KEYWORDS=~x86 is in your make.conf... please hard-mask or fix the package as soon as possible. THX!
Tried the bugfix but got: localhost ~ # emerge -pvuD world --- Invalid atom in /etc/portage/package.unmask: =media-video/dirac-0.5.2 * --- Invalid atom in /etc/portage/package.mask: =sound/amarok-1.3_beta2 * Traceback (most recent call last): File "/usr/bin/emerge", line 10, in ? import portage File "/usr/lib/portage/pym/portage.py", line 6786, in ? portdb=portdbapi(settings["PORTDIR"]) File "/usr/lib/portage/pym/portage.py", line 4779, in __init__ self.auxdbmodule = self.mysettings.load_best_module("portdbapi.auxdbmodule") File "/usr/lib/portage/pym/portage.py", line 1287, in load_best_module return load_mod(best_mod) File "/usr/lib/portage/pym/portage.py", line 145, in load_mod mod = __import__(modname) File "/usr/lib/portage/pym/portage_db_cdb.py", line 17, in ? import portage_db_template ImportError: No module named portage_db_template localhost ~ # cat /etc/portage/modules portdbapi.auxdbmodule = portage_db_cdb.database eclass_cache.dbmodule = portage_db_cdb.database Had cdb as a metadata cache... Think this is the problem, emerge metadata is currently running... eix nedds to be reconfigured to...
*** Bug 115841 has been marked as a duplicate of this bug. ***
Yep, that's the custom CDB modules. The issue was fixed before this bug was even opened btw. It just takes time for mirrors to update.
*** Bug 115845 has been marked as a duplicate of this bug. ***
Quick change of platform in bugzilla. Sorry about the email.
Added a check whether custom modules are able to be loaded and fail nicely when they can't.
Released in 2.1_pre2.
*** Bug 116682 has been marked as a duplicate of this bug. ***
*** Bug 116844 has been marked as a duplicate of this bug. ***
*** Bug 123492 has been marked as a duplicate of this bug. ***
*** Bug 127341 has been marked as a duplicate of this bug. ***
After updating portage to version 2.1_pre6-r6 I get the following error everytime I try to run emerge. Error: Failed to import module 'portage_db_cdb.database' File "/usr/lib/portage/pym/portage.py", line 1290, in load_best_module mod = load_mod(best_mod) File "/usr/lib/portage/pym/portage.py", line 149, in load_mod mod = __import__(modname) File "/usr/lib/portage/pym/portage_db_cdb.py", line 17, in ? import portage_db_template No module named portage_db_template ==================================== Is it the same bug???
(In reply to comment #14) > Is it the same bug??? Yes. I recommend that you remove /etc/portage/modules (just use the default cache module) and then run `rm -rf /var/cache/edb/dep && emerge --metadata`.