New GitHub issue #92738 from adam-grant-hendry:<br>

<hr>

<pre>
**Bug report**

On Windows 10, for Python 3.8.13, building a release installer fails because it cannot find `python3813.chm` file. This help file is unavailable on the [Python Downloads Page](https://www.python.org/downloads/windows/) (_Perhaps because this is a security fix? Last release with Windows help file was 3.8.10._)

I'm not sure how to fix this from the included `README` files to make the `.msi` installer.

**Environment**

- CPython: 3.8.13
- OS and Architecture: Windows 10, x86_64 (amd64), build 19042.1586 (version 20H2)
- Editor: Visual Studio 2019 Community, Python development workload, Python native development tools
- Terminal: Command Prompt

**MRE**

1. Download and unzip [source](https://www.python.org/downloads/release/python-3813/) to `%USERPROFILE%\Code\python\Python-3.8.13` (**NOTE:** I'm not `git clone`ing from GitHub `python/cpython`)

2. In Command Prompt, navigate to folder and install external dependencies:

```cmd
> cd %USERPROFILE%\Code\python\Python-3.8.13
> .\PCbuild\get_externals.bat
```

**NOTE:** `nuget` installs `python3.10.4` even if I use `--python 3.8`

3. Build the debug and PGO binaries

```cmd
> .\PCbuild\build.bat -p x64 -c Debug
> .\PCbuild\build.bat -p x64 --pgo
```

4. Download the installer external dependencies:

```cmd
> .\Tools\msi\get_externals.bat
```

5. Turn on `.NET Framekwork 3.5 Features` in `Turn Windows features on or off`.

6. Test build (build the installer layout and docs):

```cmd
> .\Tools\msi\build.bat -x64 --doc > build_log.txt
```

**Log File:** 
[build_log.txt](https://github.com/python/cpython/files/8681045/build_log.txt)

7. Build the release installer

```cmd
> .\Tools\msi\buildrelease.bat -x64 > buildrelease_log.txt
```

**Log File:**
[buildrelease_log.txt](https://github.com/python/cpython/files/8681137/buildrelease_log.txt)

In both 6 and 7, the following traceback error is sent to stdout:

**Traceback Error:**
```python
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\hendra11\Code\python\Python-3.8.13\externals\pythonx86\tools\lib\site-packages\sphinx\cmd\build.py", line 23, in <module>
    from sphinx.application import Sphinx
  File "C:\Users\hendra11\Code\python\Python-3.8.13\externals\pythonx86\tools\lib\site-packages\sphinx\application.py", line 34, in <module>
    from sphinx.highlighting import lexer_classes, lexers
  File "C:\Users\hendra11\Code\python\Python-3.8.13\externals\pythonx86\tools\lib\site-packages\sphinx\highlighting.py", line 27, in <module>
    from sphinx.ext import doctest
  File "C:\Users\hendra11\Code\python\Python-3.8.13\externals\pythonx86\tools\lib\site-packages\sphinx\ext\doctest.py", line 28, in <module>
    from sphinx.builders import Builder
  File "C:\Users\hendra11\Code\python\Python-3.8.13\externals\pythonx86\tools\lib\site-packages\sphinx\builders\__init__.py", line 24, in <module>
    from sphinx.io import read_doc
  File "C:\Users\hendra11\Code\python\Python-3.8.13\externals\pythonx86\tools\lib\site-packages\sphinx\io.py", line 33, in <module>
    from sphinx.util.rst import append_epilog, docinfo_re, prepend_prolog
  File "C:\Users\hendra11\Code\python\Python-3.8.13\externals\pythonx86\tools\lib\site-packages\sphinx\util\rst.py", line 22, in <module>
    from jinja2 import environmentfilter
ImportError: cannot import name 'environmentfilter' from 'jinja2' (C:\Users\hendra11\Code\python\Python-3.8.13\externals\pythonx86\tools\lib\site-packages\jinja2\__init__.py)
```

**NOTE:** `jinja2` version is `3.1.2`:

```cmd
> cd %USERPROFILE%\Code\python\Python-3.8.13\externals\pythonx86\tools
> .\python.exe -c 'import jinja2;print(jinja2.__version__)'
3.1.2
```
</pre>

<hr>

<a href="https://github.com/python/cpython/issues/92738">View on GitHub</a>
<p>Labels: type-bug</p>
<p>Assignee: </p>