@@ -65,6 +65,16 @@ from searx.query import Query
6565from searx.autocomplete import searx_bang, backends as autocomplete_backends
6666from searx.plugins import plugins
6767
68+# check if the pyopenssl, ndg-httpsclient, pyasn1 packages are installed.
69+# They are needed for SSL connection without trouble, see #298
70+try:
71+ import OpenSSL.SSL # NOQA
72+ import ndg.httpsclient # NOQA
73+ import pyasn1 # NOQA
74+except ImportError:
75+ logger.critical("The pyopenssl, ndg-httpsclient, pyasn1 packages have to be installed.\n"
76+ "Some HTTPS connections will failed")
77+
6878
6979static_path, templates_path, themes =\
7080 get_themes(settings['themes_path']