Sunday, August 25, 2024
Rocky Linux 9 and Python SSL error
After installing Rocky Linux 9, I ran into the following error:
Could not fetch URL https://pypi.org/simple/wheel/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/wheel/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping ERROR: Could not find a version that satisfies the requirement wheel (from versions: none) ERROR: No matching distribution found for wheel WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Running python3 -m ssl
resulted in the following:
Traceback (most recent call last): File "/home/ibarwick/.pyenv/versions/3.9.16/lib/python3.9/runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "/home/ibarwick/.pyenv/versions/3.9.16/lib/python3.9/runpy.py", line 87, in _run_code exec(code, run_globals) File "/home/ibarwick/.pyenv/versions/3.9.16/lib/python3.9/ssl.py", line 99, in import _ssl # if we can't import it, let the error propagate ImportError: libssl.so.1.1: cannot open shared object file: No such file or directory
Executing dnf provides */"libssl.so.1.1"
reveals that this is provided by the package compat-openssl11
, which is not installed by default. Installing that resolved the issue.
Posted at 8:08 PM |Comments (0)
Post a comment