Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
poratge is broken with a python.py error :(
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
georgie
n00b
n00b


Joined: 03 Jan 2003
Posts: 42
Location: London, UK

PostPosted: Mon Feb 10, 2003 3:01 am    Post subject: poratge is broken with a python.py error :( Reply with quote

everything's busted!

1) #env-update

Traceback (most recent call last):
File "/usr/sbin/env-update", line 6, in ?
import portage
File "/usr/lib/python2.2/site-packages/portage.py", line 4190, in ?
do_vartree()
File "/usr/lib/python2.2/site-packages/portage.py", line 4178, in do_vartree
if not virts_p.has_key(vkeysplit[1]):
IndexError: list index out of range

2)
# emerge -up world
Traceback (most recent call last):
File "/usr/bin/emerge", line 6, in ?
import os,sys,portage,emergehelp,xpak,string,re,commands,time,threading,shutil,traceback
File "/usr/lib/python2.2/site-packages/portage.py", line 4190, in ?
do_vartree()
File "/usr/lib/python2.2/site-packages/portage.py", line 4178, in do_vartree
if not virts_p.has_key(vkeysplit[1]):
IndexError: list index out of range

3) source /etc/profile && env-update
Traceback (most recent call last):
File "/usr/sbin/env-update", line 6, in ?
import portage
File "/usr/lib/python2.2/site-packages/portage.py", line 4190, in ?
do_vartree()
File "/usr/lib/python2.2/site-packages/portage.py", line 4178, in do_vartree
if not virts_p.has_key(vkeysplit[1]):
IndexError: list index out of range




any clues? last emerged 1700 GMT 9th Feb 2003, did etc-update and env-update && source /etc/profile afterwards
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Mon Feb 10, 2003 6:18 am    Post subject: Reply with quote

Does "emerge regen" work and/or help?
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
georgie
n00b
n00b


Joined: 03 Jan 2003
Posts: 42
Location: London, UK

PostPosted: Mon Feb 10, 2003 7:12 am    Post subject: Reply with quote

>Does "emerge regen" work and/or help?

hi. thanks for suggestion, but no, it gives the same error

_______________
#emerge regen
Traceback (most recent call last):
File "/usr/bin/emerge", line 6, in ?
import os,sys,portage,emergehelp,xpak,string,re,commands,time,threading,shutil,traceback
File "/usr/lib/python2.2/site-packages/portage.py", line 4190, in ?
do_vartree()
File "/usr/lib/python2.2/site-packages/portage.py", line 4178, in do_vartree
if not virts_p.has_key(vkeysplit[1]):
IndexError: list index out of range
_______________
I'm fearing a boot from CD re-emerge portage situation here :(
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Mon Feb 10, 2003 5:08 pm    Post subject: Reply with quote

What does /var/cache/edb/virtuals look like? Anything strange-looking in there?
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
georgie
n00b
n00b


Joined: 03 Jan 2003
Posts: 42
Location: London, UK

PostPosted: Mon Feb 10, 2003 6:49 pm    Post subject: Reply with quote

> What does /var/cache/edb/virtuals look like? Anything strange-looking in there?

hi. thanks for trying to help me track this down.
dunno if this is strange or not

# more /var/cache/edb/virtuals

sys-apps/supersed
nls? ( sys-devel/gettext ) x11-misc/commonbox-utils x11-themes/commonbox-styles
0
mirror://sourceforge/fluxbox/fluxbox-0.1.12.tar.gz mirror://gentoo/fluxbox-gentoo.diff.bz2

http://fluxbox.sf.net
GPL-2
Window manager based on Blackbox and pwm -- has tabs.
x86 ppc sparc alpha
commonbox commonbox flag-o-matic flag-o-matic
nls
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Mon Feb 10, 2003 8:14 pm    Post subject: Reply with quote

georgie wrote:
dunno if this is strange or not
It is. Everything about it is strange. Try completely emptying the file. You may have to manually repopulate it partially if you have some more problems.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
georgie
n00b
n00b


Joined: 03 Jan 2003
Posts: 42
Location: London, UK

PostPosted: Mon Feb 10, 2003 8:33 pm    Post subject: emptying /var/cache/edb/virtual solved problem Reply with quote

woo-hoo!

#cat > /var/cache/edb/virtuals
(CTRL-D)
# emerge -up world

These are the packages that I would merge, in order

<snip>

success!

_________

thank you soooo much, you were so helpful. I tried to rtfm for this but had no idea where to start, this is why i love gentoo, the great code and the friendly help :)

I still need to try and deduce what went wrong. I'll look through my bash_history and logs. Thanks again
Back to top
View user's profile Send private message
NorthGoingZax
Apprentice
Apprentice


Joined: 03 Dec 2002
Posts: 189

PostPosted: Tue Feb 11, 2003 1:08 am    Post subject: Reply with quote

THis is very interesting. What is contained in /var/cache/edb/virtuals ? Why would this screw something up?
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Tue Feb 11, 2003 1:49 am    Post subject: Reply with quote

NorthGoingZax wrote:
What is contained in /var/cache/edb/virtuals ?
There are several classes of software for which many different options can fill a role. Some programs want a mail transfer agent, but they don't care which one. Others need kernel sources, but don't care which kernel sources. There are virtual packages that can be depended on by such software, and Portage keeps track of what actual package is providing the virtual service. This listing is in that file.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
schoett
n00b
n00b


Joined: 26 Jan 2003
Posts: 63

PostPosted: Wed Feb 19, 2003 6:10 pm    Post subject: Reply with quote

Yeah, but this mechanism doesn't really work (see bug 5121). My impression is that portage is currently restricted such that a virtual dependency can really only be satisfied by the first providing package listed in the file /var/cache/edb/virtuals :( It gets really bad if that package is not yet stable, then portage dependency calculation breaks down completely :cry:
Back to top
View user's profile Send private message
brakits
n00b
n00b


Joined: 13 May 2002
Posts: 10
Location: San Francisco, CA

PostPosted: Wed Mar 26, 2003 2:37 am    Post subject: Reply with quote

rac wrote:
georgie wrote:
dunno if this is strange or not
It is. Everything about it is strange. Try completely emptying the file. You may have to manually repopulate it partially if you have some more problems.


I had this same problem, and followed your advice by emptying the file, but I am getting other errors now, as you said I might, so how would I repopulate that file?

the errors I am getting now are:

kye portage # emerge -up world

These are the packages that I would merge, in order:

Calculating world dependencies !!! Invalid db entry: /var/db/pkg//sys-kernel
!!! Invalid db entry: /var/db/pkg//sys-apps
!!! Invalid db entry: /var/db/pkg//sys-libs
!!! Invalid db entry: /var/db/pkg//sys-devel
!!! Invalid db entry: /var/db/pkg//dev-python
!!! Invalid db entry: /var/db/pkg//dev-perl
!!! Invalid db entry: /var/db/pkg//dev-libs
!!! Invalid db entry: /var/db/pkg//media-libs
!!! Invalid db entry: /var/db/pkg//x11-misc
!!! Invalid db entry: /var/db/pkg//x11-base
!!! Invalid db entry: /var/db/pkg//app-arch
!!! Invalid db entry: /var/db/pkg//dev-lang
...(continues to list every dir in the /var/db/pkg dir)

aux_get(): (0) Error in sys-apps/man-1.5l-r1 ebuild.
Check for syntax error or corruption in the ebuild. (--debug)


!!! all ebuilds that could satisfy "sys-apps/man" have been masked.
!!! (dependency required by "sys-apps/man-pages-1.56" [ebuild])

!!! Problem with ebuild sys-apps/man-pages-1.56
!!! Possibly a DEPEND/*DEPEND problem.

!!! Depgraph creation failed.


hope you can help.
-s
_________________
--
Email: "Stephen Harrell <stephen@teknikal.org>"
WWW: http://teknikal.org
Photography: http://delayed.org
Public GPG Key: http://pgp.stephenharrell.com
Back to top
View user's profile Send private message
Carlos
Guru
Guru


Joined: 07 Aug 2002
Posts: 458
Location: Providence, RI

PostPosted: Thu Jul 17, 2003 11:08 pm    Post subject: Reply with quote

This can also happen if you have a corrupted Portage tree under /usr/portage (and could probably happen if you had a similar situation in your PORTAGE_OVERLAY directory). As it turns out both my virtuals file and some of my tree were corrupted so I was getting the errors mentioned in this thread, but I deleted my tree and it started working.

Also, it would probably be a good idea to move your distfiles directory out of there before you rm -rf /usr/portage. :oops:
_________________
Man must shape his tools lest they shape him.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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