python*: the SSL module does not work properly ([SSL: CERTIFICATE_VERIFY_FAILED])

Vadim-Valdis Yudaev judaew at macports.org
Mon Feb 7 13:15:36 UTC 2022


Hi,

Python seems to depend on curl-ca-bundle. Without this port, the SSL module does not work properly. This can be reproduced with urllib:

{{{
port deactivate curl-ca-bundle
python3.10 -c 'from urllib.request import urlopen; urlopen("https://www.python.org")'
}}}

Due to this bug, kitty for `kitty +kitten themes` does not work correctly.

See https://trac.macports.org/ticket/64604 and https://github.com/kovidgoyal/kitty/issues/4628

I also found a similar issue with Python for Ubuntu: https://bugs.launchpad.net/ubuntu/+source/python3.6/+bug/1879310

Should curl-ca-bundle port be added as a Python dependency?

- Yudaev


More information about the macports-dev mailing list