Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

graalpy -m pip install numpy failed with error: PKIX path building failed #509

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
kuanyan9527 opened this issue May 28, 2025 · 2 comments
Closed

Comments

@kuanyan9527
Copy link

I encountered this error when using the mvn -Pnative package command to package in an intranet environment:

Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: javax.net.ssl.SSLHandshakeException: (certificate_unknown) PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target'))': /download/graalpy-wheels/numpy-1.26.4-graalpy311-graalpy242_311_native-manylinux_2_28_x86_64.whl

I use the following application version:
Java(TM) SE Runtime Environment Oracle GraalVM 24.0.1+9.1
GraalPy 3.11.7 (Oracle GraalVM Native 24.2.1)
Apache Maven 3.6.3

Please how can I solve this problem, thanks.

@msimacek
Copy link
Contributor

Hi @kuanyan9527. It's trying to connect to graalvm.org to get a prebuilt wheel for numpy and your network environment (corporate proxy?) seems to be blocking it or repacking the content. If you haven't, try setting the http_proxy and https_proxy environment variables. If you have a different certificate for the proxied content, you can set PIP_CERT to the certificate bundle. If that doesn't work, you could disable the graalvm.org repository by setting PIP_EXTRA_INDEX=nonexistent, then it would build from source. If you still want to use the prebuilt wheels, but can't get the download to work through the proxy, you can manually download the wheel for your version and platform from https://www.graalvm.org/python/wheels/numpy/ and point the <package> tag to the path of the downloaded wheel.

@kuanyan9527
Copy link
Author

The problem was solved by setting PIP_EXTRA_INDEX=nonexistent, Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants