Skip to content
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

Https connection pool error #744

Open
1 task done
bhavyabjb opened this issue Jun 26, 2024 · 2 comments
Open
1 task done

Https connection pool error #744

bhavyabjb opened this issue Jun 26, 2024 · 2 comments
Labels
question A HUB question that does not involve a bug

Comments

@bhavyabjb
Copy link

Search before asking

Question

I trained a classification model on my custom data set in yolov8 and after that i wanted to predict some of my images but i got the following error when i tries running python code in visual studio code :
"requests.exceptions.SSLError: HTTPSConnectionPool(host='api.github.com', port=443): Max retries exceeded with url: /repos/ultralytics/assets/releases/tags/v8.2.0 (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1002)')))" ,,,, what shall i do in this case? How to fix this out?

Additional

No response

@bhavyabjb bhavyabjb added the question A HUB question that does not involve a bug label Jun 26, 2024
Copy link

👋 Hello @bhavyabjb, thank you for raising an issue about Ultralytics HUB 🚀! Please visit our HUB Docs to learn more:

  • Quickstart. Start training and deploying YOLO models with HUB in seconds.
  • Datasets: Preparing and Uploading. Learn how to prepare and upload your datasets to HUB in YOLO format.
  • Projects: Creating and Managing. Group your models into projects for improved organization.
  • Models: Training and Exporting. Train YOLOv5 and YOLOv8 models on your custom datasets and export them to various formats for deployment.
  • Integrations. Explore different integration options for your trained models, such as TensorFlow, ONNX, OpenVINO, CoreML, and PaddlePaddle.
  • Ultralytics HUB App. Learn about the Ultralytics App for iOS and Android, which allows you to run models directly on your mobile device.
    • iOS. Learn about YOLO CoreML models accelerated on Apple's Neural Engine on iPhones and iPads.
    • Android. Explore TFLite acceleration on mobile devices.
  • Inference API. Understand how to use the Inference API for running your trained models in the cloud to generate predictions.

If this is a 🐛 Bug Report, please provide screenshots and steps to reproduce your problem to help us get started working on a fix.

If this is a ❓ Question, please provide as much information as possible, including dataset, model, environment details etc. so that we might provide the most helpful response.

We try to respond to all issues as promptly as possible. Thank you for your patience!

@pderrenger
Copy link
Member

@bhavyabjb hello,

Thank you for reaching out and providing details about the issue you're encountering. The error you're seeing, requests.exceptions.SSLError: HTTPSConnectionPool, typically indicates a problem with SSL certificate verification, which can occur due to various reasons such as network configuration or outdated packages.

To help us better understand and resolve the issue, could you please provide a minimal reproducible example of your code? This will allow us to replicate the problem on our end and offer a more precise solution. You can find guidance on how to create a minimal reproducible example here.

In the meantime, here are a few steps you can take to troubleshoot the issue:

  1. Update Packages: Ensure that you are using the latest versions of all relevant packages, including requests and yolov8. You can update them using pip:

    pip install --upgrade requests yolov8
  2. Verify SSL Certificates: Sometimes, SSL certificate issues can be resolved by updating your system's certificate store. On some systems, you can do this by running:

    pip install --upgrade certifi
  3. Network Configuration: If you are behind a corporate firewall or using a proxy, it might be interfering with SSL verification. You can try setting the REQUESTS_CA_BUNDLE environment variable to point to your certificate bundle:

    export REQUESTS_CA_BUNDLE=/path/to/your/certificate.pem
  4. Bypass SSL Verification: As a temporary workaround, you can bypass SSL verification by setting verify=False in your request. However, this is not recommended for production use due to security risks.

    import requests
    response = requests.get('https://api.github.com/repos/ultralytics/assets/releases/tags/v8.2.0', verify=False)

Please try these steps and let us know if the issue persists. Providing the minimal reproducible example will greatly assist us in diagnosing the problem further.

Thank you for your cooperation, and we look forward to helping you resolve this issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question A HUB question that does not involve a bug
Projects
None yet
Development

No branches or pull requests

2 participants