Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

building: fix marshal error during DLL search path extension #8086

Merged
merged 1 commit into from
Nov 8, 2023

Conversation

rokm
Copy link
Member

@rokm rokm commented Nov 8, 2023

Explicitly convert all DLL search paths obtained via capture of the os.add_dll_directory calls to strings. The add_dll_directory might be called with pathlib.Path paths, which cannot be marshalled out of the child process in which we import packages and track the search path modifications.

Fixes #8081.

Explicitly convert all DLL search paths obtained via
capture of the `os.add_dll_directory` calls to strings. The
`add_dll_directory` might be called with `pathlib.Path` paths,
which cannot be marshalled out of the child process in which
we import packages and track the search path modifications.
@rokm rokm enabled auto-merge (rebase) November 8, 2023 20:16
@rokm rokm merged commit 13de107 into pyinstaller:develop Nov 8, 2023
18 checks passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 8, 2024
@rokm rokm deleted the fix-8081 branch March 7, 2024 12:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Marshal error of WindowsPath in find_binary_dependencies()
2 participants