Skip to content

Not collecting sub-modules #8446

Answered by rokm
Safihre asked this question in Help
May 3, 2024 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

It has to do the with the fact that plugins are discovered by listing the directory contents, while in PyInstaller-frozen build those plugin modules are in the PYZ archive.

You can work around it by ensuring that contents of apprise.plugins are collected as .py files as well.

Nowadays, the canonical way to do so is to set module_collection_mode, which you can do either in a hook or in the spec file:

a = Analysis(
    ...
    module_collection_mode={
        'apprise.plugins': 'pyz+py',  # or even just 'py'
    },
)

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Safihre
Comment options

@rokm
Comment options

@Safihre
Comment options

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