Originally posted by: Hit32
Fatal Python error occured on LANG=ja.
It can be executed normally om LANG=C.
----------------------------------------------
bash-4.2# python3
Fatal Python error: Py_Initialize: Unable to get the locale encoding
LookupError: unknown encoding: IBM-943
Current thread 0x0000000000000001 (most recent call first):
IOT/Abort trap (core dumped)
bash-4.2# locale
LANG=Ja_JP
LC_COLLATE="Ja_JP"
LC_CTYPE="Ja_JP"
LC_MONETARY="Ja_JP"
LC_NUMERIC="Ja_JP"
LC_TIME="Ja_JP"
LC_MESSAGES="Ja_JP"
LC_ALL=
bash-4.2#
bash-4.2# LANG=C
bash-4.2# python3
Python 3.6.6 (default, Jul 11 2018, 05:41:50)
[GCC 6.3.0] on aix6
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()
bash-4.2#
--------------------------------------------------------------------------------------------
I added PATH with reference to the following, but the situation does not change.
Thanks for any help.
Yu