arun-esh opened a new pull request, #86:
URL: https://github.com/apache/age-website/pull/86
## Issue:
### Won't build if python 3.10 is default version
I have python3.10 as default on my machine.
It won't build docs with python 3.10
### Error I got while setting up with python 3.10
```
(venv) vagrant@vbox:/vagrant/age-website$ sphinx-build docs
build/html/current
Traceback (most recent call last):
File "/vagrant/age-website/venv/bin/sphinx-build", line 5, in <module>
from sphinx.cmd.build import main
File
"/vagrant/age-website/venv/lib/python3.10/site-packages/sphinx/cmd/build.py",
line 25, in <module>
from sphinx.application import Sphinx
File
"/vagrant/age-website/venv/lib/python3.10/site-packages/sphinx/application.py",
line 32, in <module>
from sphinx.config import Config
File
"/vagrant/age-website/venv/lib/python3.10/site-packages/sphinx/config.py", line
21, in <module>
from sphinx.util import logging
File
"/vagrant/age-website/venv/lib/python3.10/site-packages/sphinx/util/__init__.py",
line 41, in <module>
from sphinx.util.typing import PathMatcher
File
"/vagrant/age-website/venv/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'
(/usr/lib/python3.10/types.py)
```
## What I did
I build the environment with `python3.9`.
Installed `python3.9` and `python3.9-venv` as my system.
## Result
With Python3.9, I was able to configure the setup successfully.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]