That option makes the system site-packages visible (read only) to the venv which is what you are looking for I think.
Original Message:
Sent: Thu February 16, 2023 08:56 AM
From: C- -T
Subject: error installing packages in python venv
i am aware of that option, but this renders the concept if virtual environments ad absurdum...hower...i am switching over to linux.
------------------------------
I regret starting this entire conversation
------------------------------
Original Message:
Sent: Thu February 16, 2023 08:35 AM
From: Ayappan P
Subject: error installing packages in python venv
you can use "--system-site-packages" option.
check out there --> https://docs.python.org/3/library/venv.html
------------------------------
Ayappan P
Original Message:
Sent: Thu February 16, 2023 08:12 AM
From: C- -T
Subject: error installing packages in python venv
the toolbox python3-cryptography package is installed on the machine. as already said, i need to populate a virtualenv and i am not aware how to transpose the prebuilt module into the venv.
------------------------------
I regret starting this entire conversation
Original Message:
Sent: Thu February 16, 2023 08:07 AM
From: SANKET RATHI
Subject: error installing packages in python venv
Looks like this is a problem.
We cannot move to newer level of python-cryptography because AIX does not have Rust compiler yet.
The older level of python-cryptography does not have support for openssl 3.x
This is a catch 22 situation.
Though we do publish python3-cryptography rpm package from AIX toolbox why can you just not install that ?
I think we will have to continue to use that until we have Rust compiler on AIX.
Thanks,
Sanket Rathi
Original Message:
Sent: 2/16/2023 7:31:00 AM
From: C- -T
Subject: RE: error installing packages in python venv
seems python cryptography is allergic against the aix 7.3 openssl v3 install.
export OBJECT_MODE=64
export CRYPTOGRAPHY_DONT_BUILD_RUST=1
pip install cryptography==3.4.7... creating build/temp.aix-7.3-cpython-37/build/temp.aix-7.3-cpython-37 gcc -maix64 -fPIC -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -I/usr/include -I/opt/freeware/include -I/opt/freeware/include/ncurses -DAIX_GENUINE_CPLUSCPLUS -D_LINUX_SOURCE_COMPAT -O2 -fPIC -I/usr/include -I/opt/freeware/include -I/opt/freeware/include/ncurses -DAIX_GENUINE_CPLUSCPLUS -D_LINUX_SOURCE_COMPAT -O2 -fPIC -I/srv/webapps/sudoersdb_flask/include -I/opt/freeware/include/python3.7m -c build/temp.aix-7.3-cpython-37/_openssl.c -o build/temp.aix-7.3-cpython-37/build/temp.aix-7.3-cpython-37/_openssl.o -Wconversion -Wno-error=sign-conversion build/temp.aix-7.3-cpython-37/_openssl.c: In function 'Cryptography_pem_password_cb': build/temp.aix-7.3-cpython-37/_openssl.c:2386:37: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 2386 | memcpy(buf, st->password, st->length); | ~~^~~~~~~~ build/temp.aix-7.3-cpython-37/_openssl.c: In function '_cffi_d_BIO_s_datagram': build/temp.aix-7.3-cpython-37/_openssl.c:10325:10: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 10325 | return BIO_s_datagram(); | ^~~~~~~~~~~~~~~~ build/temp.aix-7.3-cpython-37/_openssl.c: In function '_cffi_f_BIO_s_datagram': build/temp.aix-7.3-cpython-37/_openssl.c:10336:12: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 10336 | { result = BIO_s_datagram(); } | ^ build/temp.aix-7.3-cpython-37/_openssl.c: In function '_cffi_d_BIO_s_mem': build/temp.aix-7.3-cpython-37/_openssl.c:10351:10: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 10351 | return BIO_s_mem(); | ^~~~~~~~~~~ build/temp.aix-7.3-cpython-37/_openssl.c: In function '_cffi_f_BIO_s_mem': build/temp.aix-7.3-cpython-37/_openssl.c:10362:12: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 10362 | { result = BIO_s_mem(); } | ^ build/temp.aix-7.3-cpython-37/_openssl.c: In function '_cffi_d_ERR_GET_FUNC': build/temp.aix-7.3-cpython-37/_openssl.c:18781:10: warning: implicit declaration of function 'ERR_GET_FUNC'; did you mean 'ERR_GET_LIB'? [-Wimplicit-function-declaration] 18781 | return ERR_GET_FUNC(x0); | ^~~~~~~~~~~~ | ERR_GET_LIB build/temp.aix-7.3-cpython-37/_openssl.c: In function '_cffi_d_FIPS_mode': build/temp.aix-7.3-cpython-37/_openssl.c:23534:10: warning: implicit declaration of function 'FIPS_mode' [-Wimplicit-function-declaration] 23534 | return FIPS_mode(); | ^~~~~~~~~ build/temp.aix-7.3-cpython-37/_openssl.c: In function '_cffi_d_FIPS_mode_set': build/temp.aix-7.3-cpython-37/_openssl.c:23560:10: warning: implicit declaration of function 'FIPS_mode_set' [-Wimplicit-function-declaration] 23560 | return FIPS_mode_set(x0); | ^~~~~~~~~~~~~ build/temp.aix-7.3-cpython-37/_openssl.c: In function '_cffi_d_OCSP_resp_get0_certs': build/temp.aix-7.3-cpython-37/_openssl.c:26207:10: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 26207 | return OCSP_resp_get0_certs(x0); | ^~~~~~~~~~~~~~~~~~~~~~~~ build/temp.aix-7.3-cpython-37/_openssl.c: In function '_cffi_f_OCSP_resp_get0_certs': build/temp.aix-7.3-cpython-37/_openssl.c:26230:12: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 26230 | { result = OCSP_resp_get0_certs(x0); } | ^ build/temp.aix-7.3-cpython-37/_openssl.c: In function '_cffi_d_SSL_CTX_add_extra_chain_cert': build/temp.aix-7.3-cpython-37/_openssl.c:31586:10: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 31586 | return SSL_CTX_add_extra_chain_cert(x0, x1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ build/temp.aix-7.3-cpython-37/_openssl.c: In function '_cffi_f_SSL_CTX_add_extra_chain_cert': build/temp.aix-7.3-cpython-37/_openssl.c:31624:14: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 31624 | { result = SSL_CTX_add_extra_chain_cert(x0, x1); } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ build/temp.aix-7.3-cpython-37/_openssl.c: In function '_cffi_d_SSL_CTX_clear_mode': build/temp.aix-7.3-cpython-37/_openssl.c:31765:10: warning: conversion to 'long int' from 'long unsigned int' may change the sign of the result [-Wsign-conversion] 31765 | return SSL_CTX_clear_mode(x0, x1); | ^~~~~~~~~~~~~~~~~~ build/temp.aix-7.3-cpython-37/_openssl.c:31765:10: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] build/temp.aix-7.3-cpython-37/_openssl.c: In function '_cffi_f_SSL_CTX_clear_mode': build/temp.aix-7.3-cpython-37/_openssl.c:31798:14: warning: conversion to 'long int' from 'long unsigned int' may change the sign of the result [-Wsign-conversion] 31798 | { result = SSL_CTX_clear_mode(x0, x1); } | ^~~~~~~~~~~~~~~~~~ build/temp.aix-7.3-cpython-37/_openssl.c:31798:14: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] build/temp.aix-7.3-cpython-37/_openssl.c: In function '_cffi_d_SSL_CTX_get_mode': build/temp.aix-7.3-cpython-37/_openssl.c:32254:10: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 32254 | return SSL_CTX_get_mode(x0); | ^~~~~~~~~~~~~~~~ build/temp.aix-7.3-cpython-37/_openssl.c: In function '_cffi_f_SSL_CTX_get_mode': build/temp.aix-7.3-cpython-37/_openssl.c:32277:14: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 32277 | { result = SSL_CTX_get_mode(x0); } | ^~~~~~~~~~~~~~~~ build/temp.aix-7.3-cpython-37/_openssl.c: In function '_cffi_d_SSL_CTX_get_session_cache_mode': build/temp.aix-7.3-cpython-37/_openssl.c:32368:10: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 32368 | return SSL_CTX_get_session_cache_mode(x0); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build/temp.aix-7.3-cpython-37/_openssl.c: In function '_cffi_f_SSL_CTX_get_session_cache_mode': build/temp.aix-7.3-cpython-37/_openssl.c:32391:14: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 32391 | { result = SSL_CTX_get_session_cache_mode(x0); } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build/temp.aix-7.3-cpython-37/_openssl.c: In function '_cffi_d_SSL_CTX_set_mode': build/temp.aix-7.3-cpython-37/_openssl.c:34093:10: warning: conversion to 'long int' from 'long unsigned int' may change the sign of the result [-Wsign-conversion] 34093 | return SSL_CTX_set_mode(x0, x1); | ^~~~~~~~~~~~~~~~ build/temp.aix-7.3-cpython-37/_openssl.c:34093:10: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] build/temp.aix-7.3-cpython-37/_openssl.c: In function '_cffi_f_SSL_CTX_set_mode': build/temp.aix-7.3-cpython-37/_openssl.c:34126:14: warning: conversion to 'long int' from 'long unsigned int' may change the sign of the result [-Wsign-conversion] 34126 | { result = SSL_CTX_set_mode(x0, x1); } | ^~~~~~~~~~~~~~~~ build/temp.aix-7.3-cpython-37/_openssl.c:34126:14: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] In file included from build/temp.aix-7.3-cpython-37/_openssl.c:815: build/temp.aix-7.3-cpython-37/_openssl.c: In function '_cffi_d_SSL_CTX_set_session_cache_mode': build/temp.aix-7.3-cpython-37/_openssl.c:34375:45: warning: conversion to 'long int' from 'long unsigned int' may change the sign of the result [-Wsign-conversion] 34375 | return SSL_CTX_set_session_cache_mode(x0, x1); | ^~ build/temp.aix-7.3-cpython-37/_openssl.c:34375:10: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 34375 | return SSL_CTX_set_session_cache_mode(x0, x1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from build/temp.aix-7.3-cpython-37/_openssl.c:815: build/temp.aix-7.3-cpython-37/_openssl.c: In function '_cffi_f_SSL_CTX_set_session_cache_mode': build/temp.aix-7.3-cpython-37/_openssl.c:34408:49: warning: conversion to 'long int' from 'long unsigned int' may change the sign of the result [-Wsign-conversion] 34408 | { result = SSL_CTX_set_session_cache_mode(x0, x1); } | ^~ build/temp.aix-7.3-cpython-37/_openssl.c:34408:14: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 34408 | { result = SSL_CTX_set_session_cache_mode(x0, x1); } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build/temp.aix-7.3-cpython-37/_openssl.c: In function '_cffi_d_SSL_CTX_set_tmp_dh': build/temp.aix-7.3-cpython-37/_openssl.c:34781:10: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 34781 | return SSL_CTX_set_tmp_dh(x0, x1); | ^~~~~~~~~~~~~~~~~~ build/temp.aix-7.3-cpython-37/_openssl.c: In function '_cffi_f_SSL_CTX_set_tmp_dh': build/temp.aix-7.3-cpython-37/_openssl.c:34819:14: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 34819 | { result = SSL_CTX_set_tmp_dh(x0, x1); } | ^~~~~~~~~~~~~~~~~~ build/temp.aix-7.3-cpython-37/_openssl.c: In function '_cffi_d_SSL_CTX_set_tmp_ecdh': build/temp.aix-7.3-cpython-37/_openssl.c:34834:10: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 34834 | return SSL_CTX_set_tmp_ecdh(x0, x1); | ^~~~~~~~~~~~~~~~~~~~ build/temp.aix-7.3-cpython-37/_openssl.c: In function '_cffi_f_SSL_CTX_set_tmp_ecdh': build/temp.aix-7.3-cpython-37/_openssl.c:34872:14: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 34872 | { result = SSL_CTX_set_tmp_ecdh(x0, x1); } | ^~~~~~~~~~~~~~~~~~~~ build/temp.aix-7.3-cpython-37/_openssl.c: In function '_cffi_d_SSL_SESSION_get_ticket_lifetime_hint': build/temp.aix-7.3-cpython-37/_openssl.c:35501:10: warning: conversion to 'long int' from 'long unsigned int' may change the sign of the result [-Wsign-conversion] 35501 | return SSL_SESSION_get_ticket_lifetime_hint(x0); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build/temp.aix-7.3-cpython-37/_openssl.c: In function '_cffi_f_SSL_SESSION_get_ticket_lifetime_hint': build/temp.aix-7.3-cpython-37/_openssl.c:35524:14: warning: conversion to 'long int' from 'long unsigned int' may change the sign of the result [-Wsign-conversion] 35524 | { result = SSL_SESSION_get_ticket_lifetime_hint(x0); } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build/temp.aix-7.3-cpython-37/_openssl.c: In function '_cffi_d_SSL_clear_mode': build/temp.aix-7.3-cpython-37/_openssl.c:35712:10: warning: conversion to 'long int' from 'long unsigned int' may change the sign of the result [-Wsign-conversion] 35712 | return SSL_clear_mode(x0, x1); | ^~~~~~~~~~~~~~ build/temp.aix-7.3-cpython-37/_openssl.c:35712:10: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] build/temp.aix-7.3-cpython-37/_openssl.c: In function '_cffi_f_SSL_clear_mode': build/temp.aix-7.3-cpython-37/_openssl.c:35745:14: warning: conversion to 'long int' from 'long unsigned int' may change the sign of the result [-Wsign-conversion] 35745 | { result = SSL_clear_mode(x0, x1); } | ^~~~~~~~~~~~~~ build/temp.aix-7.3-cpython-37/_openssl.c:35745:14: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] build/temp.aix-7.3-cpython-37/_openssl.c: In function '_cffi_d_SSL_get_mode': build/temp.aix-7.3-cpython-37/_openssl.c:36698:10: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 36698 | return SSL_get_mode(x0); | ^~~~~~~~~~~~ build/temp.aix-7.3-cpython-37/_openssl.c: In function '_cffi_f_SSL_get_mode': build/temp.aix-7.3-cpython-37/_openssl.c:36721:14: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 36721 | { result = SSL_get_mode(x0); } | ^~~~~~~~~~~~ build/temp.aix-7.3-cpython-37/_openssl.c: In function '_cffi_d_SSL_set_mode': build/temp.aix-7.3-cpython-37/_openssl.c:38512:10: warning: conversion to 'long int' from 'long unsigned int' may change the sign of the result [-Wsign-conversion] 38512 | return SSL_set_mode(x0, x1); | ^~~~~~~~~~~~ build/temp.aix-7.3-cpython-37/_openssl.c:38512:10: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] build/temp.aix-7.3-cpython-37/_openssl.c: In function '_cffi_f_SSL_set_mode': build/temp.aix-7.3-cpython-37/_openssl.c:38545:14: warning: conversion to 'long int' from 'long unsigned int' may change the sign of the result [-Wsign-conversion] 38545 | { result = SSL_set_mode(x0, x1); } | ^~~~~~~~~~~~ build/temp.aix-7.3-cpython-37/_openssl.c:38545:14: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] /opt/freeware/lib/python3.7/config-3.7m/ld_so_aix gcc -maix64 -fPIC -pthread -bI:/opt/freeware/lib/python3.7/config-3.7m/python.exp -L. -L/opt/freeware/lib/pthread -L/opt/freeware/lib64 -L/opt/freeware/lib -L/usr/lib -Wl,-blibpath:/opt/freeware/lib/pthread:/opt/freeware/lib64:/opt/freeware/lib:/usr/lib -Wl,-brtl -L. -L/opt/freeware/lib/pthread -L/opt/freeware/lib64 -L/opt/freeware/lib -L/usr/lib -Wl,-blibpath:/opt/freeware/lib/pthread:/opt/freeware/lib64:/opt/freeware/lib:/usr/lib -Wl,-brtl build/temp.aix-7.3-cpython-37/build/temp.aix-7.3-cpython-37/_openssl.o -L/opt/freeware/lib64 -lssl -lcrypto -lpthread -o build/lib.aix-7.3-cpython-37/cryptography/hazmat/bindings/_openssl.abi3.so ld: 0711-327 WARNING: Entry point not found: PyInit__openssl.abi3 ld: 0711-317 ERROR: Undefined symbol: DH_new ld: 0711-317 ERROR: Undefined symbol: d2i_DHparams ld: 0711-317 ERROR: Undefined symbol: .DH_new ld: 0711-317 ERROR: Undefined symbol: i2d_DHparams ld: 0711-317 ERROR: Undefined symbol: .i2d_RSAPublicKey_bio ld: 0711-317 ERROR: Undefined symbol: .i2d_RSAPrivateKey_bio ld: 0711-317 ERROR: Undefined symbol: .i2d_EC_PUBKEY_bio ld: 0711-317 ERROR: Undefined symbol: .i2d_ECPrivateKey_bio ld: 0711-317 ERROR: Undefined symbol: .i2d_DSAPrivateKey_bio ld: 0711-317 ERROR: Undefined symbol: .d2i_RSAPublicKey_bio ld: 0711-317 ERROR: Undefined symbol: .d2i_EC_PUBKEY_bio ld: 0711-317 ERROR: Undefined symbol: .d2i_ECPrivateKey_bio ld: 0711-317 ERROR: Undefined symbol: .X509_CRL_get_nextUpdate ld: 0711-317 ERROR: Undefined symbol: .X509_CRL_get_lastUpdate ld: 0711-317 ERROR: Undefined symbol: .TLSv1_server_method ld: 0711-317 ERROR: Undefined symbol: .TLSv1_method ld: 0711-317 ERROR: Undefined symbol: .TLSv1_client_method ld: 0711-317 ERROR: Undefined symbol: .TLSv1_2_server_method ld: 0711-317 ERROR: Undefined symbol: .TLSv1_2_method ld: 0711-317 ERROR: Undefined symbol: .TLSv1_2_client_method ld: 0711-317 ERROR: Undefined symbol: .TLSv1_1_server_method ld: 0711-317 ERROR: Undefined symbol: .TLSv1_1_method ld: 0711-317 ERROR: Undefined symbol: .TLSv1_1_client_method ld: 0711-317 ERROR: Undefined symbol: .RSA_set0_key ld: 0711-317 ERROR: Undefined symbol: .RSA_set0_factors ld: 0711-317 ERROR: Undefined symbol: .RSA_set0_crt_params ld: 0711-317 ERROR: Undefined symbol: .RSA_print ld: 0711-317 ERROR: Undefined symbol: .RSA_new ld: 0711-317 ERROR: Undefined symbol: .RSA_get0_key ld: 0711-317 ERROR: Undefined symbol: .RSA_get0_factors ld: 0711-317 ERROR: Undefined symbol: .RSA_get0_crt_params ld: 0711-317 ERROR: Undefined symbol: .RSA_generate_key_ex ld: 0711-317 ERROR: Undefined symbol: .RSA_free ld: 0711-317 ERROR: Undefined symbol: .RSA_check_key ld: 0711-317 ERROR: Undefined symbol: .RSA_blinding_on ld: 0711-317 ERROR: Undefined symbol: .RSAPublicKey_dup ld: 0711-317 ERROR: Undefined symbol: .RAND_set_rand_method ld: 0711-317 ERROR: Undefined symbol: .PEM_write_bio_RSAPublicKey ld: 0711-317 ERROR: Undefined symbol: .PEM_write_bio_RSAPrivateKey ld: 0711-317 ERROR: Undefined symbol: .PEM_write_bio_ECPrivateKey ld: 0711-317 ERROR: Undefined symbol: .PEM_write_bio_DSAPrivateKey ld: 0711-317 ERROR: Undefined symbol: .PEM_write_bio_DHxparams ld: 0711-317 ERROR: Undefined symbol: .PEM_write_bio_DHparams ld: 0711-317 ERROR: Undefined symbol: .PEM_read_bio_RSAPublicKey ld: 0711-317 ERROR: Undefined symbol: .PEM_read_bio_DHparams ld: 0711-317 ERROR: Undefined symbol: .OPENSSL_config ld: 0711-317 ERROR: Undefined symbol: .HMAC_Update ld: 0711-317 ERROR: Undefined symbol: .HMAC_Init_ex ld: 0711-317 ERROR: Undefined symbol: .HMAC_Final ld: 0711-317 ERROR: Undefined symbol: .HMAC_CTX_new ld: 0711-317 ERROR: Undefined symbol: .HMAC_CTX_free ld: 0711-317 ERROR: Undefined symbol: .HMAC_CTX_copy ld: 0711-317 ERROR: Undefined symbol: .FIPS_mode_set ld: 0711-317 ERROR: Undefined symbol: .FIPS_mode ld: 0711-317 ERROR: Undefined symbol: .EVP_PKEY_set1_RSA ld: 0711-317 ERROR: Undefined symbol: .EVP_PKEY_set1_EC_KEY ld: 0711-317 ERROR: Undefined symbol: .EVP_PKEY_set1_DSA ld: 0711-317 ERROR: Undefined symbol: .EVP_PKEY_set1_DH ld: 0711-317 ERROR: Undefined symbol: .EVP_PKEY_get1_RSA ld: 0711-317 ERROR: Undefined symbol: .EVP_PKEY_get1_EC_KEY ld: 0711-317 ERROR: Undefined symbol: .EVP_PKEY_get1_DSA ld: 0711-317 ERROR: Undefined symbol: .EVP_PKEY_get1_DH ld: 0711-317 ERROR: Undefined symbol: .EVP_PKEY_cmp ld: 0711-317 ERROR: Undefined symbol: .EVP_PKEY_assign ld: 0711-317 ERROR: Undefined symbol: .EVP_CIPHER_CTX_cipher ld: 0711-317 ERROR: Undefined symbol: .ERR_load_RAND_strings ld: 0711-317 ERROR: Undefined symbol: .ERR_func_error_string ld: 0711-317 ERROR: Undefined symbol: .ERR_GET_FUNC ld: 0711-317 ERROR: Undefined symbol: .EC_POINT_set_compressed_coordinates_GFp ld: 0711-317 ERROR: Undefined symbol: .EC_POINT_set_compressed_coordinates_GF2m ld: 0711-317 ERROR: Undefined symbol: .EC_POINT_set_affine_coordinates_GFp ld: 0711-317 ERROR: Undefined symbol: .EC_POINT_set_affine_coordinates_GF2m ld: 0711-317 ERROR: Undefined symbol: .EC_POINT_get_affine_coordinates_GFp ld: 0711-317 ERROR: Undefined symbol: .EC_POINT_get_affine_coordinates_GF2m ld: 0711-317 ERROR: Undefined symbol: .EC_METHOD_get_field_type ld: 0711-317 ERROR: Undefined symbol: .EC_KEY_set_public_key_affine_coordinates ld: 0711-317 ERROR: Undefined symbol: .EC_KEY_set_public_key ld: 0711-317 ERROR: Undefined symbol: .EC_KEY_set_private_key ld: 0711-317 ERROR: Undefined symbol: .EC_KEY_set_group ld: 0711-317 ERROR: Undefined symbol: .EC_KEY_set_asn1_flag ld: 0711-317 ERROR: Undefined symbol: .EC_KEY_new_by_curve_name ld: 0711-317 ERROR: Undefined symbol: .EC_KEY_new ld: 0711-317 ERROR: Undefined symbol: .EC_KEY_get0_public_key ld: 0711-317 ERROR: Undefined symbol: .EC_KEY_get0_private_key ld: 0711-317 ERROR: Undefined symbol: .EC_KEY_get0_group ld: 0711-317 ERROR: Undefined symbol: .EC_KEY_generate_key ld: 0711-317 ERROR: Undefined symbol: .EC_KEY_free ld: 0711-317 ERROR: Undefined symbol: .EC_GROUP_method_of ld: 0711-317 ERROR: Undefined symbol: .ECDSA_verify ld: 0711-317 ERROR: Undefined symbol: .ECDSA_size ld: 0711-317 ERROR: Undefined symbol: .ECDSA_sign ld: 0711-317 ERROR: Undefined symbol: .ECDH_compute_key ld: 0711-317 ERROR: Undefined symbol: .DTLSv1_server_method ld: 0711-317 ERROR: Undefined symbol: .DTLSv1_method ld: 0711-317 ERROR: Undefined symbol: .DTLSv1_client_method ld: 0711-317 ERROR: Undefined symbol: .DSAparams_dup ld: 0711-317 ERROR: Undefined symbol: .DSA_verify ld: 0711-317 ERROR: Undefined symbol: .DSA_size ld: 0711-317 ERROR: Undefined symbol: .DSA_sign ld: 0711-317 ERROR: Undefined symbol: .DSA_set0_pqg ld: 0711-317 ERROR: Undefined symbol: .DSA_set0_key ld: 0711-317 ERROR: Undefined symbol: .DSA_new ld: 0711-317 ERROR: Undefined symbol: .DSA_get0_pqg ld: 0711-317 ERROR: Undefined symbol: .DSA_get0_key ld: 0711-317 ERROR: Undefined symbol: .DSA_generate_parameters_ex ld: 0711-317 ERROR: Undefined symbol: .DSA_generate_key ld: 0711-317 ERROR: Undefined symbol: .DSA_free ld: 0711-317 ERROR: Undefined symbol: .DHparams_dup ld: 0711-317 ERROR: Undefined symbol: .DH_size ld: 0711-317 ERROR: Undefined symbol: .DH_set0_pqg ld: 0711-317 ERROR: Undefined symbol: .DH_set0_key ld: 0711-317 ERROR: Undefined symbol: .DH_get0_pqg ld: 0711-317 ERROR: Undefined symbol: .DH_get0_key ld: 0711-317 ERROR: Undefined symbol: .DH_generate_parameters_ex ld: 0711-317 ERROR: Undefined symbol: .DH_generate_key ld: 0711-317 ERROR: Undefined symbol: .DH_free ld: 0711-317 ERROR: Undefined symbol: .DH_compute_key ld: 0711-317 ERROR: Undefined symbol: .CMAC_Update ld: 0711-317 ERROR: Undefined symbol: .CMAC_Init ld: 0711-317 ERROR: Undefined symbol: .CMAC_Final ld: 0711-317 ERROR: Undefined symbol: .CMAC_CTX_new ld: 0711-317 ERROR: Undefined symbol: .CMAC_CTX_free ld: 0711-317 ERROR: Undefined symbol: .CMAC_CTX_copy ld: 0711-317 ERROR: Undefined symbol: .BN_is_prime_ex ld: 0711-317 ERROR: Undefined symbol: .ASN1_STRING_data ld: 0711-317 ERROR: Undefined symbol: .AES_wrap_key ld: 0711-317 ERROR: Undefined symbol: .AES_unwrap_key ld: 0711-317 ERROR: Undefined symbol: .DH_check ld: 0711-317 ERROR: Undefined symbol: d2i_DHxparams ld: 0711-317 ERROR: Undefined symbol: i2d_DHxparams ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. collect2: error: ld returned 8 exit status =============================DEBUG ASSISTANCE============================= If you are seeing a compilation error please try the following steps to successfully install cryptography: 1) Upgrade to the latest pip and try again. This will fix errors for most users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip 2) Read https://cryptography.io/en/latest/installation.html for specific instructions for your platform. 3) Check our frequently asked questions for more information: https://cryptography.io/en/latest/faq.html 4) Ensure you have a recent Rust toolchain installed: https://cryptography.io/en/latest/installation.html#rust 5) If you are experiencing issues with Rust for *this release only* you may set the environment variable `CRYPTOGRAPHY_DONT_BUILD_RUST=1`. =============================DEBUG ASSISTANCE============================= error: command '/opt/freeware/lib/python3.7/config-3.7m/ld_so_aix' failed with exit code 1 [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for cryptographyFailed to build cryptographyERROR: Could not build wheels for cryptography, which is required to install pyproject.toml-based projects
------------------------------
I regret starting this entire conversation
Original Message:
Sent: Thu February 16, 2023 05:06 AM
From: Ayappan P
Subject: error installing packages in python venv
Rust compiler is not yet available in AIX.
So probably you may need to take a lower version of those packages. In this case, I see bcrypt 3.2.2 is the last version which don't require rust.
pip install bcrypt==3.2.2
------------------------------
Ayappan P