Page 1 of 1

Upgrading sabnzbdplus from apt-get to 3.7.2 source

Posted: April 11th, 2023, 10:20 am
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....

Re: Upgrading sabnzbdplus from apt-get to 3.7.2 source

Posted: April 11th, 2023, 11:15 am
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).

Re: Upgrading sabnzbdplus from apt-get to 3.7.2 source

Posted: April 11th, 2023, 7:50 pm
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!