Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 68714 - Portage 2.0.51-r2 failing with "TypeError: stat() argument 1 must be (encoded string without NULL bytes), not str"
Summary: Portage 2.0.51-r2 failing with "TypeError: stat() argument 1 must be (encoded...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-24 09:33 UTC by Hasse Hagen Johansen
Modified: 2005-02-28 01:19 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 Hasse Hagen Johansen 2004-10-24 09:33:08 UTC
It is some time since I last updated my gentoo system, and now I get this when doing emerge -upDv world:

nexus6 portage # 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 2903, in ?
    if not mydepgraph.xcreate(myaction):
  File "/usr/bin/emerge", line 1310, in xcreate
    if portage.db["/"]["vartree"].dbapi.match(x):
  File "/usr/lib/portage/pym/portage.py", line 4581, in match
    mymatch=match_from_list(mydep,self.cp_list(mykey,use_cache=use_cache))
  File "/usr/lib/portage/pym/portage.py", line 4495, in cp_list
    mystat=os.stat(self.root+VDB_PATH+"/"+mysplit[0])[stat.ST_MTIME]
TypeError: stat() argument 1 must be (encoded string without NULL bytes), not str

Acutally it seems like it is when trying to emerge without specifying a specific  package? I think it could have something to do with the package cache move gentoo made recently?

Sorry if I am stupid..have searched the forums and bugzilla


Reproducible: Always
Steps to Reproduce:
1.
2.
3.




nexus6 portage # emerge info
Portage 2.0.51-r2 (default-x86-1.4, gcc-3.3.4, glibc-2.3.4.20040808-r0,
2.4.25-lck1 i686)
=================================================================
System uname: 2.4.25-lck1 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.5.3
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux-headers-2.4.22
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -mcpu=pentium4 -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"CONFIG_PROTECT_MASK="/etc/gconf
/etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -mcpu=pentium4 -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks sandbox"
GENTOO_MIRRORS="ftp://ftp.gentoo.skynet.be/pub/gentoo/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X Xaw3d aalib acl acpi adns alsa apache2 apm avi berkdb bindist
bitmap-fonts bonobo caps cdr crypt cscope cups curl dedicated dga directfb divx
doc dvb dvd dvdr emacs emacs-w3 encode esd ethereal evo f77 faad fam fbcon
firebird flac flash foomaticdb freetds gb gd gdbm ggi gif gnome gnutls gphoto2
gpm gstreamer gtk gtk2 gtkhtml imap imlib innodb ipv6 jabber jack java jikes
joystick jpeg kerberos ladcca lcms ldap leim libg++ libgda libwww lirc mad
maildir matroska mbox mcal memlimit mikmod mmx motif mozilla mpeg msn mule mysql
nas ncurses nls oci8 odbc oggvorbis opengl oscar oss pam pda pdflib perl pic
plotutils png postgres ppds python quicktime readline ruby samba sasl scanner
sdl slang slp socks5 speex spell sqlite sse ssl svga tcltk tcpd tetex theora
tiff truetype unicode usb videos wmf wxwindows x86 xface xinerama xml xml2 xmms
xosd xprint xv xvid zlib"
Comment 1 Jason Stubbs (RETIRED) gentoo-dev 2004-10-25 06:29:24 UTC
Can you check to see if /var/lib/portage/world is corrupted please?
Comment 2 Hasse Hagen Johansen 2004-10-25 06:51:28 UTC
Yes. I have checked that (I believe). I tried a regen-world or something like(I am not at a gentoo box right now), and it didn't help. If it can be of any help. I can post the world file later today.
Comment 3 Jason Stubbs (RETIRED) gentoo-dev 2004-10-25 07:15:07 UTC
If the world file does in fact contain garbage (as the traceback indicates), you'll need to delete it and then run regenworld.
Comment 4 Hasse Hagen Johansen 2004-10-25 07:26:55 UTC
Ok. Thanks I will try that when getting home (about an hour), and report back :-)
Comment 5 Hasse Hagen Johansen 2004-10-25 09:14:02 UTC
Ok. It solved the problem. Thank you very much :-) shouldn't regenworld be renamed to genworld?(it doesn't generate the world file if the file is present) ;-)

Thank you. 
Comment 6 Brian Harring (RETIRED) gentoo-dev 2005-02-28 01:19:00 UTC
Closing (jason already pointed out the local system issue).