Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 55363

Summary: emerge -av --emptytree -f world: TypeError: cannot concatenate 'str' and 'long' objects
Product: Gentoo Linux Reporter: Michael Mauch <michael.mauch>
Component: [OLD] Core systemAssignee: Portage team <dev-portage>
Status: RESOLVED INVALID    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Michael Mauch 2004-06-27 14:36:16 UTC
"emerge -av --emptytree -f world" lists all the packages that it wants to download, then dies with:


Traceback (most recent call last):
  File "/usr/bin/emerge", line 2548, in ?
    mydepgraph.display(mydepgraph.altlist())
  File "/usr/bin/emerge", line 1374, in display
    print "Total size of downloads: "+format_size(totalsize)
TypeError: cannot concatenate 'str' and 'long' objects



Reproducible: Always
Steps to Reproduce:
1. In order to clean my /usr/portage/distfiles, I moved my /usr/portage/distfiles to /usr/portage/distfiles.old and put a link to that directory in /var/www/localhost/htdocs (as suggested in http://forums.gentoo.org/viewtopic.php?t=88832).
2. GENTOO_MIRRORS="http://localhost" in /etc/make.conf.
3. emerge -av --emptytree -f world

Actual Results:  
After "Calculating world dependencies" and after printing all the packages it
wants to download, it dies with the error message from above.

Expected Results:  
It should print the calculated download size, even if it's greater than 2 GB.

"emerge --emptytree -f world" works without problems.
Comment 1 Nicholas Jones (RETIRED) gentoo-dev 2004-09-29 17:59:53 UTC
Reopen if you can reproduce this.
It is technically impossible given the code cited as the cause.

Include CFLAGS and emerge info if reopened.
Also, remerge python with basic CFLAGS and try again.