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 » September 23rd, 2017, 10:19 pm

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
Jr. Member
Jr. Member
Posts: 62
Joined: March 4th, 2017, 3:47 pm

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

Post by OneCD » September 23rd, 2017, 10:22 pm

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 CouchPotato CRON Debian DNSMasq Entware-3x FireFox GitHub ImageMagick Kate KDE LibreELEC Netrunner NFS NVIDIA OpenVPN Orvibo S20 Python Raspberry Pi RAID SABnzbd+ SickRage Transmission Ubuntu Usenet VirtualBox WordPress 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 » September 24th, 2017, 4:06 am

Yes, that is all done. Still getting the message.

User avatar
OneCD
Jr. Member
Jr. Member
Posts: 62
Joined: March 4th, 2017, 3:47 pm

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

Post by OneCD » September 24th, 2017, 4:12 am

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 CouchPotato CRON Debian DNSMasq Entware-3x FireFox GitHub ImageMagick Kate KDE LibreELEC Netrunner NFS NVIDIA OpenVPN Orvibo S20 Python Raspberry Pi RAID SABnzbd+ SickRage Transmission Ubuntu Usenet VirtualBox WordPress XFCE

User avatar
sander
Release Testers
Release Testers
Posts: 6107
Joined: January 22nd, 2008, 2:22 pm

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

Post by sander » September 24th, 2017, 9:58 am

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: 2
Joined: September 28th, 2017, 9:38 am

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

Post by elmuziko » September 29th, 2017, 4:36 am

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: 1981
Joined: April 30th, 2015, 7:35 am
Location: Switzerland
Contact:

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

Post by safihre » September 29th, 2017, 6:11 am

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.

elmuziko
Newbie
Newbie
Posts: 2
Joined: September 28th, 2017, 9:38 am

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

Post by elmuziko » September 30th, 2017, 4:19 am

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: 6107
Joined: January 22nd, 2008, 2:22 pm

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

Post by sander » September 30th, 2017, 7:13 am

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