Import of PyOpenSSL or pyasn1 failed, despite them being isntalled
Versions
- OS: Ubuntu 16.04.3 LTS
- Gajim version: 0.16.9
- GTK version: 2.24.30
- Python-nbxmpp version: 20171212-1
Steps to reproduce the problem
- Install nightly
- Try connecting to server
Expected behavior
- Connect securely.
Actual behavior
abilinski@:~$ pip install pyopenssl
Requirement already satisfied: pyopenssl in /usr/lib/python2.7/dist-packages
abilinski@:~$ pip install pyasn1
Requirement already satisfied: pyasn1 in ./.local/lib/python2.7/site-packages
abilinski@:~$ gajim
===============================================================================
PyOpenSSL not found, falling back to Python builtin SSL objects (insecure).
===============================================================================
2017-12-20 12:24:53 (E) gajim.c.check_X509 Import of PyOpenSSL or pyasn1 failed.Cannot correctly check SSL certificate
Traceback (most recent call last):
File "/usr/share/gajim/src/common/check_X509.py", line 5, in <module>
import OpenSSL.SSL
File "/home/abilinski/.local/lib/python2.7/site-packages/OpenSSL/__init__.py", line 8, in <module>
File "/home/abilinski/.local/lib/python2.7/site-packages/OpenSSL/rand.py", line 12, in <module>
File "/home/abilinski/.local/lib/python2.7/site-packages/OpenSSL/_util.py", line 6, in <module>
File "/home/abilinski/.local/lib/python2.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 14, in <module>
ImportError: No module named _openssl
Then when connecting to server, I get a popup with the following:
You are about to send your password on an insecure connection. You should install PyOpenSSL to prevent that. Are you sure you want to do that?