Skip to content

test.pythoninfo fails on Windows in Azure CI #148750

@StanFromIreland

Description

@StanFromIreland

Bug report

Bug description:

From the logs:

.\python.exe -m test.pythoninfo
========================== Starting Command Output ===========================
"C:\Windows\system32\cmd.exe" /D /E:ON /V:OFF /S /C "CALL "D:\a\_temp\6b4b980f-daec-4173-8a8e-2525de58013c.cmd""
WARN: Could not find the platform standard library directory! The Python 'home' directory was set to 'D:\\a\\1\\b\\layout-embed-amd64', is this correct?
ERROR: collect_windows() failed
Traceback (most recent call last):
  File "test\pythoninfo.py", line 1093, in collect_info
  File "test\pythoninfo.py", line 951, in collect_windows
  File "subprocess.py", line 1084, in __init__
LookupError: unknown encoding: oem

Collection failed: exit with error

CPython versions tested on:

CPython main branch

Operating systems tested on:

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-windowstestsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions