pyopenssl (python-ssl) not installed

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
Ritzie
Newbie
Newbie
Posts: 15
Joined: September 22nd, 2011, 10:25 am

pyopenssl (python-ssl) not installed

Post 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.
User avatar
jcfp
Release Testers
Release Testers
Posts: 1022
Joined: February 7th, 2008, 12:45 pm

Re: pyopenssl (python-ssl) not installed

Post by jcfp »

That package is actually called python-openssl. The log message with the erroneous package name will be corrected shortly (#424).
Ritzie
Newbie
Newbie
Posts: 15
Joined: September 22nd, 2011, 10:25 am

Re: pyopenssl (python-ssl) not installed

Post 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.
User avatar
sander
Release Testers
Release Testers
Posts: 9264
Joined: January 22nd, 2008, 2:22 pm

Re: pyopenssl (python-ssl) not installed

Post 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.
MrTPN
Newbie
Newbie
Posts: 4
Joined: January 12th, 2016, 11:12 am

Re: pyopenssl (python-ssl) not installed

Post 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
User avatar
jcfp
Release Testers
Release Testers
Posts: 1022
Joined: February 7th, 2008, 12:45 pm

Re: pyopenssl (python-ssl) not installed

Post 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.
Ritzie
Newbie
Newbie
Posts: 15
Joined: September 22nd, 2011, 10:25 am

Re: pyopenssl (python-ssl) not installed

Post 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
User avatar
sander
Release Testers
Release Testers
Posts: 9264
Joined: January 22nd, 2008, 2:22 pm

Re: pyopenssl (python-ssl) not installed

Post 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.
Ritzie
Newbie
Newbie
Posts: 15
Joined: September 22nd, 2011, 10:25 am

Re: pyopenssl (python-ssl) not installed

Post by Ritzie »

My installation is straight ubuntu server.
User avatar
sander
Release Testers
Release Testers
Posts: 9264
Joined: January 22nd, 2008, 2:22 pm

Re: pyopenssl (python-ssl) not installed

Post 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"?
MrTPN
Newbie
Newbie
Posts: 4
Joined: January 12th, 2016, 11:12 am

Re: pyopenssl (python-ssl) not installed

Post 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
Ritzie
Newbie
Newbie
Posts: 15
Joined: September 22nd, 2011, 10:25 am

Re: pyopenssl (python-ssl) not installed

Post 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.
User avatar
sander
Release Testers
Release Testers
Posts: 9264
Joined: January 22nd, 2008, 2:22 pm

Re: pyopenssl (python-ssl) not installed

Post 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.
Ritzie
Newbie
Newbie
Posts: 15
Joined: September 22nd, 2011, 10:25 am

Re: pyopenssl (python-ssl) not installed

Post by Ritzie »

I redid my box last night. Everything is working well. Thanks for the help sander!!
Walhalla
Newbie
Newbie
Posts: 1
Joined: February 10th, 2016, 7:46 am

Re: pyopenssl (python-ssl) not installed

Post 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
Post Reply