Skip to content

buildrelease.bat fails with cannot find python3813.chm on Windows 10 #92738

Closed
@adam-grant-hendry

Description

@adam-grant-hendry

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

  1. Download and unzip source to %USERPROFILE%\Code\python\Python-3.8.13 (NOTE: I'm not git cloneing from GitHub python/cpython)

  2. 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

  1. Build the debug and PGO binaries
> .\PCbuild\build.bat -p x64 -c Debug
> .\PCbuild\build.bat -p x64 --pgo
  1. Download the installer external dependencies:
> .\Tools\msi\get_externals.bat
  1. Turn on .NET Framekwork 3.5 Features in Turn Windows features on or off.

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

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

Log File:
build_log.txt

  1. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions