[gentoo-user] Problems with bootstrap stage1, emerge errors

2009-04-08 Thread HObbES
My google and forum fu are failing me with this. Let me know if you have run 
into this on an Intel box.

Thanks,

-Anne

In building a gentoo, I'm doing the following in my home directory (after sudo):
mkdir gentoo
cd gentoo
tar -xvjpf stage1-x86-2008.0.tar.bz2
tar -xvjpf portage-latest.tar.bz2 usr

cp /etc/resolv.conf and /etc/make.conf to etc
chroot . /bin/bash

emerge --sync

Everything is good up until I run /usr/portage/scripts/bootstrap.sh. It looks 
like emerge is failing on portage here (this also happens when doing emerge 
portage):

/usr/portage/scripts/bootstrap.sh 
 * Resuming bootstrap at internal stage #2 ...

Gentoo Linux; http://www.gentoo.org/
Copyright 1999-2008 Gentoo Foundation; Distributed under the GPLv2
Starting Bootstrap of base system ...
---
  [[ (0/3) Locating packages ]]
Traceback (most recent call last):
  File /usr/bin/portageq, line 609, in ?
main()
  File /usr/bin/portageq, line 578, in main
import portage
  File //usr/lib/portage/pym/portage/__init__.py, line 8215, in ?
_ensure_default_encoding()
  File //usr/lib/portage/pym/portage/__init__.py, line 7796, in 
_ensure_default_encoding
encodings = _gen_missing_encodings(missing_encodings)
  File //usr/lib/portage/pym/portage/__init__.py, line 7706, in 
_gen_missing_encodings
class AsciiIncrementalEncoder(codecs.IncrementalEncoder):
AttributeError: 'module' object has no attribute 'IncrementalEncoder'
Traceback (most recent call last):
  File string, line 1, in ?
  File //usr/lib/portage/pym/portage/__init__.py, line 8215, in ?
_ensure_default_encoding()
  File //usr/lib/portage/pym/portage/__init__.py, line 7796, in 
_ensure_default_encoding
encodings = _gen_missing_encodings(missing_encodings)
  File //usr/lib/portage/pym/portage/__init__.py, line 7706, in 
_gen_missing_encodings
class AsciiIncrementalEncoder(codecs.IncrementalEncoder):
AttributeError: 'module' object has no attribute 'IncrementalEncoder'
Traceback (most recent call last):
  File /usr/bin/portageq, line 609, in ?
main()
  File /usr/bin/portageq, line 578, in main
import portage
  File //usr/lib/portage/pym/portage/__init__.py, line 8215, in ?
_ensure_default_encoding()
  File //usr/lib/portage/pym/portage/__init__.py, line 7796, in 
_ensure_default_encoding
encodings = _gen_missing_encodings(missing_encodings)
  File //usr/lib/portage/pym/portage/__init__.py, line 7706, in 
_gen_missing_encodings
class AsciiIncrementalEncoder(codecs.IncrementalEncoder):
AttributeError: 'module' object has no attribute 'IncrementalEncoder'
 * Using baselayout : =
 * Using portage: portage
 * Using os-headers : virtual/os-headers
 * Using binutils   : binutils
 * Using gcc: gcc
 * Using libc   : virtual/libc
 * Using texinfo: sys-apps/texinfo
 * Using zlib   : zlib
 * Using ncurses: ncurses
---
  [[ (1/3) Configuring environment ]]
Traceback (most recent call last):
  File string, line 1, in ?
  File //usr/lib/portage/pym/portage/__init__.py, line 8215, in ?
_ensure_default_encoding()
  File //usr/lib/portage/pym/portage/__init__.py, line 7796, in 
_ensure_default_encoding
encodings = _gen_missing_encodings(missing_encodings)
  File //usr/lib/portage/pym/portage/__init__.py, line 7706, in 
_gen_missing_encodings
class AsciiIncrementalEncoder(codecs.IncrementalEncoder):
AttributeError: 'module' object has no attribute 'IncrementalEncoder'
---
  [[ (3/3) Emerging packages ]]
Traceback (most recent call last):
  File /usr/bin/emerge, line 29, in ?
import _emerge
  File //usr/lib/portage/pym/_emerge/__init__.py, line 26, in ?
import portage
  File //usr/lib/portage/pym/portage/__init__.py, line 8215, in ?
_ensure_default_encoding()
  File //usr/lib/portage/pym/portage/__init__.py, line 7796, in 
_ensure_default_encoding
encodings = _gen_missing_encodings(missing_encodings)
  File //usr/lib/portage/pym/portage/__init__.py, line 7706, in 
_gen_missing_encodings
class AsciiIncrementalEncoder(codecs.IncrementalEncoder):
AttributeError: 'module' object has no attribute 'IncrementalEncoder'
:

--
It is proverbial that from   (\`--/') _ ___ .-r-.  
a hungry tiger and an .~.\ `` ` `,`,`. ,'_'~`.  
affectionate woman there is  (v_, ; `,-\ ; : ; \/,-~) \
no escape. -Ernest Bramah `--'_..),-/ ' ' '_.-' )`.`.__.')   
hobbes at vaxer dot net  ((,((,__..'~~((,__..'  `-..-'fL



Re: [gentoo-user] Problems with bootstrap stage1, emerge errors

2009-04-08 Thread Alan McKinnon
On Wednesday 08 April 2009 19:02:20 HObbES wrote:
 My google and forum fu are failing me with this. Let me know if you have
 run into this on an Intel box.

 Thanks,

 -Anne

 In building a gentoo, I'm doing the following in my home directory (after
 sudo): mkdir gentoo
 cd gentoo
 tar -xvjpf stage1-x86-2008.0.tar.bz2-'fL

Why are you using a stage 1?

stage 1 is not supported by anyone and was only ever really useful as step 1 
of 3 in building the stage 3 that you *should* be installing.

-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Problems with bootstrap stage1, emerge errors

2009-04-08 Thread HObbES
This one time, Alan McKinnon wrote:
  cd gentoo
  tar -xvjpf stage1-x86-2008.0.tar.bz2-'fL
 Why are you using a stage 1?

Because I'm required to for work. I understand it's no longer supported.

 stage 1 is not supported by anyone and was only ever really useful as step 1 
 of 3 in building the stage 3 that you *should* be installing.

And I understand this completely. However, it doesn't preclude my need to learn 
it.

-Anne
--
It is proverbial that from   (\`--/') _ ___ .-r-.  
a hungry tiger and an .~.\ `` ` `,`,`. ,'_'~`.  
affectionate woman there is  (v_, ; `,-\ ; : ; \/,-~) \
no escape. -Ernest Bramah `--'_..),-/ ' ' '_.-' )`.`.__.')   
hobbes at vaxer dot net  ((,((,__..'~~((,__..'  `-..-'fL



Re: [gentoo-user] Problems with bootstrap stage1, emerge errors

2009-04-08 Thread James Ausmus
On Wed, Apr 8, 2009 at 10:02 AM, HObbES hob...@vaxer.net wrote:

 My google and forum fu are failing me with this. Let me know if you have run 
 into this on an Intel box.

 Thanks,

 -Anne

 In building a gentoo, I'm doing the following in my home directory (after 
 sudo):
 mkdir gentoo
 cd gentoo
 tar -xvjpf stage1-x86-2008.0.tar.bz2


Shouldn't this:

 tar -xvjpf portage-latest.tar.bz2 usr

be:

tar -xvjpf portage-latest.tar.bz2 -C usr

snip