Issue2603

classification
Title: UnicodeEncodeError, When calling Jython.exe
Type: crash Severity: normal
Components: Core Versions: Jython 2.7
Milestone: Jython 2.7.1
process
Status: closed Resolution: invalid
Dependencies: Superseder:
Assigned To: Nosy List: AlexandreFrazao, stefan.richthofer
Priority: normal Keywords:

Created on 2017-07-03.18:01:27 by AlexandreFrazao, last changed 2017-07-04.13:29:11 by stefan.richthofer.

Messages
msg11459 (view) Author: Alexandre (AlexandreFrazao) Date: 2017-07-03.18:01:26
C:\jython2.7.0\bin>jython.exe
Exception in thread "main" Traceback (most recent call last):
  File "C:\jython2.7.0\Lib\site.py", line 585, in <module>
    main()
  File "C:\jython2.7.0\Lib\site.py", line 567, in main
    known_paths = addusersitepackages(known_paths)
  File "C:\jython2.7.0\Lib\site.py", line 300, in addusersitepackages
    user_site = getusersitepackages()
  File "C:\jython2.7.0\Lib\site.py", line 289, in getusersitepackages
    USER_SITE = get_path('purelib', '%s_user' % os.name)
  File "C:\jython2.7.0\Lib\sysconfig.py", line 416, in get_path
    return get_paths(scheme, vars, expand)[name]
  File "C:\jython2.7.0\Lib\sysconfig.py", line 407, in get_paths
    return _expand_vars(scheme, vars)
  File "C:\jython2.7.0\Lib\sysconfig.py", line 180, in _expand_vars
    res[key] = os.path.normpath(_subst_vars(value, vars))
  File "C:\jython2.7.0\Lib\sysconfig.py", line 154, in _subst_vars
    return s.format(**local_vars)
  File "C:\jython2.7.0\Lib\sysconfig.py", line 154, in _subst_vars
    return s.format(**local_vars)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe3' in position 22: ordinal not in range(128)
msg11460 (view) Author: Alexandre (AlexandreFrazao) Date: 2017-07-03.18:02:12
jython 2.7, on Windows 10 x64
msg11461 (view) Author: Stefan Richthofer (stefan.richthofer) Date: 2017-07-03.20:07:26
Alexandre, please try our recent release Jython 2.7.1.
http://fwierzbicki.blogspot.de/2017/07/jython-271-final-released.html
msg11462 (view) Author: Alexandre (AlexandreFrazao) Date: 2017-07-03.20:13:19
Perfect!I looked everywhere and I didn't find anyone else with the same problem.
It works now, Thank you.
msg11463 (view) Author: Stefan Richthofer (stefan.richthofer) Date: 2017-07-04.13:29:11
Good to hear!
History
Date User Action Args
2017-07-04 13:29:11stefan.richthofersetpriority: normal
status: open -> closed
resolution: invalid
messages: + msg11463
milestone: Jython 2.7.1
2017-07-03 20:13:19AlexandreFrazaosetmessages: + msg11462
2017-07-03 20:07:27stefan.richthofersetnosy: + stefan.richthofer
messages: + msg11461
2017-07-03 18:02:12AlexandreFrazaosetmessages: + msg11460
2017-07-03 18:01:27AlexandreFrazaocreate