-
I am trying to add AppRise specifies plugins in a Just to be sure, I added all sub-modules of AppRise to the But during execution, it fails to find the plugins:
I assume it has to do with paths. So what does AppRise or we have to do to make it work with PyInstaller? CC: @caronc |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
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 Nowadays, the canonical way to do so is to set a = Analysis(
...
module_collection_mode={
'apprise.plugins': 'pyz+py', # or even just 'py'
},
) |
Beta Was this translation helpful? Give feedback.
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: