Throwing "unknown encoding" error after upgrading to bullseye

Support for the Debian/Ubuntu package, created by JCFP.
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
nicheplayer
Newbie
Newbie
Posts: 10
Joined: March 14th, 2013, 9:19 pm

Throwing "unknown encoding" error after upgrading to bullseye

Post 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.
User avatar
safihre
Administrator
Administrator
Posts: 5338
Joined: April 30th, 2015, 7:35 am
Contact:

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

Post by safihre »

This code is from an ancient verison of SABnzbd. What version are you running? Most likely an very old one.. So upgrade.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
nicheplayer
Newbie
Newbie
Posts: 10
Joined: March 14th, 2013, 9:19 pm

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

Post 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.
Post Reply