1 |
2010-07-13 07:32, Blackdream W skrev: |
2 |
> cat /etc/locale.gen |
3 |
> |
4 |
> en_US ISO-8859-1 |
5 |
> en_US.UTF-8 UTF-8 |
6 |
> |
7 |
> 2010/7/13 Zhu Sha Zang <zhushazang@×××××××××.br> |
8 |
> |
9 |
>> I see this error when i'm trying to "compile" my python source codes in |
10 |
>> eric4/eric5 and my system are with uncorrect locales. |
11 |
>> |
12 |
>> Your locale are corect? |
13 |
>> |
14 |
>> att |
15 |
>> |
16 |
>> Em Tue, 13 Jul 2010 02:03:35 -0300, Blackdream W <blackdream1890@×××××.com> |
17 |
>> escreveu: |
18 |
>> |
19 |
>> |
20 |
>> https://bugs.gentoo.org/show_bug.cgi?id=328047 |
21 |
>>> |
22 |
>>> I'm using ~amd64,and I sync my portage tree just now,but I couldn't |
23 |
>>> upgrade |
24 |
>>> to dev-lang/python-3.1.2-r4. |
25 |
>>> |
26 |
>>> "UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position 1: |
27 |
>>> ordinal not in range(128)" |
28 |
>>> |
29 |
>>> |
30 |
>>> any help?thx |
31 |
|
32 |
I get a similar error: |
33 |
running build_ext |
34 |
Traceback (most recent call last): |
35 |
File "./setup.py", line 1823, in <module> |
36 |
main() |
37 |
File "./setup.py", line 1817, in main |
38 |
"Tools/scripts/2to3"] |
39 |
File |
40 |
"/var/tmp/portage/dev-lang/python-3.1.2-r4/work/Python-3.1.2/Lib/distutils/core.py", |
41 |
line 149, in setup |
42 |
dist.run_commands() |
43 |
File |
44 |
"/var/tmp/portage/dev-lang/python-3.1.2-r4/work/Python-3.1.2/Lib/distutils/dist.py", |
45 |
line 919, in run_commands |
46 |
self.run_command(cmd) |
47 |
File |
48 |
"/var/tmp/portage/dev-lang/python-3.1.2-r4/work/Python-3.1.2/Lib/distutils/dist.py", |
49 |
line 938, in run_command |
50 |
cmd_obj.run() |
51 |
File |
52 |
"/var/tmp/portage/dev-lang/python-3.1.2-r4/work/Python-3.1.2/Lib/distutils/command/build.py", |
53 |
line 128, in run |
54 |
self.run_command(cmd_name) |
55 |
File |
56 |
"/var/tmp/portage/dev-lang/python-3.1.2-r4/work/Python-3.1.2/Lib/distutils/cmd.py", |
57 |
line 315, in run_command |
58 |
self.distribution.run_command(command) |
59 |
File |
60 |
"/var/tmp/portage/dev-lang/python-3.1.2-r4/work/Python-3.1.2/Lib/distutils/dist.py", |
61 |
line 938, in run_command |
62 |
cmd_obj.run() |
63 |
File |
64 |
"/var/tmp/portage/dev-lang/python-3.1.2-r4/work/Python-3.1.2/Lib/distutils/command/build_ext.py", |
65 |
line 347, in run |
66 |
self.build_extensions() |
67 |
File "./setup.py", line 160, in build_extensions |
68 |
missing = self.detect_modules() |
69 |
File "./setup.py", line 567, in detect_modules |
70 |
for ln in fp: |
71 |
File |
72 |
"/var/tmp/portage/dev-lang/python-3.1.2-r4/work/Python-3.1.2/Lib/encodings/ascii.py", |
73 |
line 26, in decode |
74 |
return codecs.ascii_decode(input, self.errors)[0] |
75 |
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 19: |
76 |
ordinal not in range(128) |