1 |
On 01/21/2011 07:48 AM, Helmut Jarausch wrote: |
2 |
> On 01/21/2011 04:26:09 PM, walt wrote: |
3 |
>> On 01/21/2011 12:13 AM, Helmut Jarausch wrote: |
4 |
>>> Hi, |
5 |
>>> |
6 |
>>> using Python3.1, if I say |
7 |
>>> import site |
8 |
>>> |
9 |
>>> I get |
10 |
>>> |
11 |
>>> File "/usr/lib64/python3.1/site.py", line 472, in setencoding |
12 |
>>> sys.setdefaultencoding(encoding) # Needs Python Unicode |
13 |
>> build ! |
14 |
>>> ValueError: Can only set default encoding to utf-8 |
15 |
>>> |
16 |
>>> But |
17 |
>>> |
18 |
>>> emerge -vp dev-lang/python-3.1.3 shows |
19 |
>>> USE="doc gdbm ipv6 ncurses readline sqlite ssl threads tk (wide- |
20 |
>>> unicode) xml -build -examples -wininst" |
21 |
>>> |
22 |
>>> Why is 'wide-unicode' in parentheses? |
23 |
>> |
24 |
>> Hm. Try using a different tool, like equery u python. Note the |
25 |
>> warning |
26 |
>> about changing that useflag. |
27 |
> |
28 |
> Thanks, unfortunately I don't understand the output |
29 |
> I've got |
30 |
> [ Legend : U - final flag setting for installation] |
31 |
> [ : I - package is installed with flag ] |
32 |
> [ Colors : set, unset ] |
33 |
> * Found these USE flags for dev-lang/python-3.1.3: |
34 |
> ..... |
35 |
> - + wide-unicode : Enable wide Unicode implementation which uses 4- |
36 |
> byte |
37 |
> Unicode characters. Switching of this USE flag |
38 |
> changes ABI |
39 |
> of Python and requires reinstallation of many |
40 |
> Python |
41 |
> modules. (DON'T DISABLE THIS UNLESS YOU KNOW WHAT |
42 |
> YOU'RE |
43 |
> DOING) |
44 |
> |
45 |
> So, I have U- but I+ on wide-unicode |
46 |
> What does that mean? |
47 |
|
48 |
I just re-emerged python:3.1 as a test, and I see exactly the same but |
49 |
I don't get that error. |
50 |
|
51 |
For some reason site.py certainly thinks your python3 is built without |
52 |
wide-unicode. Have you tried re-installing python3 just for fun? |
53 |
|
54 |
You could try deleting site.pyc and site.pyo as an easy test. |