Skip to content

Cannot use clik and clik_lensing wrappers (cause = '/lib64/libk5crypto.so.3: undefined symbol: EVP_KDF_ctrl, version OPENSSL_1_1_1b') #3

Description

@taladi

Hi,

I am trying to use the clik python wrapper, which is required for the MCMC code Cobaya, but I encounter an error when importing the module:
>> import clik
Cannot use clik wrapper (cause = '/lib64/libk5crypto.so.3: undefined symbol: EVP_KDF_ctrl, version OPENSSL_1_1_1b')
Cannot use clik_lensing wrapper (cause = '/lib64/libk5crypto.so.3: undefined symbol: EVP_KDF_ctrl, version OPENSSL_1_1_1b')

I've tried to install it with and without MKL, on a new Conda environment each time, using different python versions, and also installing numpy, satrapy and cython using Conda install and python -m pip install --user --upgrade <package>, but I always get the same error when I import the clik module.
I've noticed a strange behavior, sometimes the error does not happen if I first import clik, i.e. without importing other modules prior to it. Also, this behavior occurs on the linux OS, which is where I need to use it, but not when testing on my personal MacOS machine.

Below are all the inputs-outputs I think were relevant and the configuration part. If more information is required please let me know and I will try to supply it.

Thanks,
Tal


>>> import clik
>>> 
(cobaya_env) talabadi@sge236:~/codes/cobaya_packages/code/planck/clik-main->python
Python 3.11.2 (main, Mar 27 2023, 23:42:44) [GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>> import clik
Cannot use clik wrapper (cause = '/lib64/libk5crypto.so.3: undefined symbol: EVP_KDF_ctrl, version OPENSSL_1_1_1b')
Cannot use clik_lensing wrapper (cause = '/lib64/libk5crypto.so.3: undefined symbol: EVP_KDF_ctrl, version OPENSSL_1_1_1b')
>>> 
(cobaya_env) talabadi@sge236:~/codes/cobaya_packages/code/planck/clik-main->python
Python 3.11.2 (main, Mar 27 2023, 23:42:44) [GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import clik
>>> 

(cobaya_env) talabadi@sge236:~/codes/cobaya_packages/code/planck/clik-main->which openssl
~/anaconda3/envs/cobaya_env/bin/openssl
(cobaya_env) talabadi@sge236:~/codes/cobaya_packages/code/planck/clik-main->openssl version
OpenSSL 1.1.1t  7 Feb 2023

(cobaya_env) talabadi@sge236:~/codes/cobaya_packages/code/planck/clik-main->python waf configure --lapack_mkl=$MKLROOT --install_all_deps
Setting top to                           : /gpfs0/elyk/users/talabadi/codes/cobaya_packages/code/planck/clik-main 
Setting out to                           : /gpfs0/elyk/users/talabadi/codes/cobaya_packages/code/planck/clik-main/build 
get clik version                         : clik_16.0b1-2-g63c889f3aa9c 
Checking for program 'gcc, cc'           : /bin/gcc 
Checking for program 'ar'                : /bin/ar 
Check gcc version                        : 8.5.0 
Compile a test code with gcc             : yes 
Setting architecture flag to             : ['-m64'] 
Checking for program 'ifort'             : /opt/intel/compilers_and_libraries_2020.4.304/linux/bin/intel64/ifort 
Checking for program 'xiar'              : /bin/ar 
Checking for program 'ar'                : /bin/ar 
Check ifort version                      : 19.1.3.304 
Compile a test code with ifort           : yes 
retrieve ifort link line                 : ok 
ifort link line                          : -L/opt/intel/compilers_and_libraries_2020.4.304/linux/compiler/lib/intel64_lin -L/opt/intel/compilers_and_libraries_2020.4.304/linux/compiler/lib/intel64_lin/ -L/gpfs0/system/intel_cls2020/compilers_and_libraries_2020.4.304/linux/compiler/lib/intel64_lin -L/lib -L/lib64 -liomp5 -lintlc -lifcoremt -lifport -lirc -lsvml -limf -lpthread 
Setting install root to                  : /gpfs0/elyk/users/talabadi/codes/cobaya_packages/code/planck/clik-main 
Setting install bin directory to         : /gpfs0/elyk/users/talabadi/codes/cobaya_packages/code/planck/clik-main/bin 
Setting install lib directory to         : /gpfs0/elyk/users/talabadi/codes/cobaya_packages/code/planck/clik-main/lib 
Setting install include directory to     : /gpfs0/elyk/users/talabadi/codes/cobaya_packages/code/planck/clik-main/include 
check compatibility of ifort and gcc versions : ok 
Checking for program 'python'                 : /gpfs0/elyk/users/talabadi/anaconda3/envs/cobaya_env/bin/python 
Checking for python version                   : 3.11.2 
python-config                                 : /gpfs0/elyk/users/talabadi/anaconda3/envs/cobaya_env/bin/python3.11-config 
Asking python-config for pyembed '--cflags --libs --ldflags --embed' flags : yes 
Testing pyembed configuration                                              : yes 
Checking for library dl                                                    : yes 
checking for RTLD_DEFAULT in dl                                            : no 
compile with debug option                                                  : OFF 
Checking for program 'pmc-config'                                          : not found 
Checking for library pmc                                                   : not found 
Check mkl version                                                          : 10.3 
create specific mkl lib                                                    : /gpfs0/elyk/users/talabadi/codes/cobaya_packages/code/planck/clik-main/lib/libclik_mkl.so 
Checking for library ['clik_mkl', 'iomp5', 'pthread', 'm']                 : yes 
checking for function 'dposv'                                              : yes 
checking for function 'dtrsv'                                              : yes 
checking for function 'dpotrf'                                             : yes 
checking for function 'dpotrs'                                             : yes 
checking for function 'dpotri'                                             : yes 
checking for function 'dtrtri'                                             : yes 
checking for function 'dtrmm'                                              : yes 
checking for function 'dtrmv'                                              : yes 
checking for function 'dgeqrf'                                             : yes 
checking for function 'dormqr'                                             : yes 
checking for function 'dsyev'                                              : yes 
checking for function 'dgesvd'                                             : yes 
checking for function 'dsymv'                                              : yes 
checking for function 'dgemv'                                              : yes 
checking for function 'dgemm'                                              : yes 
checking for function 'dsyrk'                                              : yes 
checking for function 'dsyr2k'                                             : yes 
checking for function 'daxpy'                                              : yes 
checking for function 'dtrsm'                                              : yes 
checking for function 'dsymm'                                              : yes 
checking for function 'dsyr'                                               : yes 
checking for function 'ddot'                                               : yes 
checking for function 'dsyevd'                                             : yes 
checking for function 'dlamch'                                             : yes 
checking for function 'dsyevr'                                             : yes 
Checking for library ['cfitsio']                                           : yes 
checking for function 'fits_init_cfitsio'                                  : yes 
Python version allows for automatic install                                : yes (3.11.2) 
Checking for program 'python'                                              : /gpfs0/elyk/users/talabadi/anaconda3/envs/cobaya_env/bin/python 
Checking python module 'numpy'                                             : ok 
Checking python module 'astropy'                                           : ok 
Checking for program 'python'                                              : /gpfs0/elyk/users/talabadi/anaconda3/envs/cobaya_env/bin/python 
Checking python module 'cython'                                            : ok 
Checking python module 'cython'                                            : ok 
Checking cython version (>0.28)                                            : 0.29.34 
Checking for program 'cython'                                              : /gpfs0/elyk/users/talabadi/anaconda3/envs/cobaya_env/bin/cython 
Add plugin : 'cibsz'                                                       : ok 
Add plugin : 'basic'                                                       : ok 
Add plugin : 'dust'                                                        : ok 
Add plugin : 'basic_P'                                                     : ok 
Add plugin : 'systematics'                                                 : ok 
Add plugin : 'ffp8'                                                        : ok

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions