Skip to content

ImportError: DLL load failed while importing _cache: Access is denied on Windows starting in v0.149.16 (Regression from v0.149.12) #1791

Description

@sammy846

Description:
Environment
OS: Windows 10/11

Python Version: 3.12.12

Package Manager: uv (v0.149.16 fails, v0.149.12 works)

Describe the bug
When upgrading zeroconf to version 0.149.16 on Windows, importing the library fails with an ImportError: DLL load failed while importing _cache: Access is denied. error. Downgrading the package back to 0.149.12 completely resolves the issue, indicating a potential regression introduced in the built C-extensions (_cache.pyd) in the latest release wheel.

Steps to Reproduce
Create/use a Python 3.12 environment on Windows.

Force reinstall version 0.149.16.

Try to import the library via terminal.

uv pip install --force-reinstall "zeroconf==0.149.16"
python -c "import zeroconf"

It appears something changed regarding file tracking, code signing, or how the binary wheels for _cache are compiled/distributed for Windows in the latest iteration.

Metadata

Metadata

Assignees

No one assigned

    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