Skip to content

Problem getting SSL cert #572

Open
Open
@aweaver1fandm

Description

@aweaver1fandm

Search before asking

  • I have searched the Pytorch-Wildlife issues and found no similar bug report.

Bug

I have a user trying to do some analyses with PytorchWildlife for the first time and they are getting the following error:

Traceback (most recent call last): File "/opt/miniconda3/envs/detector/lib/python3.8/urllib/request.py", line 1317, in do_open h.request(req.get_method(), req.selector, req.data, headers, File "/opt/miniconda3/envs/detector/lib/python3.8/http/client.py", line 1230, in request self._send_request(method, url, body, headers, encode_chunked) File "/opt/miniconda3/envs/detector/lib/python3.8/http/client.py", line 1276, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/opt/miniconda3/envs/detector/lib/python3.8/http/client.py", line 1225, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/opt/miniconda3/envs/detector/lib/python3.8/http/client.py", line 1004, in _send_output self.send(msg) File "/opt/miniconda3/envs/detector/lib/python3.8/http/client.py", line 944, in send self.connect() File "/opt/miniconda3/envs/detector/lib/python3.8/http/client.py", line 1399, in connect self.sock = self._context.wrap_socket(self.sock, File "/opt/miniconda3/envs/detector/lib/python3.8/ssl.py", line 500, in wrap_socket return self.sslsocket_class._create( File "/opt/miniconda3/envs/detector/lib/python3.8/ssl.py", line 1040, in _create self.do_handshake() File "/opt/miniconda3/envs/detector/lib/python3.8/ssl.py", line 1309, in do_handshake self._sslobj.do_handshake() ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)

If I try to run the exact same analyses (same code/commands/etc.) with a user who had previously used PytorchWildlife I don't get that error, it runs fine

Environment

  • PytorchWildlife 1.2.0
  • ca-certificates 2024.12.31
  • ultralytics 8.3.63
  • ultralytics-thop 2.0.14
  • ultralytics-yolov5 0.1.1
  • urllib3 2.2.3
  • Ububtu 24.04.2

Minimal Reproducible Example

No response

Additional

No response

Are you willing to submit a PR?

  • Yes I'd like to help by submitting a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions