public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] Is my portage broken?
@ 2002-09-17 18:20 Thomas Rasch
  2002-09-18  7:43 ` Serge Eric Thiam
  0 siblings, 1 reply; 5+ messages in thread
From: Thomas Rasch @ 2002-09-17 18:20 UTC (permalink / raw
  To: gentoo-dev

Hello!

I didn't get an answer to this question in the gentoo-user mailinglist,
so it seems to be more tricky than I thought... 

To make it short: I made an emerge rsync, and something didn't
survive...

emerge -up world gives:

Calculating world dependencies  
Traceback (most recent call last):
  File "/usr/bin/emerge", line 1369, in ?
    if not mydepgraph.xcreate(myaction):
  File "/usr/bin/emerge", line 805, in xcreate
    elif portage.db[portage.root]["vartree"].dbapi.match(x):
  File "/usr/lib/python2.2/site-packages/portage.py", line 2522, in
match
    mydep=dep_expand(origdep,self)
  File "/usr/lib/python2.2/site-packages/portage.py", line 2037, in
dep_expand
    return prefix+cpv_expand(mydep,mydb)+postfix
  File "/usr/lib/python2.2/site-packages/portage.py", line 1970, in
cpv_expand
    if (not mydb.cp_list(mykey)) and virts and virts.has_key(mykey):
  File "/usr/lib/python2.2/site-packages/portage.py", line 2481, in
cp_list
    mystat=os.stat(self.root+"var/db/pkg/"+mysplit[0])[ST_MTIME]
TypeError: stat() argument 1 must be (encoded string without NULL
bytes), not str


... and (e.g.) emerge -u portage:

Calculating dependencies -Traceback (most recent call last):
  File "/usr/bin/emerge", line 1379, in ?
    retval,favorites=mydepgraph.select_files(myfiles)
  File "/usr/bin/emerge", line 698, in select_files
    if not self.select_dep(portage.root,mykey,arg=x):
  File "/usr/bin/emerge", line 752, in select_dep
    self.create(myk,myparent,"--onlydeps" not in myopts)
  File "/usr/bin/emerge", line 665, in create
    if self.select_dep("/",edepend[0]+" "+edepend[1],myparent=mp):
  File "/usr/bin/emerge", line 748, in select_dep
    self.create(myk,myparent)
  File "/usr/bin/emerge", line 665, in create
    if self.select_dep("/",edepend[0]+" "+edepend[1],myparent=mp):
  File "/usr/bin/emerge", line 748, in select_dep
    self.create(myk,myparent)
  File "/usr/bin/emerge", line 665, in create
    if self.select_dep("/",edepend[0]+" "+edepend[1],myparent=mp):
  File "/usr/bin/emerge", line 721, in select_dep
    myeb=portage.portdb.xmatch("bestmatch-visible",x)
  File "/usr/lib/python2.2/site-packages/portage.py", line 2928, in
xmatch
    myval=best(self.xmatch("match-visible",None,mydep,mykey))
  File "/usr/lib/python2.2/site-packages/portage.py", line 2939, in
xmatch
   
myval=self.match2(mydep,mykey,self.xmatch("list-visible",None,mydep,myk
ey))
  File "/usr/lib/python2.2/site-packages/portage.py", line 2925, in
xmatch
    myval=self.gvisible(self.visible(self.cp_list(mykey)))
  File "/usr/lib/python2.2/site-packages/portage.py", line 2882, in
cp_list
    for x in listdir(self.root+"/"+mycp):
  File "/usr/lib/python2.2/site-packages/portage.py", line 43, in
listdir
    mtime = os.stat(path)[8]
TypeError: stat() argument 1 must be (encoded string without NULL
bytes), not str

Does anyone have a hint on how to solve this? Or at least, how could I
get it back working? Thanks!


Thomas

Famous last words:


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-dev] Is my portage broken?
  2002-09-17 18:20 [gentoo-dev] Is my portage broken? Thomas Rasch
@ 2002-09-18  7:43 ` Serge Eric Thiam
  2002-09-18 12:44   ` mike
  0 siblings, 1 reply; 5+ messages in thread
From: Serge Eric Thiam @ 2002-09-18  7:43 UTC (permalink / raw
  To: gentoo-dev

* Thomas Rasch [Tue, Sep 17, 2002 at 08:20:22PM +0200]
> Hello!
> 
> I didn't get an answer to this question in the gentoo-user mailinglist,
> so it seems to be more tricky than I thought... 
> 
> To make it short: I made an emerge rsync, and something didn't
> survive...
> 
> emerge -up world gives:
> 
> Calculating world dependencies  
> Traceback (most recent call last):
>   File "/usr/bin/emerge", line 1369, in ?
>     if not mydepgraph.xcreate(myaction):
>   File "/usr/bin/emerge", line 805, in xcreate
>     elif portage.db[portage.root]["vartree"].dbapi.match(x):
>   File "/usr/lib/python2.2/site-packages/portage.py", line 2522, in
> match
>     mydep=dep_expand(origdep,self)
>   File "/usr/lib/python2.2/site-packages/portage.py", line 2037, in
> dep_expand
>     return prefix+cpv_expand(mydep,mydb)+postfix
>   File "/usr/lib/python2.2/site-packages/portage.py", line 1970, in
> cpv_expand
>     if (not mydb.cp_list(mykey)) and virts and virts.has_key(mykey):
>   File "/usr/lib/python2.2/site-packages/portage.py", line 2481, in
> cp_list
>     mystat=os.stat(self.root+"var/db/pkg/"+mysplit[0])[ST_MTIME]
> TypeError: stat() argument 1 must be (encoded string without NULL
> bytes), not str
> [...]
> 
> Thomas
> [...]

Hello, 

There might be a broken ebuild in your portage tree. Try to clean up
your portage tree, (maby deleting all the ebuilds) before doing an
emerge rsync and try again. It would be a good idea to backup first, you
never know what might happen.... don't want to cause harm to your
system.

Good luck,
--
Serge


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-dev] Is my portage broken?
  2002-09-18  7:43 ` Serge Eric Thiam
@ 2002-09-18 12:44   ` mike
  2002-09-18 16:14     ` Thomas Rasch
  0 siblings, 1 reply; 5+ messages in thread
From: mike @ 2002-09-18 12:44 UTC (permalink / raw
  To: gentoo-dev

you could `rm -rf /usr/portage/*` and not worry
about messing up your system.  it'll just take a lot
longer to complete `emerge rsync`.
that might be a good idea if you're running an old
version of portage and/or have old ebuilds.
`emerge rsync ; emerge portage -u ; emerge world -up`
-mike

----- Original Message ----- 
From: "Serge Eric Thiam" <serge-eric.thiam@gmx.net>
To: <gentoo-dev@gentoo.org>
Sent: Wednesday, September 18, 2002 03:43
Subject: Re: [gentoo-dev] Is my portage broken?


> * Thomas Rasch [Tue, Sep 17, 2002 at 08:20:22PM +0200]
> > Hello!
> > 
> > I didn't get an answer to this question in the gentoo-user mailinglist,
> > so it seems to be more tricky than I thought... 
> > 
> > To make it short: I made an emerge rsync, and something didn't
> > survive...
> > 
> > emerge -up world gives:
> > 
> > Calculating world dependencies  
> > Traceback (most recent call last):
> >   File "/usr/bin/emerge", line 1369, in ?
> >     if not mydepgraph.xcreate(myaction):
> >   File "/usr/bin/emerge", line 805, in xcreate
> >     elif portage.db[portage.root]["vartree"].dbapi.match(x):
> >   File "/usr/lib/python2.2/site-packages/portage.py", line 2522, in
> > match
> >     mydep=dep_expand(origdep,self)
> >   File "/usr/lib/python2.2/site-packages/portage.py", line 2037, in
> > dep_expand
> >     return prefix+cpv_expand(mydep,mydb)+postfix
> >   File "/usr/lib/python2.2/site-packages/portage.py", line 1970, in
> > cpv_expand
> >     if (not mydb.cp_list(mykey)) and virts and virts.has_key(mykey):
> >   File "/usr/lib/python2.2/site-packages/portage.py", line 2481, in
> > cp_list
> >     mystat=os.stat(self.root+"var/db/pkg/"+mysplit[0])[ST_MTIME]
> > TypeError: stat() argument 1 must be (encoded string without NULL
> > bytes), not str
> > [...]
> > 
> > Thomas
> > [...]
> 
> Hello, 
> 
> There might be a broken ebuild in your portage tree. Try to clean up
> your portage tree, (maby deleting all the ebuilds) before doing an
> emerge rsync and try again. It would be a good idea to backup first, you
> never know what might happen.... don't want to cause harm to your
> system.
> 
> Good luck,
> --
> Serge
> _______________________________________________
> gentoo-dev mailing list
> gentoo-dev@gentoo.org
> http://lists.gentoo.org/mailman/listinfo/gentoo-dev
> 



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-dev] Is my portage broken?
  2002-09-18 12:44   ` mike
@ 2002-09-18 16:14     ` Thomas Rasch
  2002-09-18 17:51       ` mike
  0 siblings, 1 reply; 5+ messages in thread
From: Thomas Rasch @ 2002-09-18 16:14 UTC (permalink / raw
  To: gentoo-dev

mike schreibt:

> you could `rm -rf /usr/portage/*` and not worry
> about messing up your system.  it'll just take a lot
> longer to complete `emerge rsync`.
> that might be a good idea if you're running an old
> version of portage and/or have old ebuilds.
> `emerge rsync ; emerge portage -u ; emerge world -up`

emerge -u portage now gives:

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


I think my system got completly messed up by a recent filesystem crash,
and either portage or python got corrupted... I guess I have to
reinstall it from scratch :-((

Thomas

Famous last words:


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-dev] Is my portage broken?
  2002-09-18 16:14     ` Thomas Rasch
@ 2002-09-18 17:51       ` mike
  0 siblings, 0 replies; 5+ messages in thread
From: mike @ 2002-09-18 17:51 UTC (permalink / raw
  To: gentoo-dev

do you irc ?  if so, find me on irc.openprojects.net as SpanKY
in #gentoo and pmsg me.  i have prebuilt 386 binarys of portage
that you can utilize without having to re-install everything.
if not, send me a private e-mail and ill get back to you on how
to utilize the package
-mike

----- Original Message ----- 
From: "Thomas Rasch" <thomas@macnews.de>
To: <gentoo-dev@gentoo.org>
Sent: Wednesday, September 18, 2002 12:14
Subject: Re: [gentoo-dev] Is my portage broken?


> mike schreibt:
> 
> > you could `rm -rf /usr/portage/*` and not worry
> > about messing up your system.  it'll just take a lot
> > longer to complete `emerge rsync`.
> > that might be a good idea if you're running an old
> > version of portage and/or have old ebuilds.
> > `emerge rsync ; emerge portage -u ; emerge world -up`
> 
> emerge -u portage now gives:
> 
> Traceback (most recent call last):
>   File "/usr/bin/emerge", line 2, in ?
>     import os,sys,portage,xpak,string,re,commands,time,threading,shutil
>   File "/usr/lib/python2.2/site-packages/portage.py", line 3959, in ?
>     do_vartree()
>   File "/usr/lib/python2.2/site-packages/portage.py", line 3950, in
> do_vartree
>     if not virts_p.has_key(vkeysplit[1]):
> IndexError: list index out of range
> 
> 
> I think my system got completly messed up by a recent filesystem crash,
> and either portage or python got corrupted... I guess I have to
> reinstall it from scratch :-((
> 
> Thomas
> 
> Famous last words:
> _______________________________________________
> gentoo-dev mailing list
> gentoo-dev@gentoo.org
> http://lists.gentoo.org/mailman/listinfo/gentoo-dev
> 



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-09-18 17:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-17 18:20 [gentoo-dev] Is my portage broken? Thomas Rasch
2002-09-18  7:43 ` Serge Eric Thiam
2002-09-18 12:44   ` mike
2002-09-18 16:14     ` Thomas Rasch
2002-09-18 17:51       ` mike

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox