AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
Expand all | Collapse all

Fatal Python error ( LANG=ja )

  • 1.  Fatal Python error ( LANG=ja )

    Posted Tue September 11, 2018 03:35 AM

    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



  • 2.  Re: Fatal Python error ( LANG=ja )

    Posted Thu September 20, 2018 03:49 PM

    Originally posted by: Fernando_Gomez


    Try running "locale -a", seems that the locale you're looking wasn't installed, if doesn't appear the probably you need to install the corresponding package as says:

     

    https://www.ibm.com/support/knowledgecenter/SSGSG7_7.1.1/com.ibm.itsm.srv.install.doc/r_nls_tables-aix.html