Upgrading sabnzbdplus from apt-get to 3.7.2 source

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
JBHorne
Newbie
Newbie
Posts: 2
Joined: April 11th, 2023, 10:10 am

Upgrading sabnzbdplus from apt-get to 3.7.2 source

Post by JBHorne »

I was running sabnzdbplus on Debian that I got from apt-get successfully, but it was an old version (I believe 3.1 or something like that). I downloaded 3.7.2 source and extracted it to |usr|share|sabnzbdplus (after renaming the original sabnzbdplus to sabnzbdplus-old).


If I run "python3 SABnzbd[dot]py" it successfully runs and loads in my browser, BUT does not have any of my configuration. However, if I run "systemctl start sabnbzdplud" I get the following error:


File "|usr|bin|sabnzbdplus", line 58, in <module> from sabnzbd.misc import (
ImportError: cannot import name 'windows_variant' from 'sabnzbd.misc'

Any ideas here or best way to upgrade the apt-get package install? Thanks!

NOTE: I had to change slashes to pipes to avoid link detection....
User avatar
jcfp
Release Testers
Release Testers
Posts: 989
Joined: February 7th, 2008, 12:45 pm

Re: Upgrading sabnzbdplus from apt-get to 3.7.2 source

Post by jcfp »

There's a bunch of subtle but relevant patches applied to make the Debian package work, so you cannot just overwrite the installed files with those from a source release. See viewtopic.php?t=9844 for upgrade options (if you had installed 3.1.1 via apt-get before, you'd be on debian 11/buster and could use the official backports repository to get to 3.7.1).
JBHorne
Newbie
Newbie
Posts: 2
Joined: April 11th, 2023, 10:10 am

Re: Upgrading sabnzbdplus from apt-get to 3.7.2 source

Post by JBHorne »

That worked perfectly! I was hoping to get to 3.7.2, but I like this method as it's easy to keep "up to date" with apt. It just had a few python dependencies I had to manually update (from bullyseye-backport), but then upgraded my 3.1.1 flawlessly. Just had to start the service in the end.

Thanks a ton!
Post Reply