nanograv / enterprise

ENTERPRISE (Enhanced Numerical Toolbox Enabling a Robust PulsaR Inference SuitE) is a pulsar timing analysis code, aimed at noise analysis, gravitational-wave searches, and timing model analysis.
https://enterprise.readthedocs.io
MIT License
64 stars 65 forks source link

Readthedocs does not build on github #346

Closed vhaasteren closed 11 months ago

vhaasteren commented 1 year ago

Urllib3 has, as of version 2, dropped support for openssl <1.1.1. Apparently this is a problem for readthedocs on the github/codedev setup. Lots of users are now pinning urllib3 to version < 2. PR #347 does that for Enterprise

Error on github: "docs/readthedocs.org:enterprise — Read the Docs build failed!". Below is the output of running Sphinx. According to the github issue, this is an uncommon situation, but ReadTheDocs builds all over the web are failing.

Running Sphinx v5.3.0

Traceback (most recent call last): File "/home/docs/checkouts/readthedocs.org/user_builds/enterprise/envs/345/lib/python3.7/site-packages/sphinx/registry.py", line 459, in load_extension mod = import_module(extname) File "/home/docs/checkouts/readthedocs.org/user_builds/enterprise/envs/345/lib/python3.7/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1006, in _gcd_import File "", line 983, in _find_and_load File "", line 967, in _find_and_load_unlocked File "", line 677, in _load_unlocked File "", line 728, in exec_module File "", line 219, in _call_with_frames_removed File "/home/docs/checkouts/readthedocs.org/user_builds/enterprise/envs/345/lib/python3.7/site-packages/sphinx/builders/linkcheck.py", line 18, in from requests import Response File "/home/docs/checkouts/readthedocs.org/user_builds/enterprise/envs/345/lib/python3.7/site-packages/requests/init.py", line 43, in import urllib3 File "/home/docs/checkouts/readthedocs.org/user_builds/enterprise/envs/345/lib/python3.7/site-packages/urllib3/init.py", line 39, in "urllib3 v2.0 only supports OpenSSL 1.1.1+, currently " ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with OpenSSL 1.0.2n 7 Dec 2017. See: https://github.com/urllib3/urllib3/issues/2168

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/home/docs/checkouts/readthedocs.org/user_builds/enterprise/envs/345/lib/python3.7/site-packages/sphinx/cmd/build.py", line 280, in build_main args.pdb) File "/home/docs/checkouts/readthedocs.org/user_builds/enterprise/envs/345/lib/python3.7/site-packages/sphinx/application.py", line 219, in init self.setup_extension(extension) File "/home/docs/checkouts/readthedocs.org/user_builds/enterprise/envs/345/lib/python3.7/site-packages/sphinx/application.py", line 398, in setup_extension self.registry.load_extension(self, extname) File "/home/docs/checkouts/readthedocs.org/user_builds/enterprise/envs/345/lib/python3.7/site-packages/sphinx/registry.py", line 463, in load_extension err) from err sphinx.errors.ExtensionError: Could not import extension sphinx.builders.linkcheck (exception: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with OpenSSL 1.0.2n 7 Dec 2017. See: https://github.com/urllib3/urllib3/issues/2168)

Extension error: Could not import extension sphinx.builders.linkcheck (exception: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with OpenSSL 1.0.2n 7 Dec 2017. See: https://github.com/urllib3/urllib3/issues/2168)

vhaasteren commented 11 months ago

This has been fixed upstream