Python Forum
Error with non-ASCII character?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error with non-ASCII character?
#1
Using 3.9.0 under Windows 10. I get an error with "pip install pyinstaller" as below (my username REDACTED in this excerpt):
----
C:\Users\REDACTED>pip install pyinstaller
Collecting pyinstaller
Downloading pyinstaller-4.0.tar.gz (3.5 MB)
|████████████████████████████████| 3.5 MB 2.2 MB/s
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\REDACTED\appdata\local\programs\python\python39\python.exe' 'c:\users\REDACTED\appdata\local\programs\python\python39\lib\site-packages\pip\_vendor\pep517\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\CIARND~1\AppData\Local\Temp\tmp6k9s7407'
cwd: C:\Users\REDACTED\AppData\Local\Temp\pip-install-67epkggr\pyinstaller
Complete output (38 lines):
Error in sitecustomize; set PYTHONVERBOSE for traceback:
SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xe1 in position 0: unexpected end of data (sitecustomize.py, line 7)
----
I suspect this is due to my username containing non-ASCII characters. The first such character in the username is "á", which in ANSI is 0xe1, and it looks like this is being treated as utf-8, where it would indeed be an error. (Elsewhere in this log, you see the username converted to Windows 8+3 form, but where I have redacted it, it appeared in full.)
Is there some setting to avoid this problem? Thanks.
Reply


Messages In This Thread
Error with non-ASCII character? - by giomach - Nov-07-2020, 05:45 PM
RE: Error with non-ASCII character? - by snippsat - Nov-07-2020, 05:58 PM
RE: Error with non-ASCII character? - by giomach - Nov-07-2020, 06:57 PM
RE: Error with non-ASCII character? - by snippsat - Nov-07-2020, 07:42 PM
RE: Error with non-ASCII character? - by giomach - Nov-07-2020, 11:00 PM
RE: Error with non-ASCII character? - by snippsat - Nov-08-2020, 01:11 AM
RE: Error with non-ASCII character? - by giomach - Nov-08-2020, 11:31 AM
RE: Error with non-ASCII character? - by snippsat - Nov-08-2020, 12:29 PM
RE: Error with non-ASCII character? - by giomach - Nov-08-2020, 07:18 PM
RE: Error with non-ASCII character? - by snippsat - Nov-08-2020, 08:03 PM
RE: Error with non-ASCII character? - by giomach - Nov-09-2020, 01:13 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Question UnicodeEncodeError: 'ascii' codec can't encode character u'\xe8' in position 562: ord ctrldan 23 4,817 Apr-24-2023, 03:40 PM
Last Post: ctrldan
  UnicodeEncodeError: 'ascii' codec can't encode character '\xfd' in position 14: ordin Armandito 6 2,728 Apr-29-2022, 12:36 PM
Last Post: Armandito
  [solved] unexpected character after line continuation character paul18fr 4 3,405 Jun-22-2021, 03:22 PM
Last Post: deanhystad
  python error: bad character range \|-t at position 12 faustineaiden 0 3,691 May-28-2021, 09:38 AM
Last Post: faustineaiden
  SyntaxError: unexpected character after line continuation character siteshkumar 2 3,181 Jul-13-2020, 07:05 PM
Last Post: snippsat
  how can i handle "expected a character " type error , when I input no character vivekagrey 2 2,741 Jan-05-2020, 11:50 AM
Last Post: vivekagrey
  Error when entering letter/character instead of number/integer helplessnoobb 2 7,076 Jun-22-2019, 07:15 AM
Last Post: ThomasL
  Replace changing string including uppercase character with lowercase character silfer 11 6,198 Mar-25-2019, 12:54 PM
Last Post: silfer
  SyntaxError: unexpected character after line continuation character Saka 2 18,556 Sep-26-2017, 09:34 AM
Last Post: Saka
  Character Definition Like ASCII llarix1 2 3,744 Jul-11-2017, 01:25 PM
Last Post: sparkz_alot

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020