Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[CLOSED] Emerge throwing up errors.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
trossachs
Veteran
Veteran


Joined: 22 Jan 2004
Posts: 1204
Location: London

PostPosted: Wed Jan 10, 2007 8:20 pm    Post subject: [CLOSED] Emerge throwing up errors. Reply with quote

Have tried to use emerge this evening to upgrade a couple of apps and got this error:

Code:
0 ~ # emerge emerge
Calculating dependencies
Traceback (most recent call last):
  File "/usr/bin/emerge", line 5266, in ?
    retval = emerge_main()
  File "/usr/bin/emerge", line 5261, in emerge_main
    myopts, myaction, myfiles, spinner)
  File "/usr/bin/emerge", line 4585, in action_build
    mydepgraph = depgraph(settings, trees, myopts, myparams, spinner)
  File "/usr/bin/emerge", line 976, in __init__
    trees[myroot]["porttree"].dbapi)
  File "/usr/bin/emerge", line 739, in __init__
    metadata = dict(izip(mykeys, real_dbapi.aux_get(cpv, mykeys)))
  File "/usr/lib/portage/pym/portage.py", line 5140, in aux_get
    mydata.update(izip(aux_keys, self._aux_get(mycpv, aux_keys)))
AttributeError: keys


Has anyone else had a similar issue upgrading packages?


Last edited by trossachs on Sat Jul 21, 2007 7:27 am; edited 1 time in total
Back to top
View user's profile Send private message
Dan
Veteran
Veteran


Joined: 25 Oct 2005
Posts: 1302

PostPosted: Wed Jan 10, 2007 8:23 pm    Post subject: Reply with quote

Code:
emerge --sync

try again
_________________
- Failure is not an option. It's bundled with your software.
Back to top
View user's profile Send private message
adekoba
Tux's lil' helper
Tux's lil' helper


Joined: 06 Oct 2006
Posts: 129

PostPosted: Wed Jan 10, 2007 8:42 pm    Post subject: Reply with quote

i have the same problem, probably something wrong with the ebuild
_________________
website
Back to top
View user's profile Send private message
Dan
Veteran
Veteran


Joined: 25 Oct 2005
Posts: 1302

PostPosted: Wed Jan 10, 2007 8:47 pm    Post subject: Reply with quote

I just
Code:
emerge emerge
on 2 systems fine
Code:
emerge --sync && emerge portage && etc-update

_________________
- Failure is not an option. It's bundled with your software.
Back to top
View user's profile Send private message
trossachs
Veteran
Veteran


Joined: 22 Jan 2004
Posts: 1204
Location: London

PostPosted: Thu Jan 11, 2007 1:56 pm    Post subject: Reply with quote

Already tried:

Code:
emerge --sync


and

Code:
emerge emerge


with no success
Back to top
View user's profile Send private message
Dan
Veteran
Veteran


Joined: 25 Oct 2005
Posts: 1302

PostPosted: Thu Jan 11, 2007 9:22 pm    Post subject: Reply with quote

did you re-emerge portage ?
_________________
- Failure is not an option. It's bundled with your software.
Back to top
View user's profile Send private message
trossachs
Veteran
Veteran


Joined: 22 Jan 2004
Posts: 1204
Location: London

PostPosted: Fri Jan 12, 2007 4:51 am    Post subject: Reply with quote

Yes and get this error:

Code:
Calculating dependencies
Traceback (most recent call last):
  File "/usr/bin/emerge", line 5266, in ?
    retval = emerge_main()
  File "/usr/bin/emerge", line 5261, in emerge_main
    myopts, myaction, myfiles, spinner)
  File "/usr/bin/emerge", line 4585, in action_build
    mydepgraph = depgraph(settings, trees, myopts, myparams, spinner)
  File "/usr/bin/emerge", line 976, in __init__
    trees[myroot]["porttree"].dbapi)
  File "/usr/bin/emerge", line 739, in __init__
    metadata = dict(izip(mykeys, real_dbapi.aux_get(cpv, mykeys)))
  File "/usr/lib/portage/pym/portage.py", line 5140, in aux_get
    mydata.update(izip(aux_keys, self._aux_get(mycpv, aux_keys)))
AttributeError: keys
Back to top
View user's profile Send private message
Dan
Veteran
Veteran


Joined: 25 Oct 2005
Posts: 1302

PostPosted: Fri Jan 12, 2007 1:58 pm    Post subject: Reply with quote

Code:
rm -rf /var/cache/edb/dep/* && emerge --sync && emerge portage

_________________
- Failure is not an option. It's bundled with your software.
Back to top
View user's profile Send private message
trossachs
Veteran
Veteran


Joined: 22 Jan 2004
Posts: 1204
Location: London

PostPosted: Fri Jan 12, 2007 3:07 pm    Post subject: Reply with quote

Thanks dcoats, I ran your script as instructed and received the following reply:

Code:
* An update to portage is available. It is _highly_ recommended
 * that you update portage now, before any other packages are updated.
 * Please run 'emerge portage' and then update ALL of your
 * configuration files.
 * To update portage, run 'emerge portage'.

Calculating dependencies
Traceback (most recent call last):
  File "/usr/bin/emerge", line 5266, in ?
    retval = emerge_main()
  File "/usr/bin/emerge", line 5261, in emerge_main
    myopts, myaction, myfiles, spinner)
  File "/usr/bin/emerge", line 4585, in action_build
    mydepgraph = depgraph(settings, trees, myopts, myparams, spinner)
  File "/usr/bin/emerge", line 976, in __init__
    trees[myroot]["porttree"].dbapi)
  File "/usr/bin/emerge", line 739, in __init__
    metadata = dict(izip(mykeys, real_dbapi.aux_get(cpv, mykeys)))
  File "/usr/lib/portage/pym/portage.py", line 5140, in aux_get
    mydata.update(izip(aux_keys, self._aux_get(mycpv, aux_keys)))
AttributeError: keys
Back to top
View user's profile Send private message
Dan
Veteran
Veteran


Joined: 25 Oct 2005
Posts: 1302

PostPosted: Fri Jan 12, 2007 6:10 pm    Post subject: Reply with quote

you can't
Code:
emerge portage
?
_________________
- Failure is not an option. It's bundled with your software.
Back to top
View user's profile Send private message
trossachs
Veteran
Veteran


Joined: 22 Jan 2004
Posts: 1204
Location: London

PostPosted: Fri Jan 12, 2007 7:32 pm    Post subject: Reply with quote

When I do, I get this error:

Code:
Calculating dependencies
Traceback (most recent call last):
  File "/usr/bin/emerge", line 5266, in ?
    retval = emerge_main()
  File "/usr/bin/emerge", line 5261, in emerge_main
    myopts, myaction, myfiles, spinner)
  File "/usr/bin/emerge", line 4585, in action_build
    mydepgraph = depgraph(settings, trees, myopts, myparams, spinner)
  File "/usr/bin/emerge", line 976, in __init__
    trees[myroot]["porttree"].dbapi)
  File "/usr/bin/emerge", line 739, in __init__
    metadata = dict(izip(mykeys, real_dbapi.aux_get(cpv, mykeys)))
  File "/usr/lib/portage/pym/portage.py", line 5140, in aux_get
    mydata.update(izip(aux_keys, self._aux_get(mycpv, aux_keys)))
AttributeError: keys
Back to top
View user's profile Send private message
Dan
Veteran
Veteran


Joined: 25 Oct 2005
Posts: 1302

PostPosted: Mon Jan 15, 2007 3:53 pm    Post subject: Reply with quote

Code:
emerge --metadata

If you get errors after that...
Can you successfully sync?
Code:
emerge --sync

If not then just download latest snapshot from http://distfiles.gentoo.org/snapshots/
unpack it to /usr overwriting existing /usr/portage
and run
Code:
emerge --metadata


If you still have those errors then follow http://www.gentoo.org/proj/en/portage/doc/manually-fixing-portage.xml
_________________
- Failure is not an option. It's bundled with your software.
Back to top
View user's profile Send private message
trossachs
Veteran
Veteran


Joined: 22 Jan 2004
Posts: 1204
Location: London

PostPosted: Mon Jan 15, 2007 9:46 pm    Post subject: Reply with quote

Mmmmmmmmmmm, I get these errors now:

Code:
Parse Error reading PROVIDE and USE in '/var/db/pkg/net-www/mod_ssl-2.8.25-r10'
Exception: keys


Parse Error reading PROVIDE and USE in '/var/db/pkg/sys-cluster/heartbeat-1.2.3-r1'
Exception: keys


Parse Error reading PROVIDE and USE in '/var/db/pkg/app-antivirus/clamav-0.88.7-r2'
Exception: keys


Parse Error reading PROVIDE and USE in '/var/db/pkg/app-antivirus/f-prot-4.6.5'
Exception: keys


Parse Error reading PROVIDE and USE in '/var/db/pkg/app-antivirus/bitdefender-console-7.0.1-r1'
Exception: keys


... and quite a few other printed errors using the same format but with other packages.


I then emerge portage and get this:

Code:
Calculating dependencies
Traceback (most recent call last):
  File "/usr/bin/emerge", line 5266, in ?
    retval = emerge_main()
  File "/usr/bin/emerge", line 5261, in emerge_main
    myopts, myaction, myfiles, spinner)
  File "/usr/bin/emerge", line 4585, in action_build
    mydepgraph = depgraph(settings, trees, myopts, myparams, spinner)
  File "/usr/bin/emerge", line 976, in __init__
    trees[myroot]["porttree"].dbapi)
  File "/usr/bin/emerge", line 739, in __init__
    metadata = dict(izip(mykeys, real_dbapi.aux_get(cpv, mykeys)))
  File "/usr/lib/portage/pym/portage.py", line 5140, in aux_get
    mydata.update(izip(aux_keys, self._aux_get(mycpv, aux_keys)))
AttributeError: keys


However, when I "emerge -s portage" this is the installed and available version print out:
Code:

sys-apps/portage
      Latest version available: 2.1.2
      Latest version installed: 2.1.2_rc4-r6
      Size of files: 357 kB
      Homepage:      http://www.gentoo.org/proj/en/portage/index.xml
      Description:   The Portage Package Management System. The primary package management and distribution system for Gentoo.
      License:       GPL-2



Really weird, why have I been able to install a version which supposedly has not been released yet?
Back to top
View user's profile Send private message
Dan
Veteran
Veteran


Joined: 25 Oct 2005
Posts: 1302

PostPosted: Mon Jan 15, 2007 9:54 pm    Post subject: Reply with quote

I don't know, I don't see it avaliable right now either.
Quote:

gentoo ~ # eix sys-apps/portage
* sys-apps/portage
Available versions: 2.0.51.22-r3 2.1-r2 2.1.1-r1 2.1.1-r2 2.1.2_rc4-r7 2.1.2_rc4-r8
Installed: 2.1.2_rc4-r8
Homepage: http://www.gentoo.org/proj/en/portage/index.xml
Description: The Portage Package Management System. The primary package management and distribution system for Gentoo.


can you
Code:
echo sys-apps/portage ~x86 >> /etc/portage/package.keywords && emerge portage

_________________
- Failure is not an option. It's bundled with your software.
Back to top
View user's profile Send private message
trossachs
Veteran
Veteran


Joined: 22 Jan 2004
Posts: 1204
Location: London

PostPosted: Mon Jan 15, 2007 11:10 pm    Post subject: Reply with quote

Print:

Code:
Calculating dependencies
Traceback (most recent call last):
  File "/usr/bin/emerge", line 5266, in ?
    retval = emerge_main()
  File "/usr/bin/emerge", line 5261, in emerge_main
    myopts, myaction, myfiles, spinner)
  File "/usr/bin/emerge", line 4585, in action_build
    mydepgraph = depgraph(settings, trees, myopts, myparams, spinner)
  File "/usr/bin/emerge", line 976, in __init__
    trees[myroot]["porttree"].dbapi)
  File "/usr/bin/emerge", line 739, in __init__
    metadata = dict(izip(mykeys, real_dbapi.aux_get(cpv, mykeys)))
  File "/usr/lib/portage/pym/portage.py", line 5140, in aux_get
    mydata.update(izip(aux_keys, self._aux_get(mycpv, aux_keys)))
AttributeError: keys
Back to top
View user's profile Send private message
Dan
Veteran
Veteran


Joined: 25 Oct 2005
Posts: 1302

PostPosted: Tue Jan 16, 2007 5:15 pm    Post subject: Reply with quote

If you search this forum for
Quote:
AttributeError: keys
you will find a few posts on it and they mention most of what i have already mentioned to you. But you should go through them yourself.
_________________
- Failure is not an option. It's bundled with your software.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum