Page 1 of 1
SABYenc module... NOT found! Expecting v3.3.1 [QNAP]
Posted: September 23rd, 2017, 10:19 pm
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.
Re: SABYenc module... NOT found! Expecting v3.3.1
Posted: September 23rd, 2017, 10:22 pm
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
Re: SABYenc module... NOT found! Expecting v3.3.1
Posted: September 24th, 2017, 4:06 am
by rumtum
Yes, that is all done. Still getting the message.
Re: SABYenc module... NOT found! Expecting v3.3.1
Posted: September 24th, 2017, 4:12 am
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?
Re: SABYenc module... NOT found! Expecting v3.3.1
Posted: September 24th, 2017, 9:58 am
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
Re: SABYenc module... NOT found! Expecting v3.3.1 [QNAP]
Posted: September 29th, 2017, 4:36 am
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.
Re: SABYenc module... NOT found! Expecting v3.3.1 [QNAP]
Posted: September 29th, 2017, 6:11 am
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.
Re: SABYenc module... NOT found! Expecting v3.3.1 [QNAP]
Posted: September 30th, 2017, 4:19 am
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!
Re: SABYenc module... NOT found! Expecting v3.3.1 [QNAP]
Posted: September 30th, 2017, 7:13 am
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.