On Sat, 11 Nov 2023, at 10:15 PM, Stephen J. Turnbull wrote:
Lars Bjørndal writes:
raise ComponentLookupError(interface, name) zope.interface.interfaces.ComponentLookupError: (<InterfaceClass mailman.interfaces.listmanager.IListManager>, '')
That says that "python scriptname.py" need the IListManager interface but can't find it. You didn't provide enough information to explain why that might be, so I'm not going to guess.
This is mostly because of trying to run script with python scriptname.py
but since it doesn’t initialize the mailman’s zope system.
What you probably want to do is run the script using mailman shell —run
command, which will ensure that it runs the script after initializing the
zope components (and other mailman config and things are initialized too).
-- thanks, Abhilash Raj (maxking)