Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 115840 - portage-2.1_pre1: "No module named cache.cache_errors"
Summary: portage-2.1_pre1: "No module named cache.cache_errors"
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: High blocker (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: REGRESSION
: 115841 115845 116682 116844 123492 127341 (view as bug list)
Depends on:
Blocks: 115839
  Show dependency tree
 
Reported: 2005-12-17 03:25 UTC by Alexander Minges
Modified: 2006-03-23 13:15 UTC (History)
9 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Minges 2005-12-17 03:25:30 UTC
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.
Comment 1 Jason Stubbs (RETIRED) gentoo-dev 2005-12-17 03:44:26 UTC
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
Comment 2 Rene Treffer 2005-12-17 04:29:00 UTC
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!
Comment 3 Rene Treffer 2005-12-17 04:41:53 UTC
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...
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2005-12-17 04:42:17 UTC
*** Bug 115841 has been marked as a duplicate of this bug. ***
Comment 5 Jason Stubbs (RETIRED) gentoo-dev 2005-12-17 04:49:45 UTC
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.
Comment 6 Jason Stubbs (RETIRED) gentoo-dev 2005-12-17 04:56:51 UTC
*** Bug 115845 has been marked as a duplicate of this bug. ***
Comment 7 Jeffrey Forman (RETIRED) gentoo-dev 2005-12-17 06:16:37 UTC
Quick change of platform in bugzilla. Sorry about the email.
Comment 8 Jason Stubbs (RETIRED) gentoo-dev 2005-12-21 07:37:01 UTC
Added a check whether custom modules are able to be loaded and fail nicely when they can't.
Comment 9 Jason Stubbs (RETIRED) gentoo-dev 2005-12-25 00:09:18 UTC
Released in 2.1_pre2.
Comment 10 Jason Stubbs (RETIRED) gentoo-dev 2005-12-25 04:18:28 UTC
*** Bug 116682 has been marked as a duplicate of this bug. ***
Comment 11 Brian Harring (RETIRED) gentoo-dev 2005-12-26 23:01:38 UTC
*** Bug 116844 has been marked as a duplicate of this bug. ***
Comment 12 Jakub Moc (RETIRED) gentoo-dev 2006-02-20 06:21:51 UTC
*** Bug 123492 has been marked as a duplicate of this bug. ***
Comment 13 Jakub Moc (RETIRED) gentoo-dev 2006-03-23 10:39:38 UTC
*** Bug 127341 has been marked as a duplicate of this bug. ***
Comment 14 Cristiano Chiucchiolo 2006-03-23 12:42:13 UTC
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???
Comment 15 Zac Medico gentoo-dev 2006-03-23 13:15:14 UTC
(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`.