Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 546922 - emerge throws UnicodeDecodeError when sync time was long ago
Summary: emerge throws UnicodeDecodeError when sync time was long ago
Status: RESOLVED DUPLICATE of bug 530982
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-17 16:38 UTC by nesuno
Modified: 2015-04-17 17:17 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 nesuno 2015-04-17 16:38:12 UTC
When portage was synced weeks ago, emerge throws an exeception:
# emerge -av some-package
Traceback (most recent call last):
  File "/usr/lib/python-exec/python2.7/emerge", line 50, in <module>
    retval = emerge_main()
  File "/usr/lib64/python2.7/site-packages/_emerge/main.py", line 1070, in emerge_main
    return run_action(emerge_config)
  File "/usr/lib64/python2.7/site-packages/_emerge/actions.py", line 4082, in run_action
    emerge_config.args, spinner)
  File "/usr/lib64/python2.7/site-packages/_emerge/actions.py", line 99, in action_build
    old_tree_timestamp_warn(settings['PORTDIR'], settings)
  File "/usr/lib64/python2.7/site-packages/_emerge/sync/old_tree_timestamp.py", line 98, in old_tree_timestamp_warn
    time.strftime('%c', time.localtime(lastsync)))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 19: ordinal not in range(128)

Quick workaround:
# export LANG="C"
# emerge -av some-package
 * Last emerge --sync was 50d 8h 6m 54s ago.
  .....and continues normally.....

My original LANG:
$ echo $LANG
hu_HU.UTF-8

The trace seems to be scary (indicating something is very broken), --sync also did not work originally. However, after applying the workaround it works fine.
Comment 1 Zac Medico gentoo-dev 2015-04-17 17:17:20 UTC

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