Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 6763 - "emerge clean" fails with traceback "ValueError: invalid literal for int():"
Summary: "emerge clean" fails with traceback "ValueError: invalid literal for int():"
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Daniel Robbins (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-20 05:08 UTC by Daniel Haus
Modified: 2011-10-30 22:18 UTC (History)
2 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 Daniel Haus 2002-08-20 05:08:48 UTC
since a few recent portage versions (including 2.0.28) "emerge clean" fails for
me. i have no idea for what reason or what/if did wrong.

here's the output:

saturn # emerge clean
Traceback (most recent call last):
  File "/usr/bin/emerge", line 1311, in ?
    if 1==unmerge(myaction, myfiles):
  File "/usr/bin/emerge", line 1016, in unmerge
    slotmap[myslot][localtree.gettimeval(mypkg)]=mypkg
  File "/usr/lib/python2.2/site-packages/portage.py", line 2693, in gettimeval
    mycountervar=string.atoi(string.split(mycounterfile.readline())[0])
  File "/usr/lib/python2.2/string.py", line 217, in atoi
    return _int(s, base)
ValueError: invalid literal for int(): 
saturn #
Comment 1 Daniel Robbins (RETIRED) gentoo-dev 2002-08-28 20:08:38 UTC
Fixed in Portage 2.0.29.
Comment 2 Daniel Robbins (RETIRED) gentoo-dev 2002-08-28 20:11:33 UTC
Hrm, I guess not; emerge still references gettimeval. Fixing...
Comment 3 Daniel Robbins (RETIRED) gentoo-dev 2002-08-28 21:12:17 UTC
OK, your COUNTER file got corrupted; I added code to deal with this condition in
2.0.30; you can simply search for a /var/db/pkg/*/*/COUNTER that contains a
non-number and delete it to get your version of Portage working again.