Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 22720 - emerge -up world is failing with TypeError:
Summary: emerge -up world is failing with TypeError:
Status: RESOLVED DUPLICATE of bug 22701
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-12 20:07 UTC by Jay Nation
Modified: 2011-10-30 22:20 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 Jay Nation 2003-06-12 20:07:49 UTC
I can emerge individual pkgs or emerge -up or -u system but emerge -u or -up
world fails.

Reproducible: Always
Steps to Reproduce:
1.emerge -up world
2.
3.

Actual Results:  
nexus bluzman # emerge -up world

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

Calculating world dependencies  
Traceback (most recent call last):
  File "/usr/bin/emerge", line 1902, in ?
    if not mydepgraph.xcreate(myaction):
  File "/usr/bin/emerge", line 855, in xcreate
    if portage.db["/"]["vartree"].dbapi.match(x):
  File "/usr/lib/python2.2/site-packages/portage.py", line 3049, in match
    mydep=dep_expand(origdep,self)
  File "/usr/lib/python2.2/site-packages/portage.py", line 2508, in dep_expand
    return prefix+cpv_expand(mydep,mydb)+postfix
  File "/usr/lib/python2.2/site-packages/portage.py", line 2441, 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 3005, 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

nexus bluzman # emerge -u world
Calculating world dependencies  
Traceback (most recent call last):
  File "/usr/bin/emerge", line 1902, in ?
    if not mydepgraph.xcreate(myaction):
  File "/usr/bin/emerge", line 855, in xcreate
    if portage.db["/"]["vartree"].dbapi.match(x):
  File "/usr/lib/python2.2/site-packages/portage.py", line 3049, in match
    mydep=dep_expand(origdep,self)
  File "/usr/lib/python2.2/site-packages/portage.py", line 2508, in dep_expand
    return prefix+cpv_expand(mydep,mydb)+postfix
  File "/usr/lib/python2.2/site-packages/portage.py", line 2441, 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 3005, 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



Expected Results:  
It should have shown me the list of files it would update then in the second
instance it should have preformed the update.

nexus bluzman # emerge info
Portage 2.0.48-r1 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1)
=================================================================
System uname: 2.4.20-gaming-r2 i686 AMD Athlon(tm) XP 2400+
GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share
                       /config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY="/usr/local/portage"
USE="x86 oss 3dnow apm avi crypt encode gif jpeg kde libg++ libwww mikmod mmx mp
                       eg ncurses nls pdflib png quicktime spell truetype xml2
xmms xv zlib gtkhtml gdb                        m berkdb readline arts bonobo
svga tcltk java guile gpm tcpd pam ssl perl python                         imlib
qt motif opengl mozilla cdr X lirc mysql dvd sdl smpg cups gtk gnome alsa      
                  slang esd moznoirc moznocompose oggvorbis"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O3 -pipe -mfpmath=sse -fforce-addr -fomit-frame-pointe
                       r -funroll-loops -falign-functions=4
-maccumulate-outgoing-args -ffast-math -fpr                       
efetch-loop-arrays"
CXXFLAGS="-march=athlon-xp -O3 -pipe -mfpmath=sse -fforce-addr -fomit-frame-poin
                       ter -funroll-loops -falign-functions=4
-maccumulate-outgoing-args -ffast-math -f                       
prefetch-loop-arrays"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"

BTW I tried rolling back the Cflags too.
I changed them to:
CFLAGS="-mcpu=athlon-xp -O3 -pipe"
and I get the exact same results.
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2003-06-12 20:46:02 UTC

*** This bug has been marked as a duplicate of 22701 ***