SABYenc module... NOT found! Expecting v3.3.1 [QNAP]

Feel free to talk about anything and everything in this board.
Post Reply
rumtum
Newbie
Newbie
Posts: 2
Joined: May 24th, 2016, 8:03 am

SABYenc module... NOT found! Expecting v3.3.1 [QNAP]

Post by rumtum »

Before I'm told to install it, when I issue the command

python -c "import sabyenc ; print sabyenc.__version__ "

the response is

3.3.1

What set up might I be missing?

On QNAP Linux BTW.
User avatar
OneCD
Hero Member
Hero Member
Posts: 596
Joined: March 4th, 2017, 3:47 pm

Re: SABYenc module... NOT found! Expecting v3.3.1

Post by OneCD »

Don't forget to upgrade your sabyenc package and to restart SAB:

Code: Select all

pip install sabyenc --upgrade && /etc/init.d/sabnzbd.sh restart
Stuff I like: Apache bash cron DD-WRT Debian DNSMasq Entware FireFox GitHub ImageMagick Kate KDE LibreELEC Netrunner NFS NVIDIA OpenVPN Orvibo-S20 pfSense Python Raspberry-Pi RAID SABnzbd Transmission Usenet VirtualBox Watcher3 XFCE
rumtum
Newbie
Newbie
Posts: 2
Joined: May 24th, 2016, 8:03 am

Re: SABYenc module... NOT found! Expecting v3.3.1

Post by rumtum »

Yes, that is all done. Still getting the message.
User avatar
OneCD
Hero Member
Hero Member
Posts: 596
Joined: March 4th, 2017, 3:47 pm

Re: SABYenc module... NOT found! Expecting v3.3.1

Post by OneCD »

Can you please post the section of the SAB log that is written just after it has started? SAB performs several checks for the different utilities required and records the results there.

BTW: was this install performed using Sherpa?
Stuff I like: Apache bash cron DD-WRT Debian DNSMasq Entware FireFox GitHub ImageMagick Kate KDE LibreELEC Netrunner NFS NVIDIA OpenVPN Orvibo-S20 pfSense Python Raspberry-Pi RAID SABnzbd Transmission Usenet VirtualBox Watcher3 XFCE
User avatar
sander
Release Testers
Release Testers
Posts: 9062
Joined: January 22nd, 2008, 2:22 pm

Re: SABYenc module... NOT found! Expecting v3.3.1

Post by sander »

A suspect is: different installations of python itself. If so, your default python / pip installation has SAByenc installed, but the python used by SABnzbd hasn't.

Hints to find out:

Code: Select all

$ python -c "import sys; print sys.executable; import sabyenc ; print sabyenc.__version__ "
/usr/bin/python
3.3.1
and

Code: Select all

$ ps -ef | grep -i sabnzbd
sander     903   887  7 17:10 pts/2    00:00:06 /usr/bin/python -OO /usr/bin/sabnzbdplus
sander     995  5645  0 17:11 pts/1    00:00:00 grep --color=auto -i sabnzbd
elmuziko
Newbie
Newbie
Posts: 4
Joined: September 28th, 2017, 9:38 am

Re: SABYenc module... NOT found! Expecting v3.3.1 [QNAP]

Post by elmuziko »

Hi Rumtum,

Did you manage to get this problem resolved?

I have OMV and get exactly the same problem; i have two versions of python installed but no matter which pip install I use, I get an error message along with it.
User avatar
safihre
Administrator
Administrator
Posts: 5521
Joined: April 30th, 2015, 7:35 am
Contact:

Re: SABYenc module... NOT found! Expecting v3.3.1 [QNAP]

Post by safihre »

See the issue here to: https://github.com/sabnzbd/sabnzbd/issues/1039 (latest messages)
You will have to remove all sabyenc.so files and make sure you call the right python to install it again.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
elmuziko
Newbie
Newbie
Posts: 4
Joined: September 28th, 2017, 9:38 am

Re: SABYenc module... NOT found! Expecting v3.3.1 [QNAP]

Post by elmuziko »

Morning Safihre,

Sadly that didn't work for me, I had no sabyenc so files.

Managed to get it working by starting OpenMediaVault again and running:

sudo python get-pip py
pip install cheetah
pip install cryptography
pip install sabyenc

Then I threw Sabnzbd on via OMV extras and everything just worked. Hazzah!
User avatar
sander
Release Testers
Release Testers
Posts: 9062
Joined: January 22nd, 2008, 2:22 pm

Re: SABYenc module... NOT found! Expecting v3.3.1 [QNAP]

Post by sander »

Good that it works.

Regarding this subject (more than one python installation on a system), this might be relevant for installing sabyenc via pip into the correct python installation:

Code: Select all

/path/to/python2.{5,6} /path/to/pip install PackageName
or more general:

Code: Select all

/path/to/python /path/to/pip install PackageName
... with "/path/to/python" the python that is used by SABnzbd (check the log)

I have a system with two python2 versions, and specifying the python-path indeed worked:

The default python:

Code: Select all

sudo /usr/bin/python /usr/local/bin/pip install sabyenc
/usr/bin/python -c "import sabyenc ; print sabyenc.__version__ "
The python 2.7.11 did not yet have pip itself, so:

Code: Select all

wget https://bootstrap.pypa.io/get-pip.py
sudo /usr/bin/python2711  get-pip.py
sudo /usr/bin/python2711 /usr/local/bin/pip install sabyenc
/usr/bin/python2711 -c "import sabyenc ; print sabyenc.__version__ " 
... and that worked too! :)

So: before you install sabyenc, find out which exact python is used (full path), and use that to install sabyenc.

I'll put this in the wiki documentation.
Post Reply