biovault / nptsne

nptsne is a numpy compatible python binary package that offers a number of APIs for fast tSNE calculation.
Apache License 2.0
32 stars 2 forks source link

On 1.2.0 cmake fails with conan errors #13

Open VPetukhov opened 3 years ago

VPetukhov commented 3 years ago

Hi, I'm trying to install the latest version (1.2.0, bb49bb6aa1bdde4c4e39652e1ae331fecdf2c782). When I run pip install -v -e . it fails with cmake exit status 1. The problem is in the following cmake call:

cmake /home/vpetukhov/build/nptsne  -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/home/vpetukhov/build/nptsne/src/nptsne/libs -DPYTHON_EXECUTABLE=/home/vpetukhov/local/miniconda3/envs/viaduct/bin/python -DCMAKE_BUILD_TYPE=Release -DTEMP_LIBS_DIR=/tmp/cibwlibsdir -DLIBCXX=libstdc++ -DNPTSNE_BUILD_WITH_CONAN=ON

It fails with a certificate error:

ERROR: HTTPSConnectionPool(host='lkeb-artifactory.lumc.nl', port=443): Max retries exceeded with url: /artifactory/api/conan/conan-local/v1/ping (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1123)')))

And if I disable SSL validation with conan remote update conan-biovault https://lkeb-artifactory.lumc.nl/artifactory/api/conan/conan-local False, the new error is:

ERROR: HDILib/1.2.4@lkeb/testing: option 'shared' doesn't exist Possible options are []

Here are full cmake logs for enabled and disabled ssl.

bldrvnlw commented 3 years ago

I'm currently reworking the nptsne build for all platforms but regarding the certificate I can offer a workaround. Our Geant-issued certificate is not recognized by the standard OpenSSL sed in conan.

As a workaround you can open the ~/.conan/cacert.pem and add the certificate chain from the website (the from this):

certchain.txt

VPetukhov commented 3 years ago

I believe that the certificate is not the final problem, as disabling SSL checks doesn't help. So I'll then wait for you to finish the build. Thanks!