Ahh .. sorry let me be clearer, I was testing 1.0.0RC2 but the problems are the same, I will revert to sabnzbdplus from apt 0.7.20-1
App stared from init.d ... but python code below from user shell.
Code: Select all
systemctl start sabnzbdplus (calling init.d script)
/usr/bin/python -OO /usr/bin/sabnzbdplus --daemon --pidfile /var/run/sabnzbdplus/pid --config-file /home/xxxxx/.sabnzbd/sabnzbd.ini --server 0.0.0.0:8085
LOG:
2016-03-06 10:13:00,617::INFO::[__init__:335] All processes started
2016-03-06 10:13:00,618::INFO::[sabnzbdplus:336] Web dir is /usr/share/sabnzbdplus/interfaces/Plush
2016-03-06 10:13:00,618::INFO::[sabnzbdplus:336] Web dir is /usr/share/sabnzbdplus/interfaces/Config
2016-03-06 10:13:00,641::INFO::[sabnzbdplus:452] _yenc module... found!
2016-03-06 10:13:00,641::INFO::[sabnzbdplus:460] par2 binary... found (/usr/bin/par2)
2016-03-06 10:13:00,642::INFO::[sabnzbdplus:468] unrar binary... found (/usr/bin/unrar)
2016-03-06 10:13:00,642::INFO::[sabnzbdplus:473] unzip binary... found (/usr/bin/unzip)
2016-03-06 10:13:00,642::INFO::[sabnzbdplus:479] nice binary... found (/usr/bin/nice)
2016-03-06 10:13:00,642::INFO::[sabnzbdplus:483] ionice binary... found (/usr/bin/ionice)
2016-03-06 10:13:00,642::INFO::[sabnzbdplus:490] pyOpenSSL... NOT found - try apt-get install python-pyopenssl (SSL is optional)
2016-03-06 10:13:00,644::INFO::[sabnzbdplus:1516] Starting web-interface on 0.0.0.0:8085
Python 2.7.9 (default, Apr 2 2015, 15:33:21)
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> print (sys.path)
['', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PILcompat', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/python2.7/dist-packages/ubuntu-sso-client']
>>> import OpenSSL
>>> OpenSSL.__file__
'/usr/lib/python2.7/dist-packages/OpenSSL/__init__.pyc'
python -v
>>>
>>>
>>> import OpenSSL
import OpenSSL # directory /usr/lib/python2.7/dist-packages/OpenSSL
# /usr/lib/python2.7/dist-packages/OpenSSL/__init__.pyc matches /usr/lib/python2.7/dist-packages/OpenSSL/__init__.py
import OpenSSL # precompiled from /usr/lib/python2.7/dist-packages/OpenSSL/__init__.pyc
# /usr/lib/python2.7/plat-x86_64-linux-gnu/DLFCN.pyc matches /usr/lib/python2.7/plat-x86_64-linux-gnu/DLFCN.py
import DLFCN # precompiled from /usr/lib/python2.7/plat-x86_64-linux-gnu/DLFCN.pyc
dlopen("/usr/lib/python2.7/dist-packages/OpenSSL/crypto.x86_64-linux-gnu.so", 102);
import OpenSSL.crypto # dynamically loaded from /usr/lib/python2.7/dist-packages/OpenSSL/crypto.x86_64-linux-gnu.so
dlopen("/usr/lib/python2.7/dist-packages/OpenSSL/rand.x86_64-linux-gnu.so", 2);
import OpenSSL.rand # dynamically loaded from /usr/lib/python2.7/dist-packages/OpenSSL/rand.x86_64-linux-gnu.so
dlopen("/usr/lib/python2.7/dist-packages/OpenSSL/SSL.x86_64-linux-gnu.so", 2);
import OpenSSL.SSL # dynamically loaded from /usr/lib/python2.7/dist-packages/OpenSSL/SSL.x86_64-linux-gnu.so
# /usr/lib/python2.7/dist-packages/OpenSSL/version.pyc matches /usr/lib/python2.7/dist-packages/OpenSSL/version.py
import OpenSSL.version # precompiled from /usr/lib/python2.7/dist-packages/OpenSSL/version.pyc
And I can certainly handle some code changes, please let me know if you would prefer I stay with 0.7...
and a big thanks for the help.