Page 1 of 1

pyopenssl (python-ssl) not installed

Posted: January 11th, 2016, 9:52 pm
by Ritzie
I'm having a problem with my sabnzbd. Right now I have SABnzbd Version 0.8.0Beta4 installed on ubuntu 14 and it was working good up until today. I noticed some shows were sent to my sabserver but weren't downloading. I've checked the server settings and it showed ssl greyed out. I reinstalled twice also purged sab. I've tried sudo apt-get install python-pyopenssl but get the following error Unable to locate package python-pyopenssl.

Re: pyopenssl (python-ssl) not installed

Posted: January 12th, 2016, 5:49 am
by jcfp
That package is actually called python-openssl. The log message with the erroneous package name will be corrected shortly (#424).

Re: pyopenssl (python-ssl) not installed

Posted: January 12th, 2016, 6:10 am
by Ritzie
jcfp wrote:That package is actually called python-openssl. The log message with the erroneous package name will be corrected shortly (#424).
I've tried that also and it shows I'm up to date. Reading package lists... Done
Building dependency tree
Reading state information... Done
python-openssl is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Re: pyopenssl (python-ssl) not installed

Posted: January 12th, 2016, 10:49 am
by sander
Just to double check:

Start python, and type

Code: Select all

from OpenSSL import SSL
What is the result? Can you post the full output here.

Here's mine on my Ubuntu 14.04.3:

Code: Select all

$ python
Python 2.7.6 (default, Jun 22 2015, 18:00:18)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from OpenSSL import SSL
>>>
So ... no problems.

Re: pyopenssl (python-ssl) not installed

Posted: January 12th, 2016, 1:01 pm
by MrTPN
Just weighing in on this one, same symptoms as above thanks to Sanders for directing me here from my thread (thanks) :)

The output of the above is:

Code: Select all

mediaservice@MediaManager:~$ python
Python 2.7.6 (default, Jun 22 2015, 17:58:13) 
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from OpenSSL import SSL
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/OpenSSL/__init__.py", line 8, in <module>
    from OpenSSL import rand, crypto, SSL
  File "/usr/local/lib/python2.7/dist-packages/OpenSSL/rand.py", line 11, in <module>
    from OpenSSL._util import (
  File "/usr/local/lib/python2.7/dist-packages/OpenSSL/_util.py", line 6, in <module>
    from cryptography.hazmat.bindings.openssl.binding import Binding
ImportError: No module named cryptography.hazmat.bindings.openssl.binding

Re: pyopenssl (python-ssl) not installed

Posted: January 12th, 2016, 2:13 pm
by jcfp
MrTPN wrote: File "/usr/local/lib/python2.7/dist-packages/OpenSSL/_util.py", line 6, in <module>
The install path indicates some kind of DIY install of the python openssl bindings. Pip?

I cannot reproduce this issue with beta4 on 14.04 and the standard python-openssl package.

Re: pyopenssl (python-ssl) not installed

Posted: January 12th, 2016, 4:43 pm
by Ritzie
Sorry for the delay. I cannot connect to my sabserver from work. Here is the output
python 2.7.6 (default, Jun 22 2015, 17:58:13)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from OpenSSL import SSL
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/OpenSSL/__init__.py", line 8, in <module>
from OpenSSL import rand, crypto, SSL
File "/usr/local/lib/python2.7/dist-packages/OpenSSL/rand.py", line 11, in <module>
from OpenSSL._util import (
File "/usr/local/lib/python2.7/dist-packages/OpenSSL/_util.py", line 6, in <module>
from cryptography.hazmat.bindings.openssl.binding import Binding
ImportError: No module named cryptography.hazmat.bindings.openssl.binding

Re: pyopenssl (python-ssl) not installed

Posted: January 12th, 2016, 4:56 pm
by sander
Same same. Are you two running plain Ubuntu, or some system-based-on-Ubuntu? MrTPN's "mediaservice@MediaManager" seems to confirm that ... some mediasystem-based-on-Ubuntu ... ?

And I agree (of course) with jcfp: When I google "ImportError: No module named cryptography.hazmat.bindings.openssl.binding", the first hits all have "pip" (pyton installation) in them, which is outside the control of the Ubuntu/Debian package system. And certainly outside the control of SABnzbd.

Re: pyopenssl (python-ssl) not installed

Posted: January 12th, 2016, 5:14 pm
by Ritzie
My installation is straight ubuntu server.

Re: pyopenssl (python-ssl) not installed

Posted: January 12th, 2016, 5:31 pm
by sander
Ritzie wrote:My installation is straight ubuntu server.
And did you use pip to install packages? Or did you only use "sudo apt-get install sabnzbdplus"?

Re: pyopenssl (python-ssl) not installed

Posted: January 12th, 2016, 6:11 pm
by MrTPN
Running Plain old Ubuntu here. MediaService is the username, and MediaManager is the hostname of the box :)

Originally i installed with just "sudo apt-get install sabnzbdplus" but after applying a few updates (sudo apt-get upgrade) the other night it seems to have broken something. I am just thinking how best to go about removing the SSL package and going back to the stock Ubuntu installation of it.

This might be outside the remit of Sabnzbd, so understand that support might be limited! However, would we both be best removing this via pip and then re-installing? or should we cut our losses and do a fresh install?

MrTPN

Re: pyopenssl (python-ssl) not installed

Posted: January 12th, 2016, 7:16 pm
by Ritzie
sander wrote:
Ritzie wrote:My installation is straight ubuntu server.
And did you use pip to install packages? Or did you only use "sudo apt-get install sabnzbdplus"?
Yes sir. I always install by sudo apt-get install sabnzbdplus. When I saw that I was having issues then I tried installing python and believe I tried pip after all the other stuff I tried didn't work. Then I purged everything and started again but still didn't work.

Re: pyopenssl (python-ssl) not installed

Posted: January 13th, 2016, 4:45 pm
by sander
MrTPN wrote:or should we cut our losses and do a fresh install?
I would do a fresh install of Ubuntu. And do not touch pip; let apt-get take care of software installations.

Re: pyopenssl (python-ssl) not installed

Posted: January 14th, 2016, 9:23 am
by Ritzie
I redid my box last night. Everything is working well. Thanks for the help sander!!

Re: pyopenssl (python-ssl) not installed

Posted: February 10th, 2016, 7:49 am
by Walhalla
In my case it worked again after purging and reinstalling pyOpenSSL.

Code: Select all

pip uninstall pyOpenSSL
apt-get install --reinstall python-openssl