cdot65 / pan-os-upgrade

An efficient tool to execute configuration backups, network state snapshots, system readiness checks, and operating system upgrades of Palo Alto Networks firewalls and Panorama appliances.
https://cdot65.github.io/pan-os-upgrade/
Apache License 2.0
39 stars 9 forks source link

Locale Error: Unsupported Locale Setting in Ubuntu WSL2 Environment #27

Closed cdot65 closed 9 months ago

cdot65 commented 9 months ago

Summary: Encountering a locale-related error when running a Python script in Ubuntu WSL2. The error message indicates an unsupported locale setting.

Environment:

Steps to Reproduce:

  1. Run the Python script pan-os-upgrade in the Ubuntu WSL2 environment.
  2. The script fails with a locale error.

Expected Behavior: The script should run without any locale-related errors.

Actual Behavior: The script execution halts with the following error:

locale.Error: unsupported locale setting

Attempts to Resolve:

However, the issue persists.

Additional Context: This issue seems specific to the Ubuntu WSL2 environment. The script runs fine on native Linux and Windows systems. Attached is the detailed error log for reference.


Would appreciate any guidance or insights on resolving this locale issue. Thank you!

cdot65 commented 9 months ago

The inclusion of a Docker image provides us with some time to sort this out.