Python Language Settings - 2020.2 English

PetaLinux Tools Documentation Reference Guide (UG1144)

Document ID
UG1144
Release Date
2020-11-24
Version
2020.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 will not work.

    ERROR: Failed to build project

To resolve the above errors, set the following:

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