Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 102614 - emerge dies after running 'emerge sync' on a 1.4 box
Summary: emerge dies after running 'emerge sync' on a 1.4 box
Status: RESOLVED DUPLICATE of bug 63400
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-15 08:27 UTC by Trey Stout
Modified: 2005-08-15 08:36 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 Trey Stout 2005-08-15 08:27:12 UTC
I let an old forgotten server get a bit behind the curve. It was originally
installed with 1.4, and has had a couple of tree updates. Today I ran 'emerge
sync' on it, and it connected to the portage server and updated its tree. It
told me there was a newer version of portage (duh), so I tried 'emerge -pv
portage' to see what other newness it wanted to install. I was greeted with this
error...

::root@sonic - etc::> emerge portage
!!! 'str' object has no attribute 'insert'
!!! 'rm -Rf /usr/portage/profiles; emerge sync' may fix this. If it does
!!! not then please report this to bugs.gentoo.org and, if possible, a dev
!!! on #gentoo (irc.freenode.org)



Reproducible: Always
Steps to Reproduce:
1. 'emerge sync' on a 1.4 box
2. 'emerge <anything>'


Actual Results:  
See the notes...

Expected Results:  
Ran the portage updates

Now this sounded a lot like a python error, so I also ran 'python -v
/usr/bin/emerge portage' to see some more output. Here it is...

# installing zipimport hook
import zipimport # builtin
# installed zipimport hook
# /usr/lib/python2.3/site.pyc matches /usr/lib/python2.3/site.py
import site # precompiled from /usr/lib/python2.3/site.pyc
# /usr/lib/python2.3/os.pyc matches /usr/lib/python2.3/os.py
import os # precompiled from /usr/lib/python2.3/os.pyc
import posix # builtin
# /usr/lib/python2.3/posixpath.pyc matches /usr/lib/python2.3/posixpath.py
import posixpath # precompiled from /usr/lib/python2.3/posixpath.pyc
# /usr/lib/python2.3/stat.pyc matches /usr/lib/python2.3/stat.py
import stat # precompiled from /usr/lib/python2.3/stat.pyc
# /usr/lib/python2.3/UserDict.pyc matches /usr/lib/python2.3/UserDict.py
import UserDict # precompiled from /usr/lib/python2.3/UserDict.pyc
# /usr/lib/python2.3/copy_reg.pyc matches /usr/lib/python2.3/copy_reg.py
import copy_reg # precompiled from /usr/lib/python2.3/copy_reg.pyc
# /usr/lib/python2.3/types.pyc matches /usr/lib/python2.3/types.py
import types # precompiled from /usr/lib/python2.3/types.pyc
# /usr/lib/python2.3/warnings.pyc matches /usr/lib/python2.3/warnings.py
import warnings # precompiled from /usr/lib/python2.3/warnings.pyc
# /usr/lib/python2.3/linecache.pyc matches /usr/lib/python2.3/linecache.py
import linecache # precompiled from /usr/lib/python2.3/linecache.pyc
import encodings # directory /usr/lib/python2.3/encodings
# /usr/lib/python2.3/encodings/__init__.pyc matches
/usr/lib/python2.3/encodings/__init__.py
import encodings # precompiled from /usr/lib/python2.3/encodings/__init__.pyc
# /usr/lib/python2.3/codecs.pyc matches /usr/lib/python2.3/codecs.py
import codecs # precompiled from /usr/lib/python2.3/codecs.pyc
import _codecs # builtin
# /usr/lib/python2.3/encodings/aliases.pyc matches
/usr/lib/python2.3/encodings/aliases.py
import encodings.aliases # precompiled from /usr/lib/python2.3/encodings/aliases.pyc
# /usr/lib/python2.3/encodings/ascii.pyc matches
/usr/lib/python2.3/encodings/ascii.py
import encodings.ascii # precompiled from /usr/lib/python2.3/encodings/ascii.pyc
Python 2.3.3 (#1, Feb  9 2004, 23:07:28)
[GCC 3.3.2 20031218 (Gentoo Linux 3.3.2-r5, propolice-3.3-7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
# /usr/lib/portage/pym/emergehelp.pyc matches /usr/lib/portage/pym/emergehelp.py
import emergehelp # precompiled from /usr/lib/portage/pym/emergehelp.pyc
# /usr/lib/portage/pym/output.pyc matches /usr/lib/portage/pym/output.py
import output # precompiled from /usr/lib/portage/pym/output.pyc
# /usr/lib/portage/pym/xpak.pyc matches /usr/lib/portage/pym/xpak.py
import xpak # precompiled from /usr/lib/portage/pym/xpak.pyc
# /usr/lib/python2.3/string.pyc matches /usr/lib/python2.3/string.py
import string # precompiled from /usr/lib/python2.3/string.pyc
import strop # dynamically loaded from /usr/lib/python2.3/lib-dynload/strop.so
# /usr/lib/python2.3/re.pyc matches /usr/lib/python2.3/re.py
import re # precompiled from /usr/lib/python2.3/re.pyc
# /usr/lib/python2.3/sre.pyc matches /usr/lib/python2.3/sre.py
import sre # precompiled from /usr/lib/python2.3/sre.pyc
# /usr/lib/python2.3/sre_compile.pyc matches /usr/lib/python2.3/sre_compile.py
import sre_compile # precompiled from /usr/lib/python2.3/sre_compile.pyc
import _sre # builtin
# /usr/lib/python2.3/sre_constants.pyc matches /usr/lib/python2.3/sre_constants.py
import sre_constants # precompiled from /usr/lib/python2.3/sre_constants.pyc
# /usr/lib/python2.3/sre_parse.pyc matches /usr/lib/python2.3/sre_parse.py
import sre_parse # precompiled from /usr/lib/python2.3/sre_parse.pyc
# /usr/lib/python2.3/commands.pyc matches /usr/lib/python2.3/commands.py
import commands # precompiled from /usr/lib/python2.3/commands.pyc
import time # dynamically loaded from /usr/lib/python2.3/lib-dynload/time.so
# /usr/lib/python2.3/shutil.pyc matches /usr/lib/python2.3/shutil.py
import shutil # precompiled from /usr/lib/python2.3/shutil.pyc
# /usr/lib/python2.3/traceback.pyc matches /usr/lib/python2.3/traceback.py
import traceback # precompiled from /usr/lib/python2.3/traceback.pyc
# /usr/lib/python2.3/atexit.pyc matches /usr/lib/python2.3/atexit.py
import atexit # precompiled from /usr/lib/python2.3/atexit.pyc
# /usr/lib/python2.3/socket.pyc matches /usr/lib/python2.3/socket.py
import socket # precompiled from /usr/lib/python2.3/socket.pyc
import _socket # dynamically loaded from /usr/lib/python2.3/lib-dynload/_socket.so
import _ssl # dynamically loaded from /usr/lib/python2.3/lib-dynload/_ssl.so
import errno # builtin
# /usr/lib/portage/pym/portage.pyc matches /usr/lib/portage/pym/portage.py
import portage # precompiled from /usr/lib/portage/pym/portage.pyc
# /usr/lib/python2.3/shlex.pyc matches /usr/lib/python2.3/shlex.py
import shlex # precompiled from /usr/lib/python2.3/shlex.pyc
import cStringIO # dynamically loaded from
/usr/lib/python2.3/lib-dynload/cStringIO.so
import fcntl # dynamically loaded from /usr/lib/python2.3/lib-dynload/fcntl.so
import cPickle # dynamically loaded from /usr/lib/python2.3/lib-dynload/cPickle.so
import grp # dynamically loaded from /usr/lib/python2.3/lib-dynload/grp.so
import pwd # dynamically loaded from /usr/lib/python2.3/lib-dynload/pwd.so
# /usr/lib/portage/pym/cvstree.pyc matches /usr/lib/portage/pym/cvstree.py
import cvstree # precompiled from /usr/lib/portage/pym/cvstree.pyc
# /usr/lib/python2.3/copy.pyc matches /usr/lib/python2.3/copy.py
import copy # precompiled from /usr/lib/python2.3/copy.pyc
# /usr/lib/portage/pym/getbinpkg.pyc matches /usr/lib/portage/pym/getbinpkg.py
import getbinpkg # precompiled from /usr/lib/portage/pym/getbinpkg.pyc
# /usr/lib/python2.3/htmllib.pyc matches /usr/lib/python2.3/htmllib.py
import htmllib # precompiled from /usr/lib/python2.3/htmllib.pyc
# /usr/lib/python2.3/sgmllib.pyc matches /usr/lib/python2.3/sgmllib.py
import sgmllib # precompiled from /usr/lib/python2.3/sgmllib.pyc
# /usr/lib/python2.3/markupbase.pyc matches /usr/lib/python2.3/markupbase.py
import markupbase # precompiled from /usr/lib/python2.3/markupbase.pyc
# /usr/lib/python2.3/formatter.pyc matches /usr/lib/python2.3/formatter.py
import formatter # precompiled from /usr/lib/python2.3/formatter.pyc
# /usr/lib/python2.3/htmlentitydefs.pyc matches /usr/lib/python2.3/htmlentitydefs.py
import htmlentitydefs # precompiled from /usr/lib/python2.3/htmlentitydefs.pyc
# /usr/lib/python2.3/HTMLParser.pyc matches /usr/lib/python2.3/HTMLParser.py
import HTMLParser # precompiled from /usr/lib/python2.3/HTMLParser.pyc
# /usr/lib/python2.3/tempfile.pyc matches /usr/lib/python2.3/tempfile.py
import tempfile # precompiled from /usr/lib/python2.3/tempfile.pyc
# /usr/lib/python2.3/random.pyc matches /usr/lib/python2.3/random.py
import random # precompiled from /usr/lib/python2.3/random.pyc
import math # dynamically loaded from /usr/lib/python2.3/lib-dynload/math.so
import _random # dynamically loaded from /usr/lib/python2.3/lib-dynload/_random.so
import thread # builtin
# /usr/lib/python2.3/base64.pyc matches /usr/lib/python2.3/base64.py
import base64 # precompiled from /usr/lib/python2.3/base64.pyc
import binascii # dynamically loaded from /usr/lib/python2.3/lib-dynload/binascii.so
# /usr/lib/python2.3/ftplib.pyc matches /usr/lib/python2.3/ftplib.py
import ftplib # precompiled from /usr/lib/python2.3/ftplib.pyc
# /usr/lib/python2.3/httplib.pyc matches /usr/lib/python2.3/httplib.py
import httplib # precompiled from /usr/lib/python2.3/httplib.pyc
# /usr/lib/python2.3/mimetools.pyc matches /usr/lib/python2.3/mimetools.py
import mimetools # precompiled from /usr/lib/python2.3/mimetools.pyc
# /usr/lib/python2.3/rfc822.pyc matches /usr/lib/python2.3/rfc822.py
import rfc822 # precompiled from /usr/lib/python2.3/rfc822.pyc
# /usr/lib/python2.3/urlparse.pyc matches /usr/lib/python2.3/urlparse.py
import urlparse # precompiled from /usr/lib/python2.3/urlparse.pyc
import select # dynamically loaded from /usr/lib/python2.3/lib-dynload/select.so
import fchksum # dynamically loaded from /usr/lib/python2.3/site-packages/fchksum.so
!!! 'str' object has no attribute 'insert'
!!! 'rm -Rf /usr/portage/profiles; emerge sync' may fix this. If it does
!!! not then please report this to bugs.gentoo.org and, if possible, a dev
!!! on #gentoo (irc.freenode.org)
# clear __builtin__._
# clear sys.path
# clear sys.argv
# clear sys.ps1
# clear sys.ps2
# clear sys.exitfunc
# clear sys.exc_type
# clear sys.exc_value
# clear sys.exc_traceback
# clear sys.last_type
# clear sys.last_value
# clear sys.last_traceback
# clear sys.path_hooks
# clear sys.path_importer_cache
# clear sys.meta_path
# restore sys.stdin
# restore sys.stdout
# restore sys.stderr
# cleanup __main__
# cleanup[1] cStringIO
# cleanup[1] site
# cleanup[1] encodings
# cleanup[1] select
# cleanup[1] portage
# cleanup[1] getbinpkg
# cleanup[1] grp
# cleanup[1] sre_constants
# cleanup[1] _codecs
# cleanup[1] emergehelp
# cleanup[1] formatter
# cleanup[1] htmlentitydefs
# cleanup[1] math
# cleanup[1] shlex
# cleanup[1] ftplib
# cleanup[1] zipimport
# cleanup[1] warnings
# cleanup[1] encodings.ascii
# cleanup[1] cPickle
# cleanup[1] httplib
# cleanup[1] pwd
# cleanup[1] xpak
# cleanup[1] urlparse
# cleanup[1] codecs
# cleanup[1] copy
# cleanup[1] strop
# cleanup[1] commands
# cleanup[1] socket
# cleanup[1] sre
# cleanup[1] signal
# cleanup[1] traceback
# cleanup[1] sgmllib
# cleanup[1] random
# cleanup[1] linecache
# cleanup[1] htmllib
# cleanup[1] posix
# cleanup[1] encodings.aliases
# cleanup[1] output
# cleanup[1] sre_parse
# cleanup[1] mimetools
# cleanup[1] base64
# cleanup[1] sre_compile
# cleanup[1] rfc822
# cleanup[1] _sre
# cleanup[1] fchksum
# cleanup[1] atexit
# cleanup[1] _ssl
# cleanup[1] HTMLParser
# cleanup[1] cvstree
# cleanup[1] shutil
# cleanup[1] markupbase
# cleanup[1] tempfile
# cleanup[1] errno
# cleanup[1] _socket
# cleanup[1] binascii
# cleanup[1] re
# cleanup[1] fcntl
# cleanup[1] string
# cleanup[1] types
# cleanup[1] _random
# cleanup[1] thread
# cleanup[1] time
# cleanup[1] exceptions
# cleanup[2] copy_reg
# cleanup[2] posixpath
# cleanup[2] os.path
# cleanup[2] stat
# cleanup[2] UserDict
# cleanup[2] os
# cleanup sys
# cleanup __builtin__
# cleanup ints: 34 unfreed ints in 19 out of 113 blocks
# cleanup floats: 28 unfreed floats in 1 out of 1 block

Also, I can't even run an emerge info...

:root@sonic - etc::> emerge info
!!! 'str' object has no attribute 'insert'
!!! 'rm -Rf /usr/portage/profiles; emerge sync' may fix this. If it does
!!! not then please report this to bugs.gentoo.org and, if possible, a dev
!!! on #gentoo (irc.freenode.org)
Comment 1 Jason Stubbs (RETIRED) gentoo-dev 2005-08-15 08:36:56 UTC

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