Description
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 (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
-
Download and unzip source to
%USERPROFILE%\Code\python\Python-3.8.13
(NOTE: I'm notgit clone
ing from GitHubpython/cpython
) -
In Command Prompt, navigate to folder and install external dependencies:
> 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
- Build the debug and PGO binaries
> .\PCbuild\build.bat -p x64 -c Debug
> .\PCbuild\build.bat -p x64 --pgo
- Download the installer external dependencies:
> .\Tools\msi\get_externals.bat
-
Turn on
.NET Framekwork 3.5 Features
inTurn Windows features on or off
. -
Test build (build the installer layout and docs):
> .\Tools\msi\build.bat -x64 --doc > build_log.txt
Log File:
build_log.txt
- Build the release installer
> .\Tools\msi\buildrelease.bat -x64 > buildrelease_log.txt
Log File:
buildrelease_log.txt
In both 6 and 7, the following traceback error is sent to stdout:
Traceback Error:
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
:
> cd %USERPROFILE%\Code\python\Python-3.8.13\externals\pythonx86\tools
> .\python.exe -c 'import jinja2;print(jinja2.__version__)'
3.1.2