Skip to content

Issue with PyInstaller Not Including Cryptodome.xxx~ Module #8143

Answered by rokm
Freerasinbread asked this question in Help
Discussion options

You must be logged in to vote
datas=[(SCRIPTS, "scripts"), (UTILS, "utils")],

Only the python modules that are part of import tree generated from the entry-point script (runner.py) undergo import analysis.

This looks like you have a bunch of .py scripts (that runner.py presumably invokes somehow) in scripts and python code in utils that you smuggle into your frozen application as data files, meaning that no analysis is done on them. So you'll need to deal with all of their imports as hidden imports.

That means listing all required modules (e.g., hiddenimports=['Cryptodome.Random', 'Cryptodome.Hash', ...]) and not just top-level package names - adding top-level package name to hidden imports does not automatically c…

Replies: 1 comment 1 reply

Comment options

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

Answer selected by Freerasinbread
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