Running into some nasty issues.
I have a structure like this, installed as a package in the workspace once installed by pip in the venv:
mailman_customizations/ __init__.py hooks.py <-- plugin definition in here as MailmanCustomizations for class name handlers/ __init__.py handlers.py <-- custom handler in here pipelines/ __init__.py pipelines.py <-- custom pipelines which implement the handlers here.
However, whenever I specify this in config with this clause:
[plugin.MailmanCustomizations] class: mailman_customizations.hooks.MailmanCustomizations enabled: no
... I get a hard load error on "ModuleNotFoundError: No module named 'MailmanCustomizations'"
To confirm this is a Python module/class, I did a pure python shell with
from mailman_customizations.hooks import MailmanCustomizations
and it
properly imports that class, so I'm not sure where to go from here in
debugging.
Thomas
On 10/24/23 11:55, Thomas Ward via Mailman-users wrote:
Perfect, that should make things easier for me to install.
Thank you kindly for all your support everyone!
Thomas
On 10/24/23 11:54, Mark Sapiro wrote:
On 10/24/23 8:20 AM, Thomas Ward via Mailman-users wrote:
This means I can install the code to anywhere on
sys.path
that the system can detect and it does not need to be in the Mailman3 library/directory space in the venv?Yes, as long as Mailman can import the class defined for the plugin in mailman.cfg, it will work.
Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-leave@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/ Archived at: https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/...
This message sent to teward@thomas-ward.net