-
Notifications
You must be signed in to change notification settings - Fork 762
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: 'module' object has no attribute 'SSL_ST_INIT' #704
Comments
I ran into this yesterday, updating pyOpenSSL seemed to be the solution. |
@bobbypratama , I noticed that you were installing version 3.2.4.6. Does the same happen with the 3.3.0.0? |
@mbushkov 3.3.0.0 pulled from the amd64.deb release on GitHub, OS running Ubuntu 16.04.6 LTS - it was a clean build via ISO, though admittedly the initial iso was Ubuntu 16.04.3 LTS. |
Done a little more playing, this should probably be closed as it's not a GRR issue. From a minimal install of Xenial...
I suspect my encounter with this a couple of days ago and the OP's encounter is more down to Xenial not having Python installed by default. |
Bah, disregard - I didn't get the error during install of GRR, but the
That fixes - it seems there's a version dependency of at least 16.2.0 on pyOpenSSL |
Right now, i am using Grr 3.3.0.0. Admittedly, my Ubuntu was upgraded from previous LTS version to 16.04.6 LTS version. After checking my pyopenssl, it seems the version stuck in 0.15.1 even after apt update && apt upgrade
.... so, i do install pyopenssl as instructed above Then Grr works file. Thanks Guys |
Yeah, looks like that's the default version in Xenial https://launchpad.net/ubuntu/+source/pyopenssl @mbushkov might be worth throwing pyOpenSSL 16.2.0 up there as a dependency on the docs? |
The GRR server's Python environment is self-contained, and should not be dependent on system-wide Python packages (with the exception of File try:
from oauth2client import _openssl_crypt
OpenSSLSigner = _openssl_crypt.OpenSSLSigner
OpenSSLVerifier = _openssl_crypt.OpenSSLVerifier
pkcs12_key_as_pem = _openssl_crypt.pkcs12_key_as_pem
except ImportError: # pragma: NO COVER
OpenSSLVerifier = None
OpenSSLSigner = None
pkcs12_key_as_pem = _bad_pkcs12_key_as_pem This is most probably something we did not anticipate. One workaround, as @dotalchemy suggested, would be to update I have updated our troubleshooting documentation accordingly. |
Installing on ubuntu 16.04.6 LTS (GNU/Linux 4.4.0-148-generic x86_64) gave me error like this
The text was updated successfully, but these errors were encountered: