Cannot pip install due to [SSL: CERTIFICATE_VERIFY_FAILED]
running install
Attempting to retrieve remote jar https://search.maven.org/remotecontent?filepath=software/amazon/kinesis/amazon-kinesis-client-multilang/2.1.2/amazon-kinesis-client-multilang-2.1.2.jar
Failed to retrieve https://search.maven.org/remotecontent?filepath=software/amazon/kinesis/amazon-kinesis-client-multilang/2.1.2/amazon-kinesis-client-multilang-2.1.2.jar: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)>
Attempting to retrieve remote jar https://search.maven.org/remotecontent?filepath=software/amazon/kinesis/amazon-kinesis-client/2.1.2/amazon-kinesis-client-2.1.2.jar
Failed to retrieve https://search.maven.org/remotecontent?filepath=software/amazon/kinesis/amazon-kinesis-client/2.1.2/amazon-kinesis-client-2.1.2.jar: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)>
Attempting to retrieve remote jar https://search.maven.org/remotecontent?filepath=software/amazon/awssdk/kinesis/2.4.0/kinesis-2.4.0.jar
Failed to retrieve https://search.maven.org/remotecontent?filepath=software/amazon/awssdk/kinesis/2.4.0/kinesis-2.4.0.jar: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)>
Attempting to retrieve remote jar https://search.maven.org/remotecontent?filepath=software/amazon/awssdk/aws-cbor-protocol/2.4.0/aws-cbor-protocol-2.4.0.jar
Failed to retrieve https://search.maven.org/remotecontent?filepath=software/amazon/awssdk/aws-cbor-protocol/2.4.0/aws-cbor-protocol-2.4.0.jar: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)>
Attempting to retrieve remote jar https://search.maven.org/remotecontent?filepath=com/fasterxml/jackson/dataformat/jackson-dataformat-cbor/2.9.8/jackson-dataformat-cbor-2.9.8.jar
Even not work for
pip install --trusted-host maven.org amazon_kclpy
Any luck sorting this out, I've come across the same issue
I spent a day battling this one... was surprised to find this ticket still open.
This is what solved the issue for me. see link
- Open mac os finder, then click Applications —> Python 3.7 folder to expand it. Your python may have a different version. You can find the Install Certificates.command program in the Python 3.7 folder.
- Double click the Install Certificates.command file to run it. It will open another popup terminal window and show below command execution output text.
After that running pip install worked fine
pip install --trusted-host maven.org amazon_kclpy
All the jars present in the package folder as they should be.
ls __init__.py error_prone_annotations-2.7.1.jar netty-codec-http2-4.1.68.Final.jar __pycache__ eventstream-1.0.1.jar netty-common-4.1.68.Final.jar amazon-kinesis-client-2.3.9.jar guava-31.0.1-jre.jar netty-handler-4.1.68.Final.jar amazon-kinesis-client-multilang-2.3.9.jar http-client-spi-2.17.52.jar netty-nio-client-2.17.52.jar animal-sniffer-annotations-1.20.jar httpclient-4.5.13.jar netty-reactive-streams-2.0.5.jar annotations-2.17.52.jar httpcore-4.4.14.jar netty-reactive-streams-http-2.0.5.jar apache-client-2.17.52.jar ion-java-1.5.1.jar netty-resolver-4.1.68.Final.jar auth-2.17.52.jar j2objc-annotations-1.3.jar netty-transport-4.1.68.Final.jar aws-cbor-protocol-2.17.52.jar jackson-annotations-2.12.4.jar netty-transport-native-epoll-4.1.68.Final.jar aws-core-2.17.52.jar jackson-core-2.12.4.jar netty-transport-native-unix-common-4.1.68.Final.jar aws-java-sdk-core-1.12.3.jar jackson-databind-2.12.4.jar profiles-2.17.52.jar aws-java-sdk-sts-1.12.3.jar jackson-dataformat-cbor-2.12.4.jar protobuf-java-3.17.1.jar aws-json-protocol-2.17.52.jar jcommander-1.81.jar protocol-core-2.17.52.jar aws-query-protocol-2.17.52.jar jmespath-java-1.12.3.jar reactive-streams-1.0.3.jar checker-qual-2.5.2.jar joda-time-2.10.10.jar regions-2.17.52.jar cloudwatch-2.17.52.jar json-utils-2.17.52.jar rxjava-2.2.21.jar commons-beanutils-1.9.4.jar jsr305-3.0.2.jar schema-registry-serde-1.1.5.jar commons-codec-1.15.jar kinesis-2.17.52.jar sdk-core-2.17.52.jar commons-collections-3.2.2.jar logback-classic-1.2.7.jar slf4j-api-1.7.30.jar commons-collections4-4.4.jar logback-core-1.2.7.jar sts-2.17.52.jar commons-io-2.9.0.jar metrics-spi-2.17.52.jar third-party-jackson-core-2.17.52.jar commons-lang3-3.12.0.jar netty-buffer-4.1.68.Final.jar third-party-jackson-dataformat-cbor-2.17.52.jar commons-logging-1.2.jar netty-codec-4.1.68.Final.jar utils-2.17.52.jar dynamodb-2.17.52.jar netty-codec-http-4.1.68.Final.jar