Python Language Settings - 2024.1 English

PetaLinux Tools Documentation: Reference Guide (UG1144)

Document ID
UG1144
Release Date
2024-06-21
Version
2024.1 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