Gentoo Archives: gentoo-user

From: Helmut Jarausch <jarausch@××××××××××××××××.de>
To: gentoo-user <gentoo-user@l.g.o>
Subject: [gentoo-user] import site fails - why
Date: Fri, 12 Nov 2010 13:57:25
Message-Id: 1289570180.25557.0@numa-i
1 Hi,
2
3 I have cloned the root fs and /usr onto a new machine (as I have done
4 many times before)
5
6 I boot SystemRescueCD and mount the new root on, say, /nroot
7 Then my standard procedure is as follows
8
9 mount -o bind /proc /nroot/proc
10 mount -o bind /dev /nroot/proc
11
12 chroot /nroot /bin/bash
13
14 cp /proc/mounts /etc/mtab
15 mount /usr
16
17 env-update
18
19 and finally
20
21 source /etc/profile
22
23 BUT, this time, env-update fails because it cannot
24 import site
25
26 the error being
27
28 TypeError stat() argument 1 must be an encoded string without NULL
29 bytes.
30
31 Has anybody an explanation for this failure?
32
33 (the system is bleeding edge ~amd64, eselected python-2.6
34 (python-2.6.6-r1)
35
36 Many thanks for a hint,
37 Helmut.

Replies

Subject Author
Re: [gentoo-user] import site fails - why "Fatih Tümen" <fthtmn+gentoo@×××××.com>