Skip to content

GetModuleHandleA(b'python3') returns None #9042

Answered by rokm
BlueAndi asked this question in Help
Discussion options

You must be logged in to vote

If a executable is generated by pyinstaller, the generated .exe provides None, but it shouldn't.

If you don't collect the python3.dll into the frozen application, it is expected to return None, is it not?

That DLL is not collected automatically, unless it is a link-time dependency of some other collected DLL or python extension module. Which is not the case with your sample.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@BlueAndi
Comment options

Answer selected by BlueAndi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants