Gentoo Archives: gentoo-alt

From: Aaron Wilson <tallest@×××××.com>
To: gentoo-alt@l.g.o
Subject: [gentoo-alt] [prefix] emerge fails with "IndexError: list index out of range"
Date: Wed, 11 Jun 2008 17:22:27
Message-Id: 36AE5E68-AA17-4E44-9244-CFCABDEB49CC@gmail.com
I hadn't updated portage in a while, I had to remove the SYNC= line in  
make.conf. At the very end of the sync I received an error which is  
now given every time emerge is run:

$ emerge --help
Traceback (most recent call last):
   File "/Users/wilson/Library/Gentoo/usr/bin/emerge", line 20, in  
<module>
     retval = _emerge.emerge_main()
   File "/Users/wilson/Library/Gentoo/usr/lib/portage/pym/_emerge/ 
__init__.py", line 7906, in emerge_main
     settings, trees, mtimedb = load_emerge_config()
   File "/Users/wilson/Library/Gentoo/usr/lib/portage/pym/_emerge/ 
__init__.py", line 7789, in load_emerge_config
     root_trees["root_config"] = RootConfig(root_trees, setconfig)
   File "/Users/wilson/Library/Gentoo/usr/lib/portage/pym/_emerge/ 
__init__.py", line 752, in __init__
     self.sets = self.setconfig.getSets()
   File "/Users/wilson/Library/Gentoo/usr/lib/portage/pym/portage/sets/ 
__init__.py", line 86, in getSets
     self._parse()
   File "/Users/wilson/Library/Gentoo/usr/lib/portage/pym/portage/sets/ 
__init__.py", line 76, in _parse
     self.psets[setname] = setclass.singleBuilder(optdict,  
self.settings, self.trees)
   File "/Users/wilson/Library/Gentoo/usr/lib/portage/pym/portage/sets/ 
profiles.py", line 25, in singleBuilder
     return PackagesSystemSet(settings.profiles)
   File "/Users/wilson/Library/Gentoo/usr/lib/portage/pym/portage/sets/ 
profiles.py", line 17, in __init__
     self.description = "System packages for profile %s" %  
self._profile_paths[-1]
IndexError: list index out of range

I don't know if the problem existed before the sync as I hadn't  
touched portage in a month or so. Any help would be greatly appreciated.

Thanks,
Aaron

P.S. I'm running OS X 10.5.3 on a MacBook Pro Core Duo. 
-- 
gentoo-alt@l.g.o mailing list

Replies