Skip to content

Python 3.7 recently broken (no _bz2 module) on macOS 13 #682

Closed
@gsnedders

Description

@gsnedders

Description

Recently (i.e., since last week), we've started seeing a number of Python 3.7 tasks failing with:

../manifest/download.py:2: in <module>
    import bz2
/Users/runner/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/bz2.py:19: in <module>
    from _bz2 import BZ2Compressor, BZ2Decompressor
E   ModuleNotFoundError: No module named '_bz2'

Presumably something in the new image caused CPython to fail to compile the _bz2 module?

Platforms affected

  • Azure DevOps
  • GitHub Actions - Standard Runners
  • GitHub Actions - Larger Runners

Runner images affected

  • Ubuntu 20.04
  • Ubuntu 22.04
  • macOS 11
  • macOS 12
  • macOS 13
  • Windows Server 2019
  • Windows Server 2022

Image version and build link

20230611.2

https://dev.azure.com/web-platform-tests/wpt/_build/results?buildId=102338&view=logs&jobId=cd4b0752-91ac-5ee3-1416-93dd445ec171&j=5eb1b5a9-6d44-5065-06d8-b95593136516&t=2324b04f-e597-4527-9bcd-b3f55a7684b6

Is it regression?

20230524.1

Expected behavior

The Python 3.7 _bz2 module to be installed.

Actual behavior

The Python 3.7 _bz2 module is not installed.

Repro steps

python3.7 -c 'import bz2'

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions