Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Acessing world file crashes portage
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
davidsmind
n00b
n00b


Joined: 25 May 2002
Posts: 61

PostPosted: Mon Mar 01, 2004 7:38 pm    Post subject: Acessing world file crashes portage Reply with quote

Ugh. I can emerge packages just fine, but it seems when I do specify world emerge dies.

Code:
linuxboxen root # emerge -upv world

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

Calculating world dependencies
Traceback (most recent call last):
  File "/usr/bin/emerge", line 2517, in ?
    if not mydepgraph.xcreate(myaction):
  File "/usr/bin/emerge", line 1097, in xcreate
    if portage.db["/"]["vartree"].dbapi.match(x):
  File "/usr/lib/portage/pym/portage.py", line 4138, in match
    mydep=dep_expand(origdep,self,use_cache=use_cache)
  File "/usr/lib/portage/pym/portage.py", line 3258, in dep_expand
    return prefix+cpv_expand(mydep,mydb,use_cache=use_cache)+postfix
  File "/usr/lib/portage/pym/portage.py", line 3185, in cpv_expand
    if (not mydb.cp_list(mykey,use_cache=use_cache)) and virts and virts.has_key(mykey):
  File "/usr/lib/portage/pym/portage.py", line 4082, in cp_list
    mystat=os.stat(self.root+VDB_PATH+"/"+mysplit[0])[ST_MTIME]
TypeError: stat() argument 1 must be (encoded string without NULL bytes), not str


here's some info:

Code:
linuxboxen root # emerge --version
Portage 2.0.50-r1 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.3-mm4)

linuxboxen root # emerge info
Portage 2.0.50-r1 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.3-mm4)
=================================================================
System uname: 2.6.3-mm4 i686 AMD Duron(tm) Processor
Gentoo Base System version 1.4.3.13
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.7.7
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /etc/tomcat /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /var/bind /var/lib/jboss /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://cudlug.cudenver.edu/pub/mirrors/distributions/gentoo/ http://mirrors.tds.net/gentoo ftp://gentoo.ccccom.com http://gentoo.ccccom.com"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X aalib acl alsa apache2 arts berkdb caps crypt cups ethereal fam fastcgi fbcon firebird foomaticdb freetds gdbm gif gpm gtk2 imagemagick imap imlib informix innodb ipv6 java jikes jpeg junit kde ldap lesstif libwww maildir mbox mcal mmx motif mozilla mpi mysql ncurses odbc oggvorbis opengl pam pdflib perl png postgres ppds python qt readline samba sasl scanner slang slp snmp socks5 spell sse ssl svga tcltk tcpd tiff truetype unicode usb x86 xml2 xosd xv zeo zlib"

Back to top
View user's profile Send private message
ecatmur
Advocate
Advocate


Joined: 20 Oct 2003
Posts: 3595
Location: Edinburgh

PostPosted: Tue Mar 02, 2004 12:05 am    Post subject: Reply with quote

What version of Python are you runnning?
Back to top
View user's profile Send private message
Lord Tocharian
Tux's lil' helper
Tux's lil' helper


Joined: 11 Mar 2003
Posts: 75

PostPosted: Sat Mar 06, 2004 11:31 pm    Post subject: Reply with quote

Hrm, I didn't see anything in bugzilla so perhaps you should file a bug report. I started getting the exact same error this morning on my laptop.
Back to top
View user's profile Send private message
Lord Tocharian
Tux's lil' helper
Tux's lil' helper


Joined: 11 Mar 2003
Posts: 75

PostPosted: Tue Mar 09, 2004 5:53 pm    Post subject: Reply with quote

It seems this was a dupe. After looking through bugzilla for awhile, I found the answer. Delete your /var/cache/edb/world and then run /usr/lib/portage/bin/regenworld
Back to top
View user's profile Send private message
lewk
Retired Dev
Retired Dev


Joined: 21 Dec 2003
Posts: 32
Location: Boston, MA

PostPosted: Wed Mar 10, 2004 10:13 pm    Post subject: Reply with quote

Lord Tocharian wrote:
It seems this was a dupe. After looking through bugzilla for awhile, I found the answer. Delete your /var/cache/edb/world and then run /usr/lib/portage/bin/regenworld

I had the same exact error, and that took care of it!

Thanks!
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