[Tutor] import site failed (WinXP)

Kent Johnson kent37 at tds.net
Tue Jan 27 18:03:50 CET 2009


On Tue, Jan 27, 2009 at 11:43 AM, Alexei Vinidiktov
<alexei.vinidiktov at gmail.com> wrote:
> 2009/1/27 Kent Johnson <kent37 at tds.net>:
>> On Tue, Jan 27, 2009 at 11:24 AM, Alexei Vinidiktov
>> <alexei.vinidiktov at gmail.com> wrote:
>>> 2009/1/27 Kent Johnson <kent37 at tds.net>:
>>
>>>> My best guess is that somehow Python is finding the wrong
>>>> encodings\aliases.py.
>>>
>>> I can't find an aliases.py file within the encodings folder. Should it be there?
>>
>> Yes, you should have a file
>> C:\Python25\Lib\encodings\aliases.py
>>
>> and presumably if it is missing, it should be restored by re-installing.
>>
>
> That's the problem. Reinstalling Python or even installing a different
> version doesn't install ...\Lib\encodings\aliases.py

Very strange. What if you download it from here:
http://svn.python.org/view/python/branches/release25-maint/Lib/encodings/aliases.py?rev=51333&view=auto

and put it into C:\Python25\Lib\encodings\ ?

Kent


More information about the Tutor mailing list