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
Marshal error passing modulegraph.Alias()
to find_binary_dependencies()
#7515
Comments
modulegraph.Alias()
to modulegraph.Alias()
to find_binary_dependencies()
Maybe just a dumb |
Sounds good. But we should probably do a pyinstaller/PyInstaller/depend/analysis.py Lines 843 to 849 in 7230e8b
(or perhaps even ensure that |
…rings Explicitly convert `node.identifier` to plain `str` to avoid later marshal errors when `node.identifier` happens to be an instance of `modulegraph.Alias`. Fixes pyinstaller#7515.
Description of the issue
Modulegraph has an internal
Alias()
class which simply inherits fromstr()
to label known module name compatibility aliases/redirects. If one of these Alias instances find their way anywhere nearPyInstaller.isolated
then a build error occurs because marshal refuses to serialize them.Context information (for bug reports)
pyinstaller --version
: Anything >= 5.4A minimal example program which shows the error
Simply try to build:
Stacktrace / full error message
PDB-ing into that exception:
The text was updated successfully, but these errors were encountered: