Skip to content
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

please help with libopenssl and cryptography=3.2 #7

Open
need2buy opened this issue Mar 20, 2021 · 0 comments
Open

please help with libopenssl and cryptography=3.2 #7

need2buy opened this issue Mar 20, 2021 · 0 comments

Comments

@need2buy
Copy link

Hi guys,

Environment:

Platform: OpenWRT running LEDE OpenWrt 19.07.7
homeassistant: 2021.1.5 (latest support Python3.7)
pip3 list
Package Version


cryptography 3.2.1

homeassistant 2021.1.5

opkg files libopenssl
Package libopenssl1.1 (1.1.1j-1) is installed on root and has the following files:
/usr/lib/libcrypto.so.1.1
/usr/lib/libssl.so.1.1

Issue:

I was able to loaded the require packages and started HA on OpenWrt. However, a lot of components (HomeKit, cloud, mobile_app, apple_tv) can't run with the following error

ImportError: Error relocating /usr/lib/python3.7/site-packages/cryptography/hazmat/bindings/_openssl.abi3.so: SSL_library_init: symbol not found

I did my research and found it seems SSL_library_init no longer get supported under libssl.1.1. However it seem after install cryptography (2.8,3.0,3.2), this symbol keep being called by cryptography.

There might be a modification needed at ssl.h to ensure it's not call SSL_library_init but OpenSSL_init_SSL instead as in the following ssl.h from other openssl package

if OPENSSL_API_COMPAT < 0x10100000L

define SSL_library_init() OPENSSL_init_ssl(0, NULL)

endif

Could someone please help recompile ssl.h file that is suitable for this implementation? I tried copy this ssl.h from the net but no luck during reinstall cryptography.

Thanks a bunch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant