-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
MAINT Use Python 3.9 for Circle CI job 'doc' #21744
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
MAINT Use Python 3.9 for Circle CI job 'doc' #21744
Conversation
Traceback (most recent call last):
File "/home/circleci/miniconda/envs/testenv/bin/sphinx-build", line 6, in <module>
from sphinx.cmd.build import main
File "/home/circleci/miniconda/envs/testenv/lib/python3.10/site-packages/sphinx/cmd/build.py", line 25, in <module>
from sphinx.application import Sphinx
File "/home/circleci/miniconda/envs/testenv/lib/python3.10/site-packages/sphinx/application.py", line 31, in <module>
from sphinx.config import Config
File "/home/circleci/miniconda/envs/testenv/lib/python3.10/site-packages/sphinx/config.py", line 21, in <module>
from sphinx.util import logging
File "/home/circleci/miniconda/envs/testenv/lib/python3.10/site-packages/sphinx/util/__init__.py", line 41, in <module>
from sphinx.util.typing import PathMatcher
File "/home/circleci/miniconda/envs/testenv/lib/python3.10/site-packages/sphinx/util/typing.py", line 37, in <module>
from types import Union as types_Union
ImportError: cannot import name 'Union' from 'types' (/home/circleci/miniconda/envs/testenv/lib/python3.10/types.py)
make: *** [Makefile:53: html-noplot] Error 1 It looks like a bug in sphinx that is not yet 100% ready for Python 3.10. |
The circle ci builds are all green. Feel free to make "read for review" / merge @jjerphan. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it does make sense to ping this here actually, thanks @jjerphan
We should have a document where we list the things we need to do to add support for a newly released python. Changing this is now one of them. |
Reference Issues/PRs
Several PRs, e.g. #18139 and #21341
What does this implement/fix? Explain your changes.
The
doc
job sometimes fails on Circle CI (e.g https://app.circleci.com/pipelines/github/scikit-learn/scikit-learn/20372/workflows/ea9b8ea7-3a40-4987-bdab-03e90512e8f2/jobs/163634?invite=true#step-105-2111, e.g. https://app.circleci.com/pipelines/github/scikit-learn/scikit-learn/20310/workflows/25087498-3650-41fe-95c9-1a84de0af8e1/jobs/163379)It seems that this is due to some problems on Python 3.10.
The minor version of Python 3 to use is not specified.
This PR proposes pinning the version of Python 3 to use to 3.9 for Circle CI, solving those problems.