Trouble With CATS Fixing in Linux

Whenever I try to run the CATS plugin’s Fix Model button it fails to fix the armatures and produces this error. I am trying to fix PMX models exported from Koikatsu. I am running Arch linux 5.7.9. I have been able to make the script work when running it on Windows 10 with the applocale set to Japanese, but I have had no such luck on Linux even with the applocale set to Japanese.