AttributeError: 'MailingList' object has no attribute 'get_requests_count'
Hi Team,
I am currently running Mailman 3 with version 3.3.2rc2 and in
built postfix version 2.10.1-6 on RHEL 7.5 with PostgreSQL 11.9 version with default values. As of now, we don't have any lists and just installed software components only.
After the installation and configuration, I have tried
creating the domains and lists. I was successful in creating them but when I tried to login and browse the lists using LDAP authentication, I am getting the "Mailman REST API not available. Restart Mailman core".
I see the below trace in the mailmansuite.log.
*Traceback (most recent call last): File "/var/lib/mailman/venv3/lib64/python3.6/site-packages/mailmanclient/restbase/base.py", line 119, in __getattr__ return self._get(name) File "/var/lib/mailman/venv3/lib64/python3.6/site-packages/mailmanclient/restbase/base.py", line 86, in _get raise KeyError(key)KeyError: 'get_requests_count'During handling of the above exception, another exception occurred:Traceback (most recent call last): File "/var/lib/mailman/venv3/lib64/python3.6/site-packages/django/core/handlers/exception.py", line 34, in inner response = get_response(request) File "/var/lib/mailman/venv3/lib64/python3.6/site-packages/django/core/handlers/base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "/var/lib/mailman/venv3/lib64/python3.6/site-packages/django/core/handlers/base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/var/lib/mailman/venv3/lib64/python3.6/site-packages/django/views/generic/base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "/var/lib/mailman/postorius/src/postorius/views/generic.py", line 74, in dispatch return super(MailingListView, self).dispatch(request, *args, **kwargs) File "/var/lib/mailman/venv3/lib64/python3.6/site-packages/django/views/generic/base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "/var/lib/mailman/postorius/src/postorius/views/list.py", line 311, in get return render(request, 'postorius/lists/summary.html', data) File "/var/lib/mailman/venv3/lib64/python3.6/site-packages/django/shortcuts.py", line 19, in render content = loader.render_to_string(template_name, context, request, using=using) File "/var/lib/mailman/venv3/lib64/python3.6/site-packages/django/template/loader.py", line 62, in render_to_string return template.render(context, request) File "/var/lib/mailman/venv3/lib64/python3.6/site-packages/django/template/backends/django.py", line 61, in render return self.template.render(context) File "/var/lib/mailman/venv3/lib64/python3.6/site-packages/django/template/base.py", line 171, in render return self._render(context) File "/var/lib/mailman/venv3/lib64/python3.6/site-packages/django/template/base.py", line 163, in _render return self.nodelist.render(context) File "/var/lib/mailman/venv3/lib64/python3.6/site-packages/django/template/base.py", line 936, in render bit = node.render_annotated(context) File "/var/lib/mailman/venv3/lib64/python3.6/site-packages/django/template/base.py", line 903, in render_annotated return self.render(context) File "/var/lib/mailman/venv3/lib64/python3.6/site-packages/django/template/loader_tags.py", line 150, in render return compiled_parent._render(context) File "/var/lib/mailman/venv3/lib64/python3.6/site-packages/django/template/base.py", line 163, in _render return self.nodelist.render(context) File "/var/lib/mailman/venv3/lib64/python3.6/site-packages/django/template/base.py", line 936, in render bit = node.render_annotated(context) File "/var/lib/mailman/venv3/lib64/python3.6/site-packages/django/template/base.py", line 903, in render_annotated return self.render(context) File "/var/lib/mailman/venv3/lib64/python3.6/site-packages/django/template/loader_tags.py", line 62, in render result = block.nodelist.render(context) File "/var/lib/mailman/venv3/lib64/python3.6/site-packages/django/template/base.py", line 936, in render bit = node.render_annotated(context) File "/var/lib/mailman/venv3/lib64/python3.6/site-packages/django/template/base.py", line 903, in render_annotated return self.render(context) File "/var/lib/mailman/venv3/lib64/python3.6/site-packages/django/template/library.py", line 234, in render return t.render(new_context) File "/var/lib/mailman/venv3/lib64/python3.6/site-packages/django/template/base.py", line 173, in render return self._render(context) File "/var/lib/mailman/venv3/lib64/python3.6/site-packages/django/template/base.py", line 163, in _render return self.nodelist.render(context) File "/var/lib/mailman/venv3/lib64/python3.6/site-packages/django/template/base.py", line 936, in render bit = node.render_annotated(context) File "/var/lib/mailman/venv3/lib64/python3.6/site-packages/django/template/base.py", line 903, in render_annotated return self.render(context) File "/var/lib/mailman/venv3/lib64/python3.6/site-packages/django/template/defaulttags.py", line 309, in render return nodelist.render(context) File "/var/lib/mailman/venv3/lib64/python3.6/site-packages/django/template/base.py", line 936, in render bit = node.render_annotated(context) File "/var/lib/mailman/venv3/lib64/python3.6/site-packages/django/template/base.py", line 903, in render_annotated return self.render(context) File "/var/lib/mailman/venv3/lib64/python3.6/site-packages/django/template/defaulttags.py", line 309, in render return nodelist.render(context) File "/var/lib/mailman/venv3/lib64/python3.6/site-packages/django/template/base.py", line 936, in render bit = node.render_annotated(context) File "/var/lib/mailman/venv3/lib64/python3.6/site-packages/django/template/base.py", line 903, in render_annotated return self.render(context) File "/var/lib/mailman/venv3/lib64/python3.6/site-packages/django/template/base.py", line 986, in render output = self.filter_expression.resolve(context) File "/var/lib/mailman/venv3/lib64/python3.6/site-packages/django/template/base.py", line 697, in resolve new_obj = func(obj, *arg_vals) File "/var/lib/mailman/postorius/src/postorius/templatetags/nav_helpers.py", line 80, in pending_subscriptions return mlist.get_requests_count(token_owner='moderator') File "/var/lib/mailman/venv3/lib64/python3.6/site-packages/mailmanclient/restbase/base.py", line 124, in __getattr__ self.__class__.__name__, name))AttributeError: 'MailingList' object has no attribute 'get_requests_count'ERROR 2020-10-25 19:29:46,101 835 django.server "GET /postorius/lists/mailteamhyd.dlist.nic.in/ <http://mailteamhyd.dlist.nic.in/> HTTP/1.1" 500 1162*
I don't see any error messages in the mailman.log. And I
also executed a few curl commands in getting the details of the lists created and list info which I got their results successfully.
Could you please guide where exactly I am missing or do I
need to make any changes in my customizations ?
-- Thanks & Regards, Shashi Kanth.K 9052671936
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> Virus-free. www.avast.com <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
On 10/25/20 8:22 AM, Shashikanth Komandoor wrote:
Hi Team,
I am currently running Mailman 3 with version 3.3.2rc2 and in
built postfix version 2.10.1-6 on RHEL 7.5 with PostgreSQL 11.9 version with default values. As of now, we don't have any lists and just installed software components only.
After the installation and configuration, I have tried
creating the domains and lists. I was successful in creating them but when I tried to login and browse the lists using LDAP authentication, I am getting the "Mailman REST API not available. Restart Mailman core".
I see the below trace in the mailmansuite.log.
*Traceback (most recent call last): File "/var/lib/mailman/venv3/lib64/python3.6/site-packages/mailmanclient/restbase/base.py", line 119, in __getattr__ return self._get(name) File "/var/lib/mailman/venv3/lib64/python3.6/site-packages/mailmanclient/restbase/base.py", line 86, in _get raise KeyError(key)KeyError: 'get_requests_count
...
I don't see any error messages in the mailman.log. And I
also executed a few curl commands in getting the details of the lists created and list info which I got their results successfully.
Could you please guide where exactly I am missing or do I
need to make any changes in my customizations ?
I think the issue is your mailmanclient is too old. The version of Postorius you are running requires mailmanclient >3.3.1 which is only available from GitLab <https://gitlab.com/mailman/mailmanclient>.
What version of Postorius is this? It appears to be >1.3.3. If you install Postorius from unreleased code on GitLab, you have to install all of mailman, mailmanclient and django-mailman3 as well.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Hi Mark,
Thank you very much for your response.
I understood myself as quite ignorant even to find out the
versions of each of the component.
But my "mailman info" output looks like the below:
*(venv3) [root@dlist-lsmgr mailman]# mailman info* *GNU Mailman 3.3.2rc2 (Tom Sawyer)* *Python 3.6.8 (default, Aug 10 2019, 06:54:07)* *[GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]* *config file: /var/lib/mailman/mailman/var/etc/mailman.cfg* *db url: postgres://<username>:<password>@127.0.0.1/mailman* *devmode: DISABLED* *REST root url: http://localhost:8001/3.1/ <http://localhost:8001/3.1/>* *REST credentials: restadmin:restpass* *(venv3) [root@dlist-lsmgr mailman]# pwd* */var/lib/mailman/mailman*
How to find out the versions of the each and every component of
the mailman 3 like mailman core, mailmancilent, postorius, hyperikitty, mailman-hyperkitty, django-mailman3, mailman-suite and so, after installation?
If I am running an old mailmanclient or older version of any
other mailman component, please suggest how to upgrade either one or multiple components based on the requirement. Is there any link that would help me to upgrade ?
I have used the link
https://docs.mailman3.org/en/latest/devsetup.html to install the mailman 3 components. I expected that the procedure followed in this link would install the latest versions of the mailman 3 components. Please correct me if I am wrong. Is there any latest version compatibility table ?
Also please suggest me an URL that would install the latest
versions of mailman 3 components and allow me to do customizations related to our domain.
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> Virus-free. www.avast.com <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
On Mon, Oct 26, 2020 at 4:16 AM Mark Sapiro <mark@msapiro.net> wrote:
On 10/25/20 8:22 AM, Shashikanth Komandoor wrote:
Hi Team,
I am currently running Mailman 3 with version 3.3.2rc2 and
in built postfix version 2.10.1-6 on RHEL 7.5 with PostgreSQL 11.9 version with default values. As of now, we don't have any lists and just installed software components only.
After the installation and configuration, I have tried
creating the domains and lists. I was successful in creating them but when I tried to login and browse the lists using LDAP authentication, I am getting the "Mailman REST API not available. Restart Mailman core".
I see the below trace in the mailmansuite.log.
*Traceback (most recent call last): File
"/var/lib/mailman/venv3/lib64/python3.6/site-packages/mailmanclient/restbase/base.py",
line 119, in __getattr__ return self._get(name) File
"/var/lib/mailman/venv3/lib64/python3.6/site-packages/mailmanclient/restbase/base.py",
line 86, in _get raise KeyError(key)KeyError: 'get_requests_count ...
I don't see any error messages in the mailman.log. And I
also executed a few curl commands in getting the details of the lists created and list info which I got their results successfully.
Could you please guide where exactly I am missing or do I
need to make any changes in my customizations ?
I think the issue is your mailmanclient is too old. The version of Postorius you are running requires mailmanclient >3.3.1 which is only available from GitLab <https://gitlab.com/mailman/mailmanclient>.
What version of Postorius is this? It appears to be >1.3.3. If you install Postorius from unreleased code on GitLab, you have to install all of mailman, mailmanclient and django-mailman3 as well.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
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/
-- Thanks & Regards, Shashi Kanth.K 9052671936
On 10/26/20 6:10 PM, Shashikanth Komandoor wrote:
How to find out the versions of the each and every component
of the mailman 3 like mailman core, mailmancilent, postorius, hyperikitty, mailman-hyperkitty, django-mailman3, mailman-suite and so, after installation?
cd to the directory in which you cloned the gitlab project for the
component and do git log
If I am running an old mailmanclient or older version of any
other mailman component, please suggest how to upgrade either one or multiple components based on the requirement. Is there any link that would help me to upgrade ?
I have used the
link https://docs.mailman3.org/en/latest/devsetup.html to install the mailman 3 components. I expected that the procedure followed in this link would install the latest versions of the mailman 3 components. Please correct me if I am wrong. Is there any latest version compatibility table ?
If you installed each of mailman, mailmanclient, django-mailman3, postorius and hyperkitty according to instructions like
$ cd ~/mailman $ git clone https://gitlab.com/mailman/mailmanclient.git
Then set up mailmanclient:
$ cd mailmanclient $ python setup.py develop $ cd ..
from that document, you should have the latest version. If that is the
case, git log
in the mailmanclient directory should begin like
commit aaa529808e2d61899f90509da4ea802a70d2c8ff (HEAD -> master, origin/master, origin/HEAD) Merge: ff39dd8 8670751 Author: Abhilash Raj <maxking@asynchronous.in> Date: Thu Oct 15 01:09:32 2020 +0000
Merge branch 'fix-ci' into 'master'
Use GHCR for the CI image
See merge request mailman/mailmanclient!130
commit 8670751caff689733751ef323ef521c4a3fa1237 Author: Abhilash Raj <raj.abhilash1@gmail.com> Date: Wed Oct 14 17:36:58 2020 -0700
Use GHCR for the CI image
commit ff39dd8f03a820f442f2251553c444370df3b914 Merge: 80ebed4 76d44e1 Author: Abhilash Raj <maxking@asynchronous.in> Date: Fri Aug 7 19:35:05 2020 +0000
Merge branch 'invite' into 'master'
Add support for inviting an email address to join a list.
See merge request mailman/mailmanclient!129
or if you did this before Oct 15, maybe it starts with commit ff39dd8f03a820f442f2251553c444370df3b914
The particular commit you need for your issue is
commit 86eb0da3cdb48e253b0d36138ab7cf91259a7583 Merge: c8dcb1e 28d1c3a Author: Abhilash Raj <maxking@asynchronous.in> Date: Sat May 16 08:02:21 2020 +0000
Merge branch 'held-count' into 'master'
Add a new get_held_count() API to get a count of held messages.
See merge request mailman/mailmanclient!122
Note that unless you intend to do actual development of Mailman 3, you should be following <https://docs.mailman3.org/en/latest/install/virtualenv.html> rather than <https://docs.mailman3.org/en/latest/devsetup.html>.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Hi Mark,
Thank you for your help. I have traced the versions of
different components of mailman 3. I am downloading through GIT LAB because I need to modify the code according to my organization's requirements like to add SMS notifications when a mail is waiting for pending approval and so.
With your help, I have found out the commits I am using in my
environment. I got them using the way you suggested "git log". That may be helpful for you to help dummies like me.
*### Mailman Core Version ###*
*commit 437cb49ffc29ef8960ef26d18bd883ed5aa61ded* *Merge: 98cf97b 0bca998* *Author: Mark Sapiro <mark@msapiro.net <mark@msapiro.net>>* *Date: Thu Oct 15 14:02:36 2020 -0700*
Merge branch 'template' into 'master'*
Clarify the posting instruction in the list welcome message.*
See merge request mailman/mailman!723*
*### django-mailman3 Version ###*
*commit d9e675e5cc1b966f9cd02b2e492649972f8ddc40* *Merge: ea2b33a c091e43* *Author: Abhilash Raj <maxking@asynchronous.in <maxking@asynchronous.in>>* *Date: Thu Oct 15 00:40:51 2020 +0000*
Merge branch 'fix-ci' into 'master'*
Use GHCR for the CI image*
See merge request mailman/django-mailman3!108*
*### Hyperkitty Version ###*
*commit 36f43466763c2686cf4d69c982ea64b956c30939* *Author: Abhilash Raj <maxking@asynchronous.in <maxking@asynchronous.in>>* *Date: Mon Oct 5 04:54:44 2020 +0000*
- Use GH registry to pull CI image.*
*### Mailmanclient Version ###*
*commit aaa529808e2d61899f90509da4ea802a70d2c8ff* *Merge: ff39dd8 8670751* *Author: Abhilash Raj <maxking@asynchronous.in <maxking@asynchronous.in>>* *Date: Thu Oct 15 01:09:32 2020 +0000*
Merge branch 'fix-ci' into 'master'*
Use GHCR for the CI image*
See merge request mailman/mailmanclient!130*
*### Mailman Hyperkitty Version ###*
*commit 87db8b03cc4ceba8ef8eafedeaaf11f99f2e50e0* *Merge: 35ff801 04deff5* *Author: Mark Sapiro <mark@msapiro.net <mark@msapiro.net>>* *Date: Fri Jun 19 18:15:57 2020 +0000*
Merge branch 'fix_25' into 'master'*
Add a test for the presence of surrogates in the stringified message.*
Closes #25*
See merge request mailman/mailman-hyperkitty!7*
*### Mailman-suite Version ###*
*commit 3b8780f26d544cb333970eae43ccffc7e34314aa* *Merge: 74e7927 4463b31* *Author: Mark Sapiro <mark@msapiro.net <mark@msapiro.net>>* *Date: Sat May 30 00:32:40 2020 +0000*
Merge branch 'doc_mb4' into 'master'*
Added comment about OPTIONS = {'charset': 'utf8mb4'} to settings.py.*
See merge request mailman/mailman-suite!8*
*### Postorius Version ###*
*commit 02e3183c3cd9e069d8d886426b76b08504ea5e1e* *Merge: 61242d2 321310c* *Author: Abhilash Raj <maxking@asynchronous.in <maxking@asynchronous.in>>* *Date: Thu Oct 15 00:43:14 2020 +0000*
Merge branch 'fix-ci' into 'master'*
Use the GHCR registry for CI image.*
See merge request mailman/postorius!549*
I have removed only mailmanclient and re-cloned it from gitlab and ran the python setup.py develop command. But still the same error.
Is there anything else I can do to get rid of that error.
Thanks in advance.
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> Virus-free. www.avast.com <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
On Tue, Oct 27, 2020 at 6:56 AM Mark Sapiro <mark@msapiro.net> wrote:
On 10/26/20 6:10 PM, Shashikanth Komandoor wrote:
How to find out the versions of the each and every component
of the mailman 3 like mailman core, mailmancilent, postorius, hyperikitty, mailman-hyperkitty, django-mailman3, mailman-suite and so, after installation?
cd to the directory in which you cloned the gitlab project for the component and do
git log
If I am running an old mailmanclient or older version of any
other mailman component, please suggest how to upgrade either one or multiple components based on the requirement. Is there any link that would help me to upgrade ?
I have used the
link https://docs.mailman3.org/en/latest/devsetup.html to install the mailman 3 components. I expected that the procedure followed in this link would install the latest versions of the mailman 3 components. Please correct me if I am wrong. Is there any latest version compatibility table ?
If you installed each of mailman, mailmanclient, django-mailman3, postorius and hyperkitty according to instructions like
$ cd ~/mailman $ git clone https://gitlab.com/mailman/mailmanclient.git
Then set up mailmanclient:
$ cd mailmanclient $ python setup.py develop $ cd ..
from that document, you should have the latest version. If that is the case,
git log
in the mailmanclient directory should begin likecommit aaa529808e2d61899f90509da4ea802a70d2c8ff (HEAD -> master, origin/master, origin/HEAD) Merge: ff39dd8 8670751 Author: Abhilash Raj <maxking@asynchronous.in> Date: Thu Oct 15 01:09:32 2020 +0000
Merge branch 'fix-ci' into 'master' Use GHCR for the CI image See merge request mailman/mailmanclient!130
commit 8670751caff689733751ef323ef521c4a3fa1237 Author: Abhilash Raj <raj.abhilash1@gmail.com> Date: Wed Oct 14 17:36:58 2020 -0700
Use GHCR for the CI image
commit ff39dd8f03a820f442f2251553c444370df3b914 Merge: 80ebed4 76d44e1 Author: Abhilash Raj <maxking@asynchronous.in> Date: Fri Aug 7 19:35:05 2020 +0000
Merge branch 'invite' into 'master' Add support for inviting an email address to join a list. See merge request mailman/mailmanclient!129
or if you did this before Oct 15, maybe it starts with commit ff39dd8f03a820f442f2251553c444370df3b914
The particular commit you need for your issue is
commit 86eb0da3cdb48e253b0d36138ab7cf91259a7583 Merge: c8dcb1e 28d1c3a Author: Abhilash Raj <maxking@asynchronous.in> Date: Sat May 16 08:02:21 2020 +0000
Merge branch 'held-count' into 'master' Add a new get_held_count() API to get a count of held messages. See merge request mailman/mailmanclient!122
Note that unless you intend to do actual development of Mailman 3, you should be following <https://docs.mailman3.org/en/latest/install/virtualenv.html> rather than <https://docs.mailman3.org/en/latest/devsetup.html>.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
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/
-- Thanks & Regards, Shashi Kanth.K 9052671936
Hi Mark,
Any suggestions over my earlier email? I am waiting for your
reply.
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> Virus-free. www.avast.com <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
On Tue, Oct 27, 2020 at 1:16 PM Shashikanth Komandoor < shashikanth.komandoor@gmail.com> wrote:
Hi Mark,
Thank you for your help. I have traced the versions of
different components of mailman 3. I am downloading through GIT LAB because I need to modify the code according to my organization's requirements like to add SMS notifications when a mail is waiting for pending approval and so.
With your help, I have found out the commits I am using in my
environment. I got them using the way you suggested "git log". That may be helpful for you to help dummies like me.
*### Mailman Core Version ###*
*commit 437cb49ffc29ef8960ef26d18bd883ed5aa61ded* *Merge: 98cf97b 0bca998* *Author: Mark Sapiro <mark@msapiro.net <mark@msapiro.net>>* *Date: Thu Oct 15 14:02:36 2020 -0700*
Merge branch 'template' into 'master'*
Clarify the posting instruction in the list welcome message.*
See merge request mailman/mailman!723*
*### django-mailman3 Version ###*
*commit d9e675e5cc1b966f9cd02b2e492649972f8ddc40* *Merge: ea2b33a c091e43* *Author: Abhilash Raj <maxking@asynchronous.in <maxking@asynchronous.in>>* *Date: Thu Oct 15 00:40:51 2020 +0000*
Merge branch 'fix-ci' into 'master'*
Use GHCR for the CI image*
See merge request mailman/django-mailman3!108*
*### Hyperkitty Version ###*
*commit 36f43466763c2686cf4d69c982ea64b956c30939* *Author: Abhilash Raj <maxking@asynchronous.in <maxking@asynchronous.in>>* *Date: Mon Oct 5 04:54:44 2020 +0000*
- Use GH registry to pull CI image.*
*### Mailmanclient Version ###*
*commit aaa529808e2d61899f90509da4ea802a70d2c8ff* *Merge: ff39dd8 8670751* *Author: Abhilash Raj <maxking@asynchronous.in <maxking@asynchronous.in>>* *Date: Thu Oct 15 01:09:32 2020 +0000*
Merge branch 'fix-ci' into 'master'*
Use GHCR for the CI image*
See merge request mailman/mailmanclient!130*
*### Mailman Hyperkitty Version ###*
*commit 87db8b03cc4ceba8ef8eafedeaaf11f99f2e50e0* *Merge: 35ff801 04deff5* *Author: Mark Sapiro <mark@msapiro.net <mark@msapiro.net>>* *Date: Fri Jun 19 18:15:57 2020 +0000*
Merge branch 'fix_25' into 'master'*
Add a test for the presence of surrogates in the stringified message.*
Closes #25*
See merge request mailman/mailman-hyperkitty!7*
*### Mailman-suite Version ###*
*commit 3b8780f26d544cb333970eae43ccffc7e34314aa* *Merge: 74e7927 4463b31* *Author: Mark Sapiro <mark@msapiro.net <mark@msapiro.net>>* *Date: Sat May 30 00:32:40 2020 +0000*
Merge branch 'doc_mb4' into 'master'*
Added comment about OPTIONS = {'charset': 'utf8mb4'} to settings.py.*
See merge request mailman/mailman-suite!8*
*### Postorius Version ###*
*commit 02e3183c3cd9e069d8d886426b76b08504ea5e1e* *Merge: 61242d2 321310c* *Author: Abhilash Raj <maxking@asynchronous.in <maxking@asynchronous.in>>* *Date: Thu Oct 15 00:43:14 2020 +0000*
Merge branch 'fix-ci' into 'master'*
Use the GHCR registry for CI image.*
See merge request mailman/postorius!549*
I have removed only mailmanclient and re-cloned it from gitlab and ran the python setup.py develop command. But still the same error.
Is there anything else I can do to get rid of that error.
Thanks in advance.
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> Virus-free. www.avast.com <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> <#m_6854939421424022049_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
On Tue, Oct 27, 2020 at 6:56 AM Mark Sapiro <mark@msapiro.net> wrote:
On 10/26/20 6:10 PM, Shashikanth Komandoor wrote:
How to find out the versions of the each and every component
of the mailman 3 like mailman core, mailmancilent, postorius, hyperikitty, mailman-hyperkitty, django-mailman3, mailman-suite and so, after installation?
cd to the directory in which you cloned the gitlab project for the component and do
git log
If I am running an old mailmanclient or older version of any
other mailman component, please suggest how to upgrade either one or multiple components based on the requirement. Is there any link that would help me to upgrade ?
I have used the
link https://docs.mailman3.org/en/latest/devsetup.html to install the mailman 3 components. I expected that the procedure followed in this link would install the latest versions of the mailman 3 components. Please correct me if I am wrong. Is there any latest version compatibility table ?
If you installed each of mailman, mailmanclient, django-mailman3, postorius and hyperkitty according to instructions like
$ cd ~/mailman $ git clone https://gitlab.com/mailman/mailmanclient.git
Then set up mailmanclient:
$ cd mailmanclient $ python setup.py develop $ cd ..
from that document, you should have the latest version. If that is the case,
git log
in the mailmanclient directory should begin likecommit aaa529808e2d61899f90509da4ea802a70d2c8ff (HEAD -> master, origin/master, origin/HEAD) Merge: ff39dd8 8670751 Author: Abhilash Raj <maxking@asynchronous.in> Date: Thu Oct 15 01:09:32 2020 +0000
Merge branch 'fix-ci' into 'master' Use GHCR for the CI image See merge request mailman/mailmanclient!130
commit 8670751caff689733751ef323ef521c4a3fa1237 Author: Abhilash Raj <raj.abhilash1@gmail.com> Date: Wed Oct 14 17:36:58 2020 -0700
Use GHCR for the CI image
commit ff39dd8f03a820f442f2251553c444370df3b914 Merge: 80ebed4 76d44e1 Author: Abhilash Raj <maxking@asynchronous.in> Date: Fri Aug 7 19:35:05 2020 +0000
Merge branch 'invite' into 'master' Add support for inviting an email address to join a list. See merge request mailman/mailmanclient!129
or if you did this before Oct 15, maybe it starts with commit ff39dd8f03a820f442f2251553c444370df3b914
The particular commit you need for your issue is
commit 86eb0da3cdb48e253b0d36138ab7cf91259a7583 Merge: c8dcb1e 28d1c3a Author: Abhilash Raj <maxking@asynchronous.in> Date: Sat May 16 08:02:21 2020 +0000
Merge branch 'held-count' into 'master' Add a new get_held_count() API to get a count of held messages. See merge request mailman/mailmanclient!122
Note that unless you intend to do actual development of Mailman 3, you should be following <https://docs.mailman3.org/en/latest/install/virtualenv.html> rather than <https://docs.mailman3.org/en/latest/devsetup.html>.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
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/
-- Thanks & Regards, Shashi Kanth.K 9052671936
-- Thanks & Regards, Shashi Kanth.K 9052671936
On 10/27/20 6:27 PM, Shashikanth Komandoor wrote:
Hi Mark,
Any suggestions over my earlier email? I am waiting for your
reply.
Be patient. I am a volunteer and I have a life outside of Mailman.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
I am extremely *sorry* Mark. As I was put under pressure with a timeline, I have reminded you over anxiety.
I should not have disturbed such a good helper.
Sorry once again.
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> Virus-free. www.avast.com <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
On Wed, Oct 28, 2020 at 9:24 AM Mark Sapiro <mark@msapiro.net> wrote:
On 10/27/20 6:27 PM, Shashikanth Komandoor wrote:
Hi Mark,
Any suggestions over my earlier email? I am waiting for your
reply.
Be patient. I am a volunteer and I have a life outside of Mailman.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
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/
-- Thanks & Regards, Shashi Kanth.K 9052671936
On 10/27/20 12:46 AM, Shashikanth Komandoor wrote:
*### Mailmanclient Version ###*
*commit aaa529808e2d61899f90509da4ea802a70d2c8ff* *Merge: ff39dd8 8670751* *Author: Abhilash Raj <maxking@asynchronous.in <maxking@asynchronous.in>>* *Date: Thu Oct 15 01:09:32 2020 +0000*
This mailmanclient is up to date and does define the get_requests_count mailing list attribute, so this version must not be whats running in your mailman installation. Did you install it?
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Thank you Mark for your response.
All the mentioned versions of all the components are taken from my currently running system only in which I am facing the issue.
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> Virus-free. www.avast.com <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
On Wed, Oct 28, 2020 at 10:54 AM Mark Sapiro <mark@msapiro.net> wrote:
On 10/27/20 12:46 AM, Shashikanth Komandoor wrote:
*### Mailmanclient Version ###*
*commit aaa529808e2d61899f90509da4ea802a70d2c8ff* *Merge: ff39dd8 8670751* *Author: Abhilash Raj <maxking@asynchronous.in <maxking@asynchronous.in
- *Date: Thu Oct 15 01:09:32 2020 +0000*
This mailmanclient is up to date and does define the get_requests_count mailing list attribute, so this version must not be whats running in your mailman installation. Did you install it?
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
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/
-- Thanks & Regards, Shashi Kanth.K 9052671936
On 10/27/20 11:08 PM, Shashikanth Komandoor wrote:
Thank you Mark for your response.
All the mentioned versions of all the components are taken from my currently running system only in which I am facing the issue.
Did you run
$ cd mailmanclient $ python setup.py develop
as it says at <https://docs.mailman3.org/en/latest/devsetup.html>
I do not understand exactly how the various components are installed in your installation, so I can't tell you what is wrong, but the version of mailmanclient that gives you the AttributeError: 'MailingList' object has no attribute 'get_requests_count' is not the one whose latest commit is
### Mailmanclient Version ###
commit aaa529808e2d61899f90509da4ea802a70d2c8ff Merge: ff39dd8 8670751 Author: Abhilash Raj <maxking@asynchronous.in maxking@asynchronous.in> Date: Thu Oct 15 01:09:32 2020 +0000
Merge branch 'fix-ci' into 'master'*
Use GHCR for the CI image*
See merge request mailman/mailmanclient!130*
because that one won't have this error.
Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
I have run the below commands for sure:
$ cd mailmanclient $ python setup.py develop
And as you have suggested, I navigate to mailmanclient directory and ran the git log to provide you the version output.
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> Virus-free. www.avast.com <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
On Wed, Oct 28, 2020 at 12:12 PM Mark Sapiro <mark@msapiro.net> wrote:
On 10/27/20 11:08 PM, Shashikanth Komandoor wrote:
Thank you Mark for your response.
All the mentioned versions of all the components are taken from my currently running system only in which I am facing the issue.
Did you run
$ cd mailmanclient $ python setup.py develop
as it says at <https://docs.mailman3.org/en/latest/devsetup.html>
I do not understand exactly how the various components are installed in your installation, so I can't tell you what is wrong, but the version of mailmanclient that gives you the AttributeError: 'MailingList' object has no attribute 'get_requests_count' is not the one whose latest commit is
### Mailmanclient Version ###
commit aaa529808e2d61899f90509da4ea802a70d2c8ff Merge: ff39dd8 8670751 Author: Abhilash Raj <maxking@asynchronous.in maxking@asynchronous.in> Date: Thu Oct 15 01:09:32 2020 +0000
Merge branch 'fix-ci' into 'master'* Use GHCR for the CI image* See merge request mailman/mailmanclient!130*
because that one won't have this error.
Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
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/
-- Thanks & Regards, Shashi Kanth.K 9052671936
On 10/27/20 11:47 PM, Shashikanth Komandoor wrote:
I have run the below commands for sure:
$ cd mailmanclient $ python setup.py develop
And as you have suggested, I navigate to mailmanclient directory and ran the git log to provide you the version output.
And I am fairly certain that the running Mailman/Postorius installation is not using those files. I can't tell you why this is the case, but if it weren't, you wouldn't be seeing this error.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Mark Sapiro writes:
I think the issue is your mailmanclient is too old. The version of Postorius you are running requires mailmanclient >3.3.1 which is only available from GitLab <https://gitlab.com/mailman/mailmanclient>.
What version of Postorius is this? It appears to be >1.3.3. If you install Postorius from unreleased code on GitLab, you have to install all of mailman, mailmanclient and django-mailman3 as well.
Shouldn't Postorius's setup.py be checking for this?
Steve
Can I go back to any previous version which is felt as working fine ?
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> Virus-free. www.avast.com <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
On Wed, Oct 28, 2020 at 11:43 AM Stephen J. Turnbull < turnbull.stephen.fw@u.tsukuba.ac.jp> wrote:
Mark Sapiro writes:
I think the issue is your mailmanclient is too old. The version of Postorius you are running requires mailmanclient >3.3.1 which is only available from GitLab <https://gitlab.com/mailman/mailmanclient>.
What version of Postorius is this? It appears to be >1.3.3. If you install Postorius from unreleased code on GitLab, you have to install all of mailman, mailmanclient and django-mailman3 as well.
Shouldn't Postorius's setup.py be checking for this?
Steve
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/
-- Thanks & Regards, Shashi Kanth.K 9052671936
Though you are for sure that the current versions as I am claiming the above one is perfectly without any issue, please also suggest what would be the best previous version which definitely does not have that issue because I even checked out the immediate previous version of mailmanclient but still I am getting the same error.
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> Virus-free. www.avast.com <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
On Wed, Oct 28, 2020 at 12:13 PM Mark Sapiro <mark@msapiro.net> wrote:
On 10/27/20 11:20 PM, Shashikanth Komandoor wrote:
Can I go back to any previous version which is felt as working fine ?
Sure.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
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/
-- Thanks & Regards, Shashi Kanth.K 9052671936
On 10/27/20 11:48 PM, Shashikanth Komandoor wrote:
Though you are for sure that the current versions as I am claiming the above one is perfectly without any issue, please also suggest what would be the best previous version which definitely does not have that issue because I even checked out the immediate previous version of mailmanclient but still I am getting the same error.
Follow this document <https://docs.mailman3.org/en/latest/install/virtualenv.html#virtualenv-install> and install with pip.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
I tried this way but in this method I don't find any files to edit for my customizations like
- Removal of social accounts,
- Addition of SMS integration and so.
If I can do my required customizations through pip installation I am fine with that.
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> Virus-free. www.avast.com <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
On Wed, Oct 28, 2020 at 12:34 PM Mark Sapiro <mark@msapiro.net> wrote:
On 10/27/20 11:48 PM, Shashikanth Komandoor wrote:
Though you are for sure that the current versions as I am claiming the above one is perfectly without any issue, please also suggest what would be the best previous version which definitely does not have that issue because I even checked out the immediate previous version of mailmanclient but still I am getting the same error.
Follow this document < https://docs.mailman3.org/en/latest/install/virtualenv.html#virtualenv-insta...
and install with pip.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
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/
-- Thanks & Regards, Shashi Kanth.K 9052671936
On 10/28/20 12:08 AM, Shashikanth Komandoor wrote:
I tried this way but in this method I don't find any files to edit for my customizations like
- Removal of social accounts,
- Addition of SMS integration and so.
If I can do my required customizations through pip installation I am fine with that.
If you follow the instructions for installing in a virtualenv, in say /opt/mailman/venv, all the component files will be in /opt/mailman/venv/lib/python3.x/site-packages
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
ok Thank you Mark for your valuable time. I will try this method and let you know the status.
Thanks once again.
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> Virus-free. www.avast.com <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
On Wed, Oct 28, 2020 at 12:44 PM Mark Sapiro <mark@msapiro.net> wrote:
On 10/28/20 12:08 AM, Shashikanth Komandoor wrote:
I tried this way but in this method I don't find any files to edit for my customizations like
- Removal of social accounts,
- Addition of SMS integration and so.
If I can do my required customizations through pip installation I am fine with that.
If you follow the instructions for installing in a virtualenv, in say /opt/mailman/venv, all the component files will be in /opt/mailman/venv/lib/python3.x/site-packages
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
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/
-- Thanks & Regards, Shashi Kanth.K 9052671936
On 10/27/20 11:12 PM, Stephen J. Turnbull wrote:
Mark Sapiro writes:
What version of Postorius is this? It appears to be >1.3.3. If you install Postorius from unreleased code on GitLab, you have to install all of mailman, mailmanclient and django-mailman3 as well.
Shouldn't Postorius's setup.py be checking for this?
Perhaps, but we're talking about an unreleased development version of Postorius requiring a specific unreleased commit of mailmanclient
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (3)
-
Mark Sapiro
-
Shashikanth Komandoor
-
Stephen J. Turnbull