-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
cryptography and OpenSSL 1.0.2p #4691
Comments
I also tried running
|
Conda installs its own OpenSSL and links Python against it. When installing a Python package like cryptography we reuse the compiler flags that were used to build Python so the second error is likely due to a mismatch between the header files it is seeing in your include path and the library it is attempting to link against in your linker path. We don't package cryptography for anything outside of pip itself so I'm not sure what's going on with the conda package. Looking at berryconda's OpenSSL config (https://github.com/jjhelmus/berryconda/blob/master/recipes/openssl/build.sh#L5) there's nothing special so secp256r1 should be available. |
Thank you for the pointers, @reaperhulk. The issue has been resolved with an updated berryconda OpenSSL build jjhelmus/berryconda#58 |
Sorry. I have a solution of this problem. Actually It's py-cryptography library build stage problem. This error occurs when two conditions are satisfied. First is openssl 1.1.0 and greater in the system so build utils prefers that. Second is header file "openssl/objects.h" from versions less than 1.1.0 so build utils prefers this file. "OBJ_cleanup" was deprecated in openssl 1.1.0. py-cryptography building process matches "openssl/objects.h" and objects.py (somewhere inside source code tree) to collecting binding's symbols. So ooops... It is required to explicitly set the headers file path. Like this: |
I'm trying to get cryptography and paramiko working on a Raspberry Pi. Using cryptography 2.3.1, OpenSSL 1.0.2p, and paramiko 2.4.2 to open an SSH connection givens the error:
Is this expected with OpenSSL 1.0.2p?
Versions of Python,
cryptography
,cffi
,pip
, andsetuptools
you're usingPython: 3.6.1
cryptography: 2.3.1
cffi: 1.11.5
pip: 18.1
setup tools: 36.0.1
openssl: 1.0.2p
Running on Raspberry Pi 3+ with Raspbian Stretch and the Berryconda 2.0.0 distribution.
How you installed
cryptography
Installed the Berryconda distribution.
Clear steps for reproducing your bug
Installed Berryconda; pip installed paramiko; ran:
This gives error:
The text was updated successfully, but these errors were encountered: