I just upgraded to the latest portage sys-apps/portage-2.2_rc41 and now every emerge command gives the following result : emerge --info Traceback (most recent call last): File "/usr/bin/emerge", line 40, in <module> retval = emerge_main() File "/usr/lib/portage/pym/_emerge/main.py", line 1043, in emerge_main settings, trees, mtimedb = load_emerge_config() File "/usr/lib/portage/pym/_emerge/actions.py", line 2583, in load_emerge_config trees = portage.create_trees(trees=trees, **kwargs) File "/usr/lib/portage/pym/portage/__init__.py", line 8781, in create_trees config_incrementals=portage.const.INCREMENTALS) File "/usr/lib/portage/pym/portage/__init__.py", line 1945, in __init__ os.path.join(abs_user_config, "package.use"), recursive=1) File "/usr/lib/portage/pym/portage/util.py", line 299, in grabdict_package k = Atom(k) File "/usr/lib/portage/pym/portage/dep.py", line 514, in __init__ s = mypkg = str(mypkg) UnicodeEncodeError: 'ascii' codec can't encode character u'\ufffd' in position 3: ordinal not in range(128) Reproducible: Always Steps to Reproduce: 1. Install sys-apps/portage-2.2_rc41 2. Try to use emerge 3. I can't give emerge --info as it fails. System is run in ~x86, last sync and update was around 8pm UTC on Sept 17, and synced today at 4pm.
This is probably fixed in svn. There have been too many changes for you to apply a simple patch, but there are instructions here if you'd like to test a checkout (requires python-2.6.x now): http://www.gentoo.org/proj/en/portage/doc/testing.xml The traceback suggests that you've got some unicode in /etc/portage/package.use that's triggering the error. It's being interpreted as part of an atom, so it must not be on a line that begins with #.
This was probably fixed somewhere between 2.1.7 and 2.1.7.16.