I was trying to update my current install of SABnzbd by using the dietpi-software reinstall command. I got the following error however:
- Command: python2.7 tools/make_mo.py │
│ - Exit code: 1 │
│ - DietPi version: v6.31.2 (MichaIng/master) | HW_MODEL: 11 | HW_ARCH: 2 | DISTRO: 5 │
│ - Image creator: DietPi Core Team │
│ - Pre-image: Meveric │
│ - Error log: │
│ Email MO files │
│ Compile locale/he/LC_MESSAGES/SABemail.mo │
│ Compile locale/pl/LC_MESSAGES/SABemail.mo │
│ Compile locale/de/LC_MESSAGES/SABemail.mo │
│ Compile locale/fi/LC_MESSAGES/SABemail.mo │
│ Compile locale/nl/LC_MESSAGES/SABemail.mo │
│ Compile locale/da/LC_MESSAGES/SABemail.mo │
│ Compile locale/ro/LC_MESSAGES/SABemail.mo │
│ Compile locale/sv/LC_MESSAGES/SABemail.mo │
│ Compile locale/zh_CN/LC_MESSAGES/SABemail.mo │
│ Compile locale/ru/LC_MESSAGES/SABemail.mo │
│ Compile locale/es/LC_MESSAGES/SABemail.mo │
│ Compile locale/en/LC_MESSAGES/SABemail.mo │
│ Compile locale/sr/LC_MESSAGES/SABemail.mo │
│ Compile locale/fr/LC_MESSAGES/SABemail.mo │
│ Compile locale/nb/LC_MESSAGES/SABemail.mo │
│ Compile locale/pt_BR/LC_MESSAGES/SABemail.mo │
│ Create email templates from MO files │
│ Create email template for fr │
│ Traceback (most recent call last): │
│ File "tools/make_mo.py", line 295, in <module> │
│ make_templates() │
│ File "tools/make_mo.py", line 217, in make_templates │
│ translate_tmpl("email", lng) │
│ File "tools/make_mo.py", line 193, in translate_tmpl │
│ with open(EMAIL_DIR + "/%s-en.tmpl" % prefix, "r", encoding="utf-8") as src: │
│ TypeError: 'encoding' is an invalid keyword argument for this function
Any ideas to fix this? I’m guessing something to do with python 2.7 incompatibility