AIX Open Source

 View Only
  • 1.  Issues with aix server using yum in Japanese environments

    Posted Tue July 09, 2024 10:21 PM

    Run the yum list |grep httpd command on an aix machine to return LookupError: unknown encoding: IBM-943 information, if the current environment is Japanese, if  run the above yum command in English environment, it properly. Also, if  run playbook using ansible, same issue cannot identify IBM-943.

    Can someone help me with that? Thanks.



    ------------------------------
    De Quan Qu
    ------------------------------


  • 2.  RE: Issues with aix server using yum in Japanese environments

    Posted Wed July 10, 2024 06:12 AM

    Not all encodings are supported by python.

    Here is the list of supported encodings by python 3.7 (since you are using yum) --> https://docs.python.org/3.7/library/codecs.html#standard-encodings



    ------------------------------
    Ayappan P
    ------------------------------



  • 3.  RE: Issues with aix server using yum in Japanese environments

    Posted Thu July 11, 2024 01:22 AM
    Edited by De Quan Qu Thu July 11, 2024 01:24 AM

    So it's because python versions aren't compatible with character sets? Can upgrading to a later version solve this issue? But it works fine in English, and the python version on the server  is 2.7, not 3.7.



    ------------------------------
    De Quan Qu
    ------------------------------



  • 4.  RE: Issues with aix server using yum in Japanese environments

    Posted Thu July 11, 2024 06:32 AM

    I don't see IBM-943 supported in any python versions. This is for python 2.7 --> https://docs.python.org/2.7/library/codecs.html#standard-encodings 
    Yum uses python 2.7 only , not 3.7 as I mentioned in my previous thread. 



    ------------------------------
    Ayappan P
    ------------------------------



  • 5.  RE: Issues with aix server using yum in Japanese environments

    Posted Thu July 11, 2024 08:38 PM

    thanks for your reply.



    ------------------------------
    De Quan Qu
    ------------------------------