[issue42293] Installation of pyinstaller in Windows fails with utf8 error

giomach report at bugs.python.org
Sun Nov 8 18:29:57 EST 2020


New submission from giomach <giomach at users.sourceforge.net>:

Python 3.9 freshly installed in Windows 10 to C:\Program Files\Python39, everything done as administrator, installed for all users, added to PATH.

Installation of pyinstaller fails with message "SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xe1 in position 0: unexpected end of data (sitecustomize.py, line 21)" (attachment)

This may be due to the character á in my Windows username (0xe1 in ANSI, which is my default 8-bit codepage) being misinterpreted as being in utf8 instead of ANSI.

There is no sitecustomize.py in my file system.

----------
components: Installation
files: pyinstaller.txt
messages: 380564
nosy: giomach
priority: normal
severity: normal
status: open
title: Installation of pyinstaller in Windows fails with utf8 error
type: crash
versions: Python 3.9
Added file: https://bugs.python.org/file49582/pyinstaller.txt

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42293>
_______________________________________


More information about the Python-bugs-list mailing list