1 |
Hi Fabian, |
2 |
|
3 |
yes, I emerged python every time whether needed or not. Trying your commands, |
4 |
|
5 |
% head -n1 $EPREFIX/usr/lib/portage/pym/emerge/__init__.py |
6 |
#!/rh8/home-local/erarafo/g2/usr/bin/python -O |
7 |
|
8 |
% file $EPREFIX/usr/lib/portage/pym/portage/const.py |
9 |
/rh8/home-local/erarafo/g2/usr/lib/portage/pym/portage/const.py: ASCII |
10 |
English text |
11 |
|
12 |
% which python |
13 |
/rh8/home-local/erarafo/g2/usr/bin/python |
14 |
|
15 |
% python -c 'import portage.const ; print portage.const.EPREFIX' |
16 |
Traceback (most recent call last): |
17 |
File "<string>", line 1, in ? |
18 |
ImportError: No module named const |
19 |
|
20 |
--Rabbe |
21 |
|
22 |
|
23 |
> The portage version installed from the snapshot, is the same as the |
24 |
> portage version bootstrapped. It looks like something else causes this |
25 |
> problem. |
26 |
> |
27 |
> Some questions: |
28 |
> - output of |
29 |
> % head -n1 $EPREFIX/usr/lib/portage/pym/emerge/__init__.py |
30 |
> - did you emerge python, or did you skip it? |
31 |
> - do you have a $EPREFIX/usr/lib/portage/pym/portage/const.py |
32 |
> - does this work? |
33 |
> % python -c 'import portage.const ; print portage.const.EPREFIX' |
34 |
> |
35 |
> |
36 |
> On 12-09-2007 19:15:55 +0200, Rabbe Fogelholm wrote: |
37 |
>> Fabian Groffen wrote: |
38 |
>> > On 11-09-2007 23:05:56 +0200, Rabbe Fogelholm wrote: |
39 |
>> >> I decided to make a first shot in an up-to-date Gentoo Linux |
40 |
>> >> environment; there couldn't be a friendlier environment could it? :-) |
41 |
>> >> |
42 |
>> >> Things went fine up to the `emerge --oneshot gawk' step, where I got |
43 |
>> this: |
44 |
>> >> |
45 |
>> >> ------------------------------------------ |
46 |
>> >> Traceback (most recent call last): |
47 |
>> >> File "/var/tmp/gentoo/usr/bin/emerge", line 12, in ? |
48 |
>> >> from emerge import * |
49 |
>> >> File "/var/tmp/gentoo/usr/lib/portage/pym/emerge/__init__.py", line |
50 |
>> >> 34, in ? |
51 |
>> >> from portage.const import NEWS_LIB_PATH, CACHE_PATH, PRIVATE_PATH |
52 |
>> >> ImportError: No module named const |
53 |
>> >> ------------------------------------------ |
54 |
>> >> |
55 |
>> >> It seems that the preceding step, which emerges portage, has some |
56 |
>> >> problem even though it finishes with a zero status. |
57 |
>> > |
58 |
>> > Hmmm.... looks like the install image has an older/wrong portage in |
59 |
>> it. |
60 |
>> > Can you find out what version of portage it has installed? |
61 |
>> > |
62 |
>> |
63 |
>> I tried `emerge --version' in the EPREFIX, but that was broken too and |
64 |
>> refused to say. The emerge.log had this though: |
65 |
>> |
66 |
>> 1189543663: *** emerge --oneshot --nodeps portage |
67 |
>> 1189543664: >>> emerge (1 of 1) sys-apps/portage-2.2.00.7595 to / |
68 |
>> 1189543664: === (1 of 1) Cleaning |
69 |
>> (sys-apps/portage-2.2.00.7595::/usr/tmp/gentoo/usr/portage/sys-apps/portage/portage-2.2.00.7595.ebuild) |
70 |
>> 1189543665: === (1 of 1) Compiling/Merging |
71 |
>> (sys-apps/portage-2.2.00.7595::/usr/tmp/gentoo/usr/portage/sys-apps/portage/portage-2.2.00.7595.ebuild) |
72 |
>> 1189543692: >>> AUTOCLEAN: sys-apps/portage |
73 |
>> 1189543692: --- AUTOCLEAN: Nothing unmerged. |
74 |
>> 1189543692: === (1 of 1) Post-Build Cleaning |
75 |
>> (sys-apps/portage-2.2.00.7595::/usr/tmp/gentoo/usr/portage/sys-apps/portage/portage-2.2.00.7595.ebuild) |
76 |
>> 1189543692: ::: completed emerge (1 of 1) sys-apps/portage-2.2.00.7595 |
77 |
>> to / |
78 |
>> 1189543692: *** Finished. Cleaning up... |
79 |
>> 1189543693: *** exiting successfully. |
80 |
>> 1189543693: *** terminating. |
81 |
> |
82 |
> -- |
83 |
> Fabian Groffen |
84 |
> Gentoo on a different level |
85 |
> -- |
86 |
> gentoo-alt@g.o mailing list |
87 |
> |
88 |
> |
89 |
|
90 |
|
91 |
-- |
92 |
gentoo-alt@g.o mailing list |