Skip to content

gh-126929: Retry extension loading with long Windows paths - #156759

Open
Solaris-star wants to merge 1 commit into
python:mainfrom
Solaris-star:fix-gh-126929-long-path-dll-load
Open

gh-126929: Retry extension loading with long Windows paths#156759
Solaris-star wants to merge 1 commit into
python:mainfrom
Solaris-star:fix-gh-126929-long-path-dll-load

Conversation

@Solaris-star

@Solaris-star Solaris-star commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Fixes #126929.

On Windows, retry extension-module loading with a long-path-compatible DLL path when the initial load fails because the path exceeds legacy limits.

The change also adds the required Windows NEWS entry.

Validation performed:

  • git diff --check
  • tracked-secret scan on both changed files
  • commit contains DCO sign-off and an SSH signature

Windows-specific runtime validation was not available locally.

Signed-off-by: Solaris-star <820622658@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

'ImportError: DLL load failed while importing xxxxxxx: The filename or extension is too long' with LongPathsEnabled

1 participant