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

Could not import extension sphinx.builders.linkcheck (exception: urllib3 v2.0 only supports OpenSSL 1.1.1+) #10290

Closed
stereoshoots opened this issue May 4, 2023 · 21 comments · Fixed by polybar/polybar#2957
Labels
Accepted Accepted issue on our roadmap Bug A bug

Comments

@stereoshoots
Copy link

Details

Expected Result

New revision of docs should be builded.

Actual Result

Error is thrown:

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)

Is this a problem on my side? It installs pip packages in build, how should i fix this?

@stsewd
Copy link
Member

stsewd commented May 4, 2023

Hi, this is because urlib3 was released yesterday, and that version isn't compatible with the docker image you are using. To use a more recent version of our docker images, please use a config file (https://docs.readthedocs.io/en/stable/config-file/v2.html), or pin urllib3 in your requirements to a previous version.

Edit: projects should use a configuration file and leave urllib3 unpinned

@stsewd stsewd added the Support Support question label May 4, 2023
@agjohnson
Copy link
Contributor

agjohnson commented May 4, 2023

More specifically, you should use a configuration file that that specifies the build OS.

That is, add a .readthedocs.yaml file in your repository root:

version: 2

build:
  os: ubuntu-22.04
  tools:
    python: "3.11"

This will ensure you are not using one of the older images.

Edit: updated to mention build.tools

moi90 added a commit to moi90/morphocut that referenced this issue May 4, 2023
moi90 added a commit to morphocut/morphocut that referenced this issue May 4, 2023
moi90 added a commit to saeedehsp/morphocut that referenced this issue May 4, 2023
joshuacwnewton added a commit to spinalcordtoolbox/spinalcordtoolbox that referenced this issue May 4, 2023
@sethmlarson
Copy link

sethmlarson commented May 4, 2023

@stsewd I suspect this issue will get a lot of traffic, if possible could the correct answer w/ example of upgrading to build.os: ubuntu-22.04 instead of pinning urllib3 be elevated to the first reply. I suspect folks may be looking for quick solutions to this incompatibility and I'd like people to keep urllib3 unpinned if it's not blocked by anything else in their environment.

@agjohnson
Copy link
Contributor

@sethmlarson Thanks for the note, I'd agree the configuration fix should be the recommended fix. I'll edit the guidance above.

It seems like we're probably going to aim to get some sort of fix out here, as this is causing a bit of trouble for folks. It seems the trouble is an old pyenv compiled Python in an image we're trying to deprecate, but should be something we can fix.

Unfortunately, we're going into Write the Docs conference time, so we haven't settled on a timeframe yet.

@agjohnson agjohnson changed the title Project fails to build Could not import extension sphinx.builders.linkcheck (exception: urllib3 v2.0 only supports OpenSSL 1.1.1+) May 4, 2023
@agjohnson agjohnson added Bug A bug Accepted Accepted issue on our roadmap and removed Support Support question labels May 4, 2023
@agjohnson agjohnson pinned this issue May 4, 2023
@agjohnson
Copy link
Contributor

Also, I opened an issue yesterday for updating and fixing the legacy build image:
readthedocs/readthedocs-docker-images#194

We'll track updating and fixing the image there. I'll see what I can do today and tomorrow

rgtjf pushed a commit to X-PLUG/ChatPLUG that referenced this issue May 15, 2023
rgtjf pushed a commit to X-PLUG/ChatPLUG that referenced this issue May 15, 2023
rgtjf pushed a commit to X-PLUG/ChatPLUG that referenced this issue May 15, 2023
rgtjf pushed a commit to X-PLUG/ChatPLUG that referenced this issue May 15, 2023
rgtjf pushed a commit to X-PLUG/ChatPLUG that referenced this issue May 15, 2023
rgtjf pushed a commit to X-PLUG/ChatPLUG that referenced this issue May 15, 2023
openshift-cherrypick-robot pushed a commit to openshift-cherrypick-robot/volsync that referenced this issue May 15, 2023
See: readthedocs/readthedocs.org#10290

Signed-off-by: Tesshu Flower <tflower@redhat.com>
daniloegea added a commit to canonical/netplan that referenced this issue May 17, 2023
The RTD build is failing due to a new version of urllib3. According to
[1], this change should fix the problem.

[1] - readthedocs/readthedocs.org#10290
timbru pushed a commit to NLnetLabs/krill-manual that referenced this issue May 22, 2023
@benjaoming benjaoming unpinned this issue May 22, 2023
bfabio added a commit to publiccodeyml/publiccode.yml that referenced this issue May 23, 2023
The preview build fails because of
readthedocs/readthedocs.org#10290,
let's pin urllib3 to workaround that.
bfabio added a commit to publiccodeyml/publiccode.yml that referenced this issue May 23, 2023
The preview build fails because of
readthedocs/readthedocs.org#10290,
let's pin urllib3 to workaround that.
nquesada added a commit to XanaduAI/thewalrus that referenced this issue May 31, 2023
* Refactor sphinx config and bump docs python version (#364)

* fix [.readthedocs.yml] - increase python version

Fixes urllib3 v2.0 not supporting versions <1.1.1 of openSSL. See readthedocs/readthedocs.org#10290.

* fix [.readthedocs.yml] - set container image and python version

* unpin doc requirements

* Update decompositions.py and readds the Takagi decomposition (#363)

* Update decompositions.py

* New takagi

* New takagi

* Passes black

* Simplifies blochmessiah

* Simplifies blochmessiah

* Found a case that breaks Takagi

* Fixes all the tests

* Fixes issues found by the linter

* Adds extra test

* Adds extra test

* dummy

* dummy

* fix [.readthedocs.yml] - increase python version

Fixes urllib3 v2.0 not supporting versions <1.1.1 of openSSL. See readthedocs/readthedocs.org#10290.

* fix [.readthedocs.yml] - set container image and python version

* unpin doc requirements

* Revert "fix [.readthedocs.yml] - increase python version"

This reverts commit db0e8d7.

---------

Co-authored-by: Nicolas Quesada <nquesada@pop-os.localdomain>
Co-authored-by: Sebastián Duque Mesa <675763+sduquemesa@users.noreply.github.com>

* Dummy commit

* Passes black

* linting

* Updates module summary

---------

Co-authored-by: Sebastián Duque Mesa <675763+sduquemesa@users.noreply.github.com>
Co-authored-by: Nicolas Quesada <nquesada@pop-os.localdomain>
lb- added a commit to lb-/sphinx_wagtail_theme that referenced this issue Jul 14, 2023
lb- added a commit to lb-/sphinx_wagtail_theme that referenced this issue Jul 14, 2023
bfabio added a commit to italia/docs-italia-template that referenced this issue Jan 17, 2024
The preview build fails because of
readthedocs/readthedocs.org#10290, let's pin urllib3 to workaround that.
bfabio added a commit to italia/design-musei-docs that referenced this issue Jan 17, 2024
The preview build fails because of
readthedocs/readthedocs.org#10290, let's pin urllib3 to workaround that.
bfabio added a commit to italia/docs-italia-template that referenced this issue Jan 17, 2024
The preview build fails because of
readthedocs/readthedocs.org#10290, let's pin urllib3 to workaround that.
bfabio added a commit to italia/docs-italia-template that referenced this issue Jan 17, 2024
The preview build fails because of
readthedocs/readthedocs.org#10290, let's pin urllib3 to workaround that.
hafu pushed a commit to Freifunk-Potsdam/gluon that referenced this issue Jun 2, 2024
Docs builds currently fail with

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: urllib3/urllib3#2168)

The Gluon issuetracker suggests specifying the build-container.

Link: readthedocs/readthedocs.org#10290 (comment)

Signed-off-by: David Bauer <mail@david-bauer.net>
ninarobbins pushed a commit to ninarobbins/pydropsonde that referenced this issue Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accepted Accepted issue on our roadmap Bug A bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.