Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 169653 - emerge returns cPickle.UnpicklingError: invalid load key, ''.
Summary: emerge returns cPickle.UnpicklingError: invalid load key, ''.
Status: RESOLVED DUPLICATE of bug 49881
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-06 19:57 UTC by Xavier CHARLES
Modified: 2007-03-07 22:42 UTC (History)
0 users

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 Xavier CHARLES 2007-03-06 19:57:08 UTC
Hi

The latest package I emerge was openssh. It's about few days ago. since that I can't use emerge anymore.
I have similar error with equery



Reproducible: Always

Steps to Reproduce:
1.emerge <package_name> or equery files <full filename>
2.
3.

Actual Results:  
Emerge output :
Traceback (most recent call last):
  File "/usr/bin/emerge", line 4049, in ?
    emerge_main()
  File "/usr/bin/emerge", line 3768, in emerge_main
    settings, trees, mtimedb = load_emerge_config()
  File "/usr/bin/emerge", line 3689, in load_emerge_config
    mtimedb = portage.MtimeDB(mtimedbfile)
  File "/usr/lib/portage/pym/portage.py", line 6726, in __init__
    self._load(filename)
  File "/usr/lib/portage/pym/portage.py", line 6733, in _load
    d = mypickle.load()
cPickle.UnpicklingError: invalid load key, ''.

equery output:
Traceback (most recent call last):
  File "/usr/bin/equery", line 27, in ?
    import gentoolkit
  File "/usr/lib/gentoolkit/pym/gentoolkit/__init__.py", line 23, in ?
    import portage
  File "/usr/lib/portage/pym/portage.py", line 6871, in ?
    init_legacy_globals()
  File "/usr/lib/portage/pym/portage.py", line 6841, in init_legacy_globals
    mtimedb = MtimeDB(mtimedbfile)
  File "/usr/lib/portage/pym/portage.py", line 6726, in __init__
    self._load(filename)
  File "/usr/lib/portage/pym/portage.py", line 6733, in _load
    d = mypickle.load()
cPickle.UnpicklingError: invalid load key, ''.
Comment 1 Xavier CHARLES 2007-03-06 19:58:12 UTC
I can't give you emerge --info because emerge doesn't work!

Thks for your help ...
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-03-06 20:01:13 UTC
rm -Rf /var/cache/edb/dep; emerge sync




*** This bug has been marked as a duplicate of bug 49881 ***
Comment 3 Xavier CHARLES 2007-03-06 20:04:47 UTC
Seems that the issue isn't solve, following is the output :

pyro ~ # rm -Rf /var/cache/edb/dep; emerge sync
Traceback (most recent call last):
  File "/usr/bin/emerge", line 4049, in ?
    emerge_main()
  File "/usr/bin/emerge", line 3768, in emerge_main
    settings, trees, mtimedb = load_emerge_config()
  File "/usr/bin/emerge", line 3689, in load_emerge_config
    mtimedb = portage.MtimeDB(mtimedbfile)
  File "/usr/lib/portage/pym/portage.py", line 6726, in __init__
    self._load(filename)
  File "/usr/lib/portage/pym/portage.py", line 6733, in _load
    d = mypickle.load()
cPickle.UnpicklingError: invalid load key, ''.
Comment 4 Zac Medico gentoo-dev 2007-03-06 20:39:40 UTC
The correct workaround for this bug is actually slightly different from bug 49881:

rm /var/cache/edb/mtimedb
Comment 5 Xavier CHARLES 2007-03-06 21:51:46 UTC
Sorry to ask for another question, emerge issue is now solve, but I still have issue with eupdatedb : 

aux_get(): (0) Error in app-shells/tcsh-6.14-r3 ebuild. (1)
               Check for syntax error or corruption in the ebuild. (--debug)


!!! ERROR: app-shells/tcsh-6.14-r30 failed.
Call stack:
  ebuild.sh, line 1454:   Called source '/usr/portage/app-shells/tcsh/tcsh-6.14-r30.ebuild'
  tcsh-6.14-r30.ebuild, line 5:   Called inherit 'eutils'
  ebuild.sh, line 1189:   Called die

!!! eutils.eclass could not be found by inherit()
!!! If you need support, post the topmost build error, and the call stack if relevant.


an idea ?

thks for all
Comment 6 Zac Medico gentoo-dev 2007-03-07 01:10:05 UTC
Install the latest version of sys-apps/portage and try again.  If necessary, you can manually upgrade portage:

http://www.gentoo.org/proj/en/portage/doc/manually-fixing-portage.xml
Comment 7 Xavier CHARLES 2007-03-07 08:16:43 UTC
hi 

I follow the doc http://www.gentoo.org/proj/en/portage/doc/manually-fixing-portage.xml
and when I try to emerge again I got that :

pyro portage-2.1.1 # emerge sys-apps/portage 
Calculating dependencies  
!!! ERROR: sys-apps/portage-2.1.2.1 failed.
Call stack:
  ebuild.sh, line 1454:   Called source '/usr/portage/sys-apps/portage/portage-2.1.2.1.ebuild'
  portage-2.1.2.1.ebuild, line 5:   Called inherit 'toolchain-funcs' 'eutils' 'flag-o-matic' 'multilib'
  ebuild.sh, line 1207:   Called source '/usr/portage/eclass/toolchain-funcs.eclass'
  toolchain-funcs.eclass, line 10:   Called inherit 'multilib'
  ebuild.sh, line 1189:   Called die

!!! multilib.eclass could not be found by inherit()
!!! If you need support, post the topmost build error, and the call stack if relevant.


aux_get(): (0) Error in sys-apps/portage-2.1.2.1 ebuild. (1)
               Check for syntax error or corruption in the ebuild. (--debug)


!!! ERROR: sys-apps/portage-2.0.51.22-r3 failed.
Call stack:
  ebuild.sh, line 1454:   Called source '/usr/portage/sys-apps/portage/portage-2.0.51.22-r3.ebuild'
  portage-2.0.51.22-r3.ebuild, line 5:   Called inherit 'toolchain-funcs' 'flag-o-matic'
  ebuild.sh, line 1207:   Called source '/usr/portage/eclass/toolchain-funcs.eclass'
  toolchain-funcs.eclass, line 10:   Called inherit 'multilib'
  ebuild.sh, line 1189:   Called die

!!! multilib.eclass could not be found by inherit()
!!! If you need support, post the topmost build error, and the call stack if relevant.


aux_get(): (0) Error in sys-apps/portage-2.0.51.22-r3 ebuild. (1)
               Check for syntax error or corruption in the ebuild. (--debug)


!!! ERROR: sys-apps/portage-2.1.2-r9 failed.
Call stack:
  ebuild.sh, line 1454:   Called source '/usr/portage/sys-apps/portage/portage-2.1.2-r9.ebuild'
  portage-2.1.2-r9.ebuild, line 5:   Called inherit 'toolchain-funcs' 'eutils' 'flag-o-matic'
  ebuild.sh, line 1207:   Called source '/usr/portage/eclass/toolchain-funcs.eclass'
  toolchain-funcs.eclass, line 10:   Called inherit 'multilib'
  ebuild.sh, line 1189:   Called die

!!! multilib.eclass could not be found by inherit()
!!! If you need support, post the topmost build error, and the call stack if relevant.

Comment 8 Xavier CHARLES 2007-03-07 08:58:38 UTC
another info :

in /usr/portage/eclass I have some special info on files :
-rw-r--r--  1 root root  3967 Jan  2 09:35 wxwidgets.eclass
??????????  ? ?    ?        ?            ? x-modular.eclass
-rw-r--r--  1 root root  3558 Oct 14 22:38 x11.eclass
-rw-r--r--  1 root root  1309 Feb 23 21:05 xemacs-packages.eclass
-rw-r--r--  1 root root  2428 Oct 14 22:38 xfce4.eclass
-rw-r--r--  1 root root  2495 Jan  5 05:37 xfce42.eclass
-rw-r--r--  1 root root  4094 Feb 26 21:37 xfce44.eclass
??????????  ? ?    ?        ?            ? xfree.eclass
-rw-r--r--  1 root root  3134 Oct 14 22:38 xmms-plugin.eclass
-rw-r--r--  1 root root  4244 Jan  1 23:35 zproduct.eclass
Comment 9 Zac Medico gentoo-dev 2007-03-07 22:42:43 UTC
(In reply to comment #8)
> in /usr/portage/eclass I have some special info on files :
> -rw-r--r--  1 root root  3967 Jan  2 09:35 wxwidgets.eclass
> ??????????  ? ?    ?        ?            ? x-modular.eclass

The ?????? seems to indicate that /usr/portage is corrupt.  Check your filesystem and disk for further corruption.