Page 1 of 1
Syntax errors starting 4 5 3 [Slackware]
Posted: September 16th, 2025, 11:06 am
by KGHN
We are trying to run SABnzbd 4 . 5 . 3 on a Slackware 15 . 0 (64) .
On the SlackBuilds site, the latest version of sabnzbd is 2 . 3 . 9 . That installs and runs, but complains that it can't find sabyenc .
(After sabnzbd 4 . 0, sabyenc has been replaced by sabctools . )
We have sabctools version python3-sabctools-5 . 4 . 4-x86_64-1_SBo .
We also have python2-yenc-0 . 3 and python3-3 . 9 . 23-x86_64-1_slack15 . 0 .
We also see sabnzbd-4 . 5 . 3-x86_64-1_SBo .
We modified the sabnzbd . SlackBuild for sabnzbd 2 . 3 . 9 and installed 4 . 5 . 3, successfully .
When we try to start sabnzbd 4 . 5 . 3, we get:
bash-5 . 1$ sabnzbd
File "/opt/sabnzbd/SABnzbd . py", line 22
if Python_38_is_required_to_run_SABnzbd := sys . hexversion < 0x03080000:
^
SyntaxError: invalid syntax
We commented out the lines giving the error . Now, on launch we get a new error:
bash-5 . 1$ sabnzbd
File "/opt/sabnzbd/SABnzbd . py", line 144
self . _size: int = size
^
SyntaxError: invalid syntax
Any help would be appreciated .
Re: Syntax errors starting 4 5 3
Posted: September 16th, 2025, 12:26 pm
by sander
What is the output of:
and
About your logging:
Code: Select all
bash-5 . 1$ sabnzbd
File "/opt/sabnzbd/SABnzbd . py", line 22
if Python_38_is_required_to_run_SABnzbd := sys . hexversion < 0x03080000:
^
SyntaxError: invalid syntax
SABnzbd checks the python3 version is 3.8 or higher, that fails (also thanks to the walrus operator), so it can't run. And you remove that check, and you're suprised about following errors ... ?
Re: Syntax errors starting 4 5 3
Posted: September 16th, 2025, 3:06 pm
by KGHN
bash-5.1$ /usr/bin/python3 --version
Python 3 . 9 . 23
bash-5.1$ cat /etc/slackware-version
Slackware 15 . 0
Re: Syntax errors starting 4 5 3 [Slackware]
Posted: September 16th, 2025, 3:32 pm
by sander
Python3.9 ... should be enough for SAB, but ... I tried slackware 15.0, and the python3 is python3.12. So not uptodate on your slackware. Bad sign.
You're starting 'sabnzbd' which is not part of the sabnzbd source code. So it's something else (something old?).
And even if you get that in order ... installing SABnzbd from source on a random Linux needs knowledge of python3, pip and venv. I doubt you have that knowledge?
Easier on Ubuntu.
And if you must (why?) use Slackware, maybe Docker is a solution: everything you need in the Docker lsio sabnzbd image. But also a learning curve for docker itself.
Code: Select all
bash-5.3# cat /etc/slackware-version
Slackware 15.0+
bash-5.3# /usr/bin/python3 --version
Python 3.12.11
Re: Syntax errors starting 4 5 3 [Slackware]
Posted: September 16th, 2025, 4:17 pm
by KGHN
Sorry, what do you mean "So not uptodate on your slackware. Bad sign."?
Do you not believe we have Python 3 . 9 . 23?
It was a patch issued on 2025-06-04
As for why we like Slackware. it is the most Unix like Linux. Also, it does not us that train wreck called SystemD. I tried Ubuntu once and hated it.
Any knowledge I do not have I can acquire. You seem be calling me stupid. That is not helpful.
Slackbuilds has Docker 28 . 3 . 1 . Would that be sufficient?
Re: Syntax errors starting 4 5 3 [Slackware]
Posted: September 17th, 2025, 2:17 pm
by KGHN
Sander
I said I was running slackware 15 . 0, Python3-3 . 12 . 11 is part of slackware-cdurrent.
I do not use that because it is not considered stable . I am running a fully patched 15 . 0 .
So, yes, I am up to date.
Re: Syntax errors starting 4 5 3 [Slackware]
Posted: September 17th, 2025, 3:59 pm
by Puzzled
What does the sabnzbd script you are starting contain?
Re: Syntax errors starting 4 5 3 [Slackware]
Posted: September 17th, 2025, 9:11 pm
by KGHN
[note spaces around periods to not annoy the no links rule]
Hi Puzzled,
It's just the sabnzbd . py that's in the source code. When we were last using sabnzbd years ago, we started it with the simple command "sabnzbd". Apparently python2 is still the default in Slackware 15 . 0, and that is why we were seeing syntax errors.
So, we needed to start the script with:
python3 /opt/sabnzbd/SABnzbd . py
SABnzbd did not launch, not finding sabctools.
Then, as user, in /opt/sabnzbd/tests:
pip3 install -r requirements . txt
SABnzbd still did not find sabctools. We tried again as root, which also did not work, and gave us a warning AFTERWARDS that running it as root can cause problems.
So, in ~/Src/sabnzbd, as user:
pip3 install sabctools==8 . 2 . 6
After that, we had to install a few more dependencies, (from Slackbuilds, using slpkg), cheetah3, feedparser, python3-CherryPy, python3-jaraco . context, python3-puremagic, (and their dependencies).
The apprise package we got was too old, so we had to install with pip:
pip3 install apprise==1 . 9 . 4
Now SABnzbd launches successfully. Now to configure and test. We may have more questions.
Any comments you may have would be welcome.
Thank you for your interest.
Re: Syntax errors starting 4 5 3 [Slackware]
Posted: September 19th, 2025, 11:55 am
by safihre
You installed the wrong requirements file. That's why you are having problems. The requirements you used are for our releases tests, not the application. It will install lots of unnecessary things that are not needed to just run the application.
You should have run:
Then, as user, in /opt/sabnzbd/
pip3 install -r requirements . txt
Re: Syntax errors starting 4 5 3 [Slackware]
Posted: September 19th, 2025, 3:30 pm
by KGHN
I do not know why, but there is no requirements . txt in our /opt/sabnzbd/.
But we are not having problems now, As I said in my last post:
"Now SABnzbd launches successfully."
We now have it configured and downloading sucessfully.
I do not think your support is very good, but we may donate anyway, as I appreciate the efforts of the programmers.
Thank you for your interest.
Re: Syntax errors starting 4 5 3 [Slackware]
Posted: September 20th, 2025, 2:48 pm
by safihre
Are you packaging the software or is it just for your own setup?
Because using the tests requirements file is just wrong.
You seem to be doing things in strange ways, so giving support is very hard in this way. It seems you do things without knowing what they mean.