Error when trying to reinstall SABnzbd

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
sfishe
Posts: 8
Joined: Wed Jul 25, 2018 9:02 am

Error when trying to reinstall SABnzbd

Post by sfishe »

I was trying to update my current install of SABnzbd by using the dietpi-software reinstall command. I got the following error however:

Code: Select all

            - 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
User avatar
Joulinar
Posts: 2287
Joined: Sat Nov 16, 2019 12:49 am

Re: Error when trying to reinstall SABnzbd

Post by Joulinar »

Hi,

I guess you opened a GitHub issue as well. https://github.com/MichaIng/DietPi/issues/3738

pls let's stick to one platform. It doesn't make sense to open it twice
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply