Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 63404 - Portage died with "'str' object has no attribute 'insert'"
Summary: Portage died with "'str' object has no attribute 'insert'"
Status: RESOLVED DUPLICATE of bug 63400
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: AMD64 Linux
: High critical (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-09 04:00 UTC by Janne Ojaniemi
Modified: 2005-07-17 13:06 UTC (History)
3 users (show)

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 Janne Ojaniemi 2004-09-09 04:00:27 UTC
Portage died on me when I ran "emerge sync". Everything seemed to be fine, but at the end I got this error message:

">>> Updating Portage cache...  ...done!

!!! '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)"

I tried rm -Rf /usr/portage/profiles and re-ran emerge sync, but it did not help. If I now try to run emerge sync, I get that error-message immediately. If I delete the profiles, it seems to sync, but it dies in the end (like it did in the first time). Emerging apps does not work either.

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

Actual Results:  
>>> Updating Portage cache...  ...done! 
 
!!! '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) 

Expected Results:  
Finish the sync succesfully 

"emerge info" does not work, it just displays the forementioned 
error-message. 
 
Programs I had running while running emerge: 
 
Konsole (where I ran emerge) 
Kmail 
Konqueror 
KDE 
 
Computer-configuration: 
 
Athlon64 3200+ 
64bit system 
1GB RAM 
Gentoo Linux  
Gentoo 2.6.7-gentoo-12 kernel 
gcc version 3.4.1 20040803 (Gentoo Linux 3.4.1-r2, ssp-3.4-2, pie-8.7.6.5)
Comment 1 Roman Valls 2004-09-09 04:07:01 UTC
Same prob here :-/
Comment 2 Ben Binford 2004-09-09 05:17:45 UTC
I have the same issue on an athlon.

in /usr/lib/portge/pym/portage.py, the grab_stacked function is failing. For some reason one of the keys in the dirc returned by handler is not a tuple, but a string (in my case 'bitmap-fonts xprint'. I'm still looking into that, but I was able to resolve if by wrapping the offending line in a try: except: pass block
try:
   final_dict[y].insert(0,thing)
except:
   pass
Comment 3 ra 2004-09-09 05:22:42 UTC
Same problem on x86 - looks like a general portage problem.

Maybe the priority should be increased, since it kills portage?
Comment 4 Lyall Pearce 2004-09-09 06:14:06 UTC
I also experienced the problem.
Performed emerge on 09-Sep-2004, 13:11 UTC
performed rm -Rf /usr/portage/profiles
re-emerge sync
message appears after apparently completing sync
Subsequent emerge sync immediately generate the error.

bash-2.05b# emerge sync
!!! '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)
bash-2.05b# 

I am not conversant with Python but am experienced in Linux, so I am able to do diagnostic research, if requested.
Comment 5 Nicholas Jones (RETIRED) gentoo-dev 2004-09-09 06:15:05 UTC
I need your profiles and the 'emerge -d' output, if it produces anything.

Respond in bug 63400.

ls -l /etc/make.profile

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

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