Atomic Toolkit Sabnzbd+ Python3

Get help with all aspects of SABnzbd
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
stuzsabnab
Newbie
Newbie
Posts: 6
Joined: July 6th, 2021, 10:10 am

Atomic Toolkit Sabnzbd+ Python3

Post 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.)
User avatar
sander
Release Testers
Release Testers
Posts: 8830
Joined: January 22nd, 2008, 2:22 pm

Re: Atomic Toolkit Sabnzbd+ Python3

Post 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 <[email protected]>


$ head -2 /usr/bin/sabnzbdplus
#!/usr/bin/python3 -OO
# Copyright 2007-2021 The SABnzbd-Team <[email protected]>
stuzsabnab
Newbie
Newbie
Posts: 6
Joined: July 6th, 2021, 10:10 am

Re: Atomic Toolkit Sabnzbd+ Python3

Post 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.
User avatar
sander
Release Testers
Release Testers
Posts: 8830
Joined: January 22nd, 2008, 2:22 pm

Re: Atomic Toolkit Sabnzbd+ Python3

Post by sander »

So ... what is your concrete, specific question?
stuzsabnab
Newbie
Newbie
Posts: 6
Joined: July 6th, 2021, 10:10 am

Re: Atomic Toolkit Sabnzbd+ Python3

Post 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 :)
Post Reply