8000 MAINT Use Python 3.9 for Circle CI job 'doc' by jjerphan · Pull Request #21744 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

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

Merged

Conversation

jjerphan
Copy link
Member
@jjerphan jjerphan commented Nov 22, 2021

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.

@jjerphan jjerphan changed the title MAINT Specify to use Python 3.9 for Circle CI job 'doc' MAINT Use Python 3.9 for Circle CI job 'doc' Nov 22, 2021
@ogrisel
Copy link
Member
ogrisel commented Nov 22, 2021
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.

@ogrisel
Copy link
Member
ogrisel commented Nov 22, 2021

The circle ci builds are all green. Feel free to make "read for review" / merge @jjerphan.

@jjerphan jjerphan marked this pull request as ready for review November 22, 2021 19:09
Copy link
Member
@adrinjalali adrinjalali left a 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

@adrinjalali adrinjalali merged commit a278f2a into scikit-learn:main Nov 22, 2021
@adrinjalali
Copy link
Member

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.

@jjerphan jjerphan deleted the ci/specify-py3-version-circle-ci branch November 22, 2021 22:14
glemaitre pushed a commit to glemaitre/scikit-learn that referenced this pull request Nov 29, 2021
samronsin pushed a commit to samronsin/scikit-learn that referenced this pull request Nov 30, 2021
glemaitre pushed a commit to glemaitre/scikit-learn that referenced this pull request Dec 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0