Skip to content

x/build: LUCI swarming bot works with Python 3.13 but not Python 3.14 due to reliance on removed pkgutil.get_loader #80220

Description

@n2vi

Go version

I use go1.27rc1 there, but this is probably not about Go. Python reports 3.14.4.

Output of go env in your module/workspace:

not relevant?

What did you do?

I tried to start the builder as usual.

What did you see happen?

2026/06/28 18:16:31 Downloading the swarming bot 2026/06/28 18:16:33 Starting the swarming bot /home/swarming/.swarming/swarming_bot.zip Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/home/swarming/.swarming/swarming_bot.zip/__main__.py", line 31, in THIS_FILE = os.path.abspath(zip_package.get_main_script_path()) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/home/swarming/.swarming/swarming_bot.zip/utils/zip_package.py", line 238, in get_main_script_path path = get_module_zip_archive(main) File "/home/swarming/.swarming/swarming_bot.zip/utils/zip_package.py", line 217, in get_module_zip_archive loader = pkgutil.get_loader(module) ^^^^^^^^^^^^^^^^^^ AttributeError: module 'pkgutil' has no attribute 'get_loader' 2026/06/28 18:16:33 command execution /usr/local/bin/python3 /home/swarming/.swarming/swarming_bot.zip start_bot: exit status 1

What did you expect to see?

pkgutil.get_loader was deprecated a while ago and apparently was removed in Python 3.14. Has LUCI already been updated but my builder machine is not getting the update, or is this an update needed in LUCI?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Buildersx/build issues (builders, bots, dashboards)NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions