Page 1 of 1

Atomic Toolkit Sabnzbd+ Python3

Posted: July 6th, 2021, 10:21 am
by stuzsabnab
Hi All,

So I can see that sab now needs python3 and it is installed but somehow sabnzbd is picking python (2.y) unless I change the link of /usr/bin/python to point to python3.6.

I did install with the atomic toolkit which has worked well in teh past, I haven't wanted mylar for example, but now I do and I believe mylsr is 2.7.

I can see that the sab scripts have the hash-bang for python 3 but its still stating up as a python 2.7 script and failing.

Any ideas why sab does this. I'm probably missing a trick in pythong rather than sab, just don't know exactly what it is.

I'm running it on xubuntu, everything esle is as I think it need to be. Moving this to a vm rather than a little brix pc.

Any pointers gratly appreciated.

(don't really want to dockerise sab etc, CBA at the moment and I can't see any reason why this should not work like I think it should. I could probably install sab manually with better effect at this point - tht may even have been waht I did on the brix!! Was years back and don't remember.)

Re: Atomic Toolkit Sabnzbd+ Python3

Posted: July 6th, 2021, 10:45 am
by sander
Both the git/source and the PPA version of SABnzbd have python3 shebang, so that should work.

If not, the first question is: does /usr/bin/python3 exist on your Xubuntu

FWIW: I don't know what "the atomic toolkit" is. On Xubuntu, Ubuntu just install the SABnzbd from the standard repository, and then from jcfp's PPA

$ head -2 git/sabnzbd/SABnzbd.py
#!/usr/bin/python3 -OO
# Copyright 2007-2021 The SABnzbd-Team <team@sabnzbd.org>


$ head -2 /usr/bin/sabnzbdplus
#!/usr/bin/python3 -OO
# Copyright 2007-2021 The SABnzbd-Team <team@sabnzbd.org>

Re: Atomic Toolkit Sabnzbd+ Python3

Posted: July 7th, 2021, 8:57 am
by stuzsabnab
Thanks for coming back to me.

Yeah python3 does exist and is symlinked to 3.6.
and the shebang is also in place

I'd checked those before posting, perhaps I should have said more on what I'd actually tried myself :)

Atomic is a set of scripts from HTPC Beginner, cmd based installer to do pretty much everything needed for sabbinbg, other stuff for sickB, couchP etc too.

Re: Atomic Toolkit Sabnzbd+ Python3

Posted: July 7th, 2021, 9:06 am
by sander
So ... what is your concrete, specific question?

Re: Atomic Toolkit Sabnzbd+ Python3

Posted: July 7th, 2021, 9:39 am
by stuzsabnab
I found it. The installer had created the service file with python not python3.

TY for input, your confirmations prompted me to look at stuff I hadn't before :)