eric ide

Issue303

Classification
Title: Windows install error when user path contains accent or metacharacters UTF-8 can't decode
Type: crash Product: eric6
Process
Priority: high    
Status: closed Resolution: fixed
Superseder: Nosy List: CesarTM, detlev
Assigned to: Keywords:

Created on 2019-09-04.20:13:34 by CesarTM, last changed by detlev.

Messages (2.0)
msg1132 (view) Author: detlev Date: 2019-09-05.16:58:24
This situation seems to be caused by the eric6config.py file having been written by 
a non-compatible Python version. The filesystem encoding on Windows was changed 
from 'mbcs' to 'utf-8' with Python 3.6. According to the given error, the paths 
contained in the file are encoded with 'mbcs'. This leads to the observed issue 
upon import.

In general it is not a good idea to install Python in a path containing such 
"strange" characters.

The next release of eric will be able to ignore such situation and carry on 
installing/updating.
msg1131 (view) Author: CesarTM Date: 2019-09-04.20:13:34
Hi, first of all thank you for the program!

I am trying to install in Windows 10, my user name is "César" with an 
accentuated character in the middle.

Installation in MS-console shows bad the metachar and so the install script 
complains:

Traceback (most recent call last):
  File "install.py", line 2089, in <module>
    main(sys.argv)
  File "install.py", line 2017, in main
    cleanUp()
  File "install.py", line 580, in cleanUp
    from eric6config import getConfig
  File "C:\Users\César\AppData\Local\Programs\Python\Python37-32\lib\site-
packages\eric6config.py", line 7
SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xe9 in position 
10: invalid continuation byte

C:\Users\César\Downloads\eric6-19.8>                                                
C:\Users\César\Downloads\eric6-19.8\eric\scripts


Thank you and pelase tell me if you need more information.
History
Date User Action Args
2019-09-05 16:58:24detlevsetstatus: new -> closed
resolution: fixed
messages: + msg1132
message_count: 1.0 -> 2.0
nosy: + detlev
2019-09-04 20:13:34CesarTMcreate