AIX Open Source

AIX Open Source

Share your experiences and connect with fellow developers to discover how to build and manage open source software for the AIX operating system

 View Only
Expand all | Collapse all

error installing packages in python venv

  • 1.  error installing packages in python venv

    Posted Thu February 16, 2023 04:50 AM

    Hi,

    while installing packges into an python venv the build of bcryt is bailing out. as rust is not available for aix

    how ist this supposed to work?

    error: subprocess-exited-with-error
    
      Building wheel for bcrypt (pyproject.toml) did not run successfully.
      exit code: 1
    
      [58 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.aix-7.3-cpython-37
      creating build/lib.aix-7.3-cpython-37/bcrypt
      copying src/bcrypt/__about__.py -> build/lib.aix-7.3-cpython-37/bcrypt
      copying src/bcrypt/__init__.py -> build/lib.aix-7.3-cpython-37/bcrypt
      running egg_info
      writing src/bcrypt.egg-info/PKG-INFO
      writing dependency_links to src/bcrypt.egg-info/dependency_links.txt
      writing requirements to src/bcrypt.egg-info/requires.txt
      writing top-level names to src/bcrypt.egg-info/top_level.txt
      reading manifest file 'src/bcrypt.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      warning: no previously-included files found matching 'requirements.txt'
      warning: no previously-included files found matching 'release.py'
      warning: no previously-included files found matching 'mypy.ini'
      warning: no previously-included files matching '*' found under directory '.github'
      warning: no previously-included files matching '*' found under directory '.circleci'
      warning: no previously-included files found matching 'src/_bcrypt/target'
      warning: no previously-included files matching '*' found under directory 'src/_bcrypt/target'
      adding license file 'LICENSE'
      writing manifest file 'src/bcrypt.egg-info/SOURCES.txt'
      copying src/bcrypt/_bcrypt.pyi -> build/lib.aix-7.3-cpython-37/bcrypt
      copying src/bcrypt/py.typed -> build/lib.aix-7.3-cpython-37/bcrypt
      running build_ext
      running build_rust
    
          =============================DEBUG ASSISTANCE=============================
          If you are seeing a compilation error please try the following steps to
          successfully install bcrypt:
          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) Ensure you have a recent Rust toolchain installed. bcrypt requires
             rustc >= 1.56.0.
    
          Python: 3.7.15
          platform: AIX-3-00CA8B904B00-powerpc-64bit-COFF
          pip: n/a
          setuptools: 67.3.2
          setuptools_rust: 1.5.2
          rustc: n/a
          =============================DEBUG ASSISTANCE=============================
    
      error: can't find Rust compiler
    
      If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler.
    
      To update pip, run:
    
          pip install --upgrade pip
    
      and then retry package installation.
    
      If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain.
    
      This package requires Rust >=1.56.0.
      [end of output]
    
      note: This error originates from a subprocess, and is likely not a problem with pip.
      ERROR: Failed building wheel for bcrypt
      Building wheel for cryptography (pyproject.toml) ... error
      error: subprocess-exited-with-error
    
      Building wheel for cryptography (pyproject.toml) did not run successfully.
      exit code: 1
    
    

    chris



    ------------------------------
    I regret starting this entire conversation
    ------------------------------


  • 2.  RE: error installing packages in python venv

    Posted Thu February 16, 2023 05:07 AM

    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
    ------------------------------



  • 3.  RE: error installing packages in python venv

    Posted Thu February 16, 2023 07:31 AM
    Edited by C- -T Thu February 16, 2023 07:33 AM

    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 cryptography
    Failed to build cryptography
    ERROR: Could not build wheels for cryptography, which is required to install pyproject.toml-based projects
    



    ------------------------------
    I regret starting this entire conversation
    ------------------------------



  • 4.  RE: error installing packages in python venv

    Posted Thu February 16, 2023 07:51 AM
    Edited by C- -T Thu February 16, 2023 07:56 AM

    from python3-cryptography spec file ->

    %changelog
    * Mon Jan 09 2023 Ayappan P <ayappap2@in.ibm.com> -3.4.7-2 
    - Rebuild with openssl 1.1.2.X fileset

    as i am on aix 7.3 , its not possible to downgrad openssl, now what?

    older cryptography needs no rust but does not work with current openssl,  current cryptography works with current openssl but needs rust...

    the chicken has smashed his egg?

    
    



    ------------------------------
    I regret starting this entire conversation
    ------------------------------



  • 5.  RE: error installing packages in python venv

    Posted Thu February 16, 2023 08:08 AM

    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

     

     

     






  • 6.  RE: error installing packages in python venv

    Posted Thu February 16, 2023 08:12 AM

    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
    ------------------------------



  • 7.  RE: error installing packages in python venv

    Posted Thu February 16, 2023 08:35 AM

    you can use "--system-site-packages" option. 
    check out there --> https://docs.python.org/3/library/venv.html



    ------------------------------
    Ayappan P
    ------------------------------



  • 8.  RE: error installing packages in python venv

    Posted Thu February 16, 2023 08:56 AM

    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
    ------------------------------



  • 9.  RE: error installing packages in python venv

    Posted Thu February 16, 2023 09:01 AM

    That option makes the system site-packages visible (read only) to the venv which is what you are looking for I think. 



    ------------------------------
    Ayappan P
    ------------------------------



  • 10.  RE: error installing packages in python venv

    Posted Wed February 22, 2023 09:11 AM
    Just in case you haven't seen it, I cannot recommend pyenv enough:


    You can manage different *versions* of python and well as virtual environments.

    For example, I'm regularly chasing the latest version of Ansible, which requires more recent Python than comes pre-installed on any OS I use (for the controller, not the target nodes).

    -- 
    Stephen L. Ulmer
    Enterprise Architect
    Mainline Information Systems