Python Language Settings - 2023.2 English

PetaLinux Tools Documentation: Reference Guide (UG1144)

Document ID
UG1144
Release Date
2023-10-18
Version
2023.2 English

The following errors appear when the language settings are missing:

  • Could not find the /log/cooker/plnx_microblaze in the /tmp directory during petalinux-config
  • Please use a locale setting which supports UTF-8 (such as LANG=en_US.UTF-8).

    Python cannot change the file system locale after loading. Therefore, you need a UTF-8 when Python starts, else it does not work.

    ERROR: Failed to build project

To resolve the previous errors, set the following:

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8