Page 1 of 1

SAByenc3 issues

Posted: July 17th, 2023, 2:10 pm
by Kymus
I can't download anything due to missing SAByenc3. I followed the directions to install this but during this process and I'm told that it's already installed. A check in the end to determine if it's installed says it's not.

Code: Select all

$ sudo pip install --upgrade pip
Requirement already satisfied: pip in /usr/local/lib/python3.11/site-packages (23.2)
$ pip install sabyenc3 --upgrade
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: sabyenc3 in /usr/local/lib/python3.11/site-packages (5.4.4)
$ python -c "import sabyenc3; print(sabyenc3.__version__, sabyenc3.__file__);"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'sabyenc3'
I've tried updating and rebooting my OS to no avail.

I'm running Nobara Linux 36 (Fedora based distro)

Re: SAByenc3 issues

Posted: July 17th, 2023, 3:39 pm
by sander
sabyenc3 is soooo old. Only for old SAB versions.

So maybe better to use current SAB ... which uses sabctools (see requirements.txt)

Re: SAByenc3 issues

Posted: July 17th, 2023, 5:10 pm
by Kymus
Thank you for the information.

I checked my version and it's currently on 3.7.2

I first downloaded the tarball and followed the installation instructions and it didn't successfully install. So, I followed the instructions on the website for Fedora. Things went fine until I ran

Code: Select all

yum install par2cmdline python-yenc python-cheetah unrar
at the end I was given the error

Code: Select all

Error: Unable to find a match: python-yenc
After googling around, I was finally able to install it. Another attempt to run the first command still results in the same error again.

I went back to the tarball again and ran

Code: Select all

$ par2 unrar unzip python3-setuptools python3-pip
this gives me the error

Code: Select all

Invalid operation specified: unrar
I don't know if it's the same thing or not but I did install unrar and I updated python to v3.9 but the same problems persist

Re: SAByenc3 issues

Posted: July 17th, 2023, 10:17 pm
by sander
Which tarball?
Which SAB-version are you trying to install
Why "updated python to v3.9" when in your first post you're running python3.11?
" par2 unrar unzip python3-setuptools python3-pip" is wrong ... the first command(s) is/are missing. So which instruction did you follow?

Re: SAByenc3 issues

Posted: July 19th, 2023, 6:06 am
by Kymus
sander wrote: July 17th, 2023, 10:17 pm Which tarball?
The one from the front page of the SABnzbd website (sabnzbd DOT org).
Which SAB-version are you trying to install
4.0.3
Why "updated python to v3.9" when in your first post you're running python3.11?
Because in my attempt to get around the errors I was having, I read that I should reinstall python. Plus I just saw in the intallation instructions in the tarball that Python 3.8 and higher is required
" par2 unrar unzip python3-setuptools python3-pip" is wrong ... the first command(s) is/are missing. So which instruction did you follow?
That's straight from the INSTALL.txt in the tarball I downloaded from the SABnzbd website:
INSTALL.txt wrote:On Linux systems you need to install:
par2 unrar unzip python3-setuptools python3-pip

Re: SAByenc3 issues

Posted: July 19th, 2023, 6:56 am
by sander
"Python 3.8 and higher is required". Correct. And you had python 3.11 ("three dot eleven"), which is higher than 3.8 so all good, and then you downgrade to 3.9 ... ?

"On Linux systems you need to install:
par2 unrar unzip python3-setuptools python3-pip"
Correct. And you need to consult your "Nobara Linux 36 (Fedora based distro)" manual how to install software. "par2" is not the command to install software. Maybe it's yum? I don't know.

BTW: is "Nobara Linux 36 (Fedora based distro)" still supported? Fedora 36 is EoL.

You're mixing up stuff. Including using different manuals for different versions of SABnzbd.

If you still have a working python3 version, there is hope. See my next post

Re: SAByenc3 issues

Posted: July 19th, 2023, 6:58 am
by sander
On a fresh, clean of Fedora 38, this is the method

Note: I don't know I how to install unrar (nonfree) and par2 on Fedora. If you have that already installed, no need to worry about that.

Code: Select all

cd
yum install  unzip python3-setuptools python3-pip wget
wget https://github.com/sabnzbd/sabnzbd/releases/download/4.0.3/SABnzbd-4.0.3-src.tar.gz
tar xvzf SABnzbd-4.0.3-src.tar.gz
cd SABnzbd-4.0.3
python3 -m pip install -r requirements.txt
./SABnzbd.py -l2 -b0
Done.

Re: SAByenc3 issues

Posted: July 19th, 2023, 9:55 am
by Kymus
sander wrote: July 19th, 2023, 6:56 am "Python 3.8 and higher is required". Correct. And you had python 3.11 ("three dot eleven"), which is higher than 3.8 so all good, and then you downgrade to 3.9 ... ?
me = derp, sorry. I somehow, with perfect vision and no reading disability read 3.11 as 3.1.1. I think I did 3.9 because I thought that was latest version (I saw it somewhere when I was trying - and clearly failing, badly - to fix this issue myself
Correct. And you need to consult your "Nobara Linux 36 (Fedora based distro)" manual how to install software. "par2" is not the command to install software. Maybe it's yum? I don't know.
ah okay, that's what I was missing. I didn't realize this was installing software; on closer inspection I see it now (derp on me). Yes, it's yum. Thank you!
BTW: is "Nobara Linux 36 (Fedora based distro)" still supported? Fedora 36 is EoL.
Yes, Nobara is a relatively new distro and AFAIK it's still supported (last changelog update was the 17th of July)
You're mixing up stuff. Including using different manuals for different versions of SABnzbd.
Sorry about that. I was frustrated when one method didn't work so I tried a different one hoping that it would because:

" Computers are like Old Testament gods; lots of rules and no mercy" - (Joseph Campbell)
If you still have a working python3 version, there is hope. See my next post
Everything seemed to work ok without a hitch (the terminal is still open if output is needed), but on the last step (./SABnzbd.py -l2 -b0) when I run SABnzbd, the old version (3.7.2) is what pops up in a new tab (despite following your instructions for 4.0.3). I'm assuming that the next step would be to uninstall the old version (if so, I could use some handholding on that, please) and then run through installation again?

Re: SAByenc3 issues

Posted: July 19th, 2023, 11:01 am
by sander
If you want me to help you, you must post verbosely what you do, and what you get.

Re: SAByenc3 issues

Posted: July 19th, 2023, 11:53 am
by Kymus
sander wrote: July 19th, 2023, 11:01 am If you want me to help you, you must post verbosely what you do, and what you get.
Sorry; I'll do so when possible from now on. Here's the output from the terminal: https://pastebin.com/jZtfek1b

My steps, simplified (copy and pasted from the terminal history)

Code: Select all

[kymus@HTPC ~]$ sudo yum install  unzip python3-setuptools python3-pip wget
[kymus@HTPC ~]$ wget https://github.com/sabnzbd/sabnzbd/releases/download/4.0.3/SABnzbd-4.0.3-src.tar.gz
[kymus@HTPC ~]$ tar xvzf SABnzbd-4.0.3-src.tar.gz
[kymus@HTPC ~]$ cd SABnzbd-4.0.3
[kymus@HTPC SABnzbd-4.0.3]$ python3 -m pip install -r requirements.txt
[kymus@HTPC SABnzbd-4.0.3]$ ./SABnzbd.py -l2 -b0

SABnzbd 4.0 on Fedora, was: Re: SAByenc3 issues

Posted: July 19th, 2023, 12:19 pm
by sander
Yes. But the interesting part is from & after " ./SABnzbd.py -l2 -b0"

Re: SABnzbd 4.0 on Fedora, was: Re: SAByenc3 issues

Posted: July 19th, 2023, 12:53 pm
by Kymus
sander wrote: July 19th, 2023, 12:19 pm Yes. But the interesting part is from & after " ./SABnzbd.py -l2 -b0"
After that, SABnzbd popped up in my browser (there was no terminal output after that except an empty prompt), I checked the version number, and it was v3.7.2.

Code: Select all

[kymus@HTPC SABnzbd-4.0.3]$ ./SABnzbd.py -l2 -b0
[kymus@HTPC SABnzbd-4.0.3]$ 
Am I misunderstanding you?

Re: SAByenc3 issues

Posted: July 19th, 2023, 12:57 pm
by sander
Ooohhhhhhhhhhhh ... there is no output?

OK: cause is that the old SABnzbd 3.7.2 is still running somewhere.
So: stop that SABnzbd 3.7.2, for example via the GUI: right upper corner Hamburger icon -> Shutdown SABnzbd. (or a hard kill, or a uninstall).
Then run the " ./SABnzbd.py -l2 -b0" command again, from the correct directory as demonstrated above

Re: SAByenc3 issues

Posted: July 19th, 2023, 1:15 pm
by Kymus
Short version:
Everything works now, thank you!

Long version:
A new tab popped up but it was blank (white). The terminal was giving me all kinds of information (lots of "Gtk-CRITICAL **" and wouldn't stop. I started to look at it and noticed in one line it named a nzb that was in my que previously, so then I thought "oh, is it running?". I refreshed the tab and everything was fine.

Thank you again for your help and I apologize once again for being so damned dense.

Re: SAByenc3 issues

Posted: July 19th, 2023, 1:23 pm
by sander
Cool. I'm happy it works now.