Skip to content

MailmanClient.__init__() takes from 2 to 4 positional arguments but 5 were given

I'm getting the following error with version 1.3.6.

Traceback (most recent call last):
  File "/opt/mailman/venv/lib/python3.9/site-packages/django/core/handlers/exception.py", line 34, in inner
    response = get_response(request)
  File "/opt/mailman/venv/lib/python3.9/site-packages/django/core/handlers/base.py", line 115, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/opt/mailman/venv/lib/python3.9/site-packages/django/core/handlers/base.py", line 113, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/opt/mailman/venv/lib/python3.9/site-packages/postorius/views/list.py", line 864, in list_index
    return list_index_authenticated(request)
  File "/opt/mailman/venv/lib/python3.9/site-packages/django/contrib/auth/decorators.py", line 21, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "/opt/mailman/venv/lib/python3.9/site-packages/postorius/views/list.py", line 814, in list_index_authenticated
    client = get_mailman_client()
  File "/opt/mailman/venv/lib/python3.9/site-packages/django_mailman3/lib/mailman.py", line 64, in get_mailman_client
    client = MailmanClient(

Exception Type: TypeError at /mailman3/lists/
Exception Value: __init__() takes from 2 to 4 positional arguments but 5 were given
Request information:

I believe that to fix that, one needs an unreleased version of mailmanclient because the required changes were introduced after the 3.3.2 release, which is currently the latest one. In other words, dependencies in setup.py are not correctly specified.