Page 1 of 1

Throwing "unknown encoding" error after upgrading to bullseye

Posted: August 21st, 2022, 12:20 pm
by nicheplayer
Hi.

I upgraded my RPi3 running DietPi to bullseye yesterday and am now getting this error from sabnzbd:

Code: Select all

Traceback (most recent call last):
  File "/etc/sabnzbd/sabnzbd/dirscanner.py", line 223, in ProcessSingleFile
    nzo_info=nzo_info, url=url, reuse=reuse, dup_check=dup_check)
  File "/etc/sabnzbd/sabnzbd/nzbstuff.py", line 614, in __init__
    work_name = sanitize_foldername(work_name)
  File "/etc/sabnzbd/sabnzbd/misc.py", line 342, in sanitize_foldername
    uFL_ILLEGAL = FL_ILLEGAL.decode('cp1252')
LookupError: unknown encoding: cp1252
python3 --version returns Python 3.9.2

Thanks for any thoughts I might follow up on.

Re: Throwing "unknown encoding" error after upgrading to bullseye

Posted: August 21st, 2022, 1:26 pm
by safihre
This code is from an ancient verison of SABnzbd. What version are you running? Most likely an very old one.. So upgrade.

Re: Throwing "unknown encoding" error after upgrading to bullseye

Posted: August 21st, 2022, 3:31 pm
by nicheplayer
safihre wrote: August 21st, 2022, 1:26 pm This code is from an ancient verison of SABnzbd. What version are you running?
Ugh. You're right. I'm at 2.3.9 [03c10dc]. I'll try to track down the command I need within dietpi to get this upgraded. Thanks for your time, safihre.