Wind River Support Network

HomeDefectsLIN1022-1895
Fixed

LIN1022-1895 : Importing OpenSSL in nativesdk-python3 results in internal error

Created: Sep 26, 2022    Updated: Nov 6, 2022
Resolved Date: Nov 1, 2022
Found In Version: 10.22.33.1
Fix Version: 10.22.33.2
Severity: Critical
Applicable for: Wind River Linux LTS 22
Component/s: Userspace

Description


Importing openssl in nativesdk-python3 causes results in the following error:

cryptography.exceptions.InternalError: Unknown OpenSSL error.

Steps to Reproduce

1. Setup project and build SDK:

$ ./wrlinux-x/^Ctup.sh --machines marvell-cn96xx 
$ . environment-setup-x86_64-wrlinuxsdk-linux
$ . oe-init-build-env

# Add the following python3 and python3-cryptography to SDK
# Edit local.conf and add:
# TOOLCHAIN_HOST_TASK:append = " nativesdk-python3-modules nativesdk-python3-cryptography" 

$ bitbake -c populate_sdk wrlinux-image-std
2. Install the SDK and run the test (logs attached):

$ ./wrlinux-10.22.33.1-glibc-x86_64-marvell_cn96xx-wrlinux-image-std-sdk.sh
$ . sdk-nokia-lts22/environment-setup-octeontx2-wrs-linux
(wrlinuxsdk-x86_64-aarch64) $ python3
>>> from cryptography.hazmat.backends import openssl
 
Live chat
Online