Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 55363 - emerge -av --emptytree -f world: TypeError: cannot concatenate 'str' and 'long' objects
Summary: emerge -av --emptytree -f world: TypeError: cannot concatenate 'str' and 'lon...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-27 14:36 UTC by Michael Mauch
Modified: 2004-09-29 17:59 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 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.