Skip to content

Verify the PyInstaller fix for missing python3t.dll on Windows Python 3.15 #399

Open

Description

@shcheklein

On Windows x64 with standard CPython 3.15.2, PyInstaller 6.22.3 builds the
sample app, but the executable exits on startup while importing
cryptography.hazmat.bindings._rust. PyInstaller reports that it cannot
resolve python3t.dll, which the cryptography 50.0.2 wheel uses.
The CI job on #395 captured both the build warning and the traceback.

PyInstaller has merged a fix that looks for the DLL in CPython's
abi3t-compat directory. Version 6.22.3 was the latest stable release
when this issue was opened. Upstream issue

Once a stable release includes the fix, remove the Windows 3.15 skip in
pydrive2/__pyinstaller/test_hook-googleapiclient.py and run the test on a
Windows x64 runner with standard Python 3.15:

python -m pip install -e '.[fsspec,tests]'
python -m pip install --upgrade pyinstaller
python -m pytest -q pydrive2/__pyinstaller/test_hook-googleapiclient.py

Close this issue when the frozen executable starts and finds the bundled
Drive v3 discovery document (drive.v3.json).

Activity

  1. shcheklein commented on Nov 28, 2026

    @shcheklein
    MemberAuthor

    The upstream DLL fix is merged, but the latest stable PyInstaller on PyPI is still 6.22.3 and predates it. The Windows 3.15 freeze test is explicitly skipped on main, so a green matrix does not verify this case. Upstream fix · Stable release

    Once a stable version includes the fix, remove the Windows 3.15 skip and run the existing hook test on Windows x64 with standard CPython 3.15. The current acceptance check is that the frozen executable starts and finds drive.v3.json after the API migration. Current test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions