Update on this. I fixed the problem logging in to the web interface by changing several instances of smart_text to smart_str. I also notice that I errored in my message below by saying the replaced text was “search_text”. It was actually “smart_text”. I believe my "site-packages/compressor” library was not updated correctly because I had to make many manual changes to get things to work.
I still have the problem "mailman-web compress” listed below. However, I was able to login to the web interface and approve messages.
Begin forwarded message:
From: Jeff <mm3@steele.com> Subject: Problems after Upgrade Date: October 30, 2022 at 3:24:21 PM EDT To: mailman-users@mailman3.org
Hello,
I tried to upgrade to the latest mailman3 version using the following command:
pip install -U mailman postorius django-mailman3 hyperkitty mailman-web mailmanclient
There didn’t appear to be any problems with this step and I’ve since run it again a few times and only see that the requirements have been satisfied.
When first running the command:
mailman-web migrate
I received several errors dealing with search_text in the package compressor (at least that’s as best as I remember, I wasn’t taking notes). I fixed these manually by changing it to search_str. Eventually "mailman-web migrate” started working and has subsequently worked.
When I run the command:
mailman-web compress
I get the following error:
traceback (most recent call last): File "bin/mailman-web", line 8, in <module> sys.exit(main()) File "/usr/local/mailman3/lib64/python3.8/site-packages/mailman_web/manage.py", line 37, in main execute_from_command_line(sys.argv) File "/usr/local/mailman3/lib64/python3.8/site-packages/django/core/management/__init__.py", line 446, in execute_from_command_line utility.execute() File "/usr/local/mailman3/lib64/python3.8/site-packages/django/core/management/__init__.py", line 440, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/local/mailman3/lib64/python3.8/site-packages/django/core/management/__init__.py", line 279, in fetch_command klass = load_command_class(app_name, subcommand) File "/usr/local/mailman3/lib64/python3.8/site-packages/django/core/management/__init__.py", line 49, in load_command_class return module.Command() File "/usr/local/mailman3/lib64/python3.8/site-packages/django/core/management/base.py", line 274, in __init__ raise TypeError("requires_system_checks must be a list or tuple.") TypeError: requires_system_checks must be a list or tuple.
I have not been able to fix this and would appreciate any assistance.
When I run the command:
bin/mailman-web collectstatic
It asks me yes or no continue and when I enter “yes” it displays the following which I assume means it worked:
372 static files copied to '/usr/local/mailman3/web/static', 38 unmodified
Starting mailman3 seems to work by the status message shows the following:
systemctl status -l mailman3 ... Oct 30 14:51:03 mailhost.steele.com mailman[3521451]: return function(args[0], config.db.store, *args[1:], **kws) Oct 30 14:51:03 mailhost.steele.com mailman[3521451]: File "/usr/local/mailman3/lib64/python3.8/site-packages/mailman/model/bounce.py", line 259, in send_warnings_and_remove Oct 30 14:51:03 mailhost.steele.com mailman[3521451]: self._send_warnings() Oct 30 14:51:03 mailhost.steele.com mailman[3521451]: File "/usr/local/mailman3/lib64/python3.8/site-packages/mailman/database/transaction.py", line 85, in wrapper Oct 30 14:51:03 mailhost.steele.com mailman[3521451]: return function(args[0], config.db.store, *args[1:], **kws) Oct 30 14:51:03 mailhost.steele.com mailman[3521451]: File "/usr/local/mailman3/lib64/python3.8/site-packages/mailman/model/bounce.py", line 310, in _send_warnings Oct 30 14:51:03 mailhost.steele.com mailman[3521451]: member.address, Oct 30 14:51:03 mailhost.steele.com mailman[3521451]: File "/usr/local/mailman3/lib64/python3.8/site-packages/mailman/model/member.py", line 121, in address Oct 30 14:51:03 mailhost.steele.com mailman[3521451]: return (self._user.preferred_address Oct 30 14:51:03 mailhost.steele.com mailman[3521451]: AttributeError: 'NoneType' object has no attribute 'preferred_address' lines 13-35/35 (END)
I have been receiving admin requests to approve messages. But, I can’t approve them because of the following issue:
Starting mailman-web seems to work as expected with no errors. However, when I try to login to the web interface, I get a HTML page with the following error:
init__() got an unexpected keyword argument 'providing_args' Request Method: GET Request URL: http://lists.crestwood-dc.org/accounts/login/?next=/mailman3/lists/crestwood... Django Version: 4.1.2 Exception Type: TypeError Exception Value: __init__() got an unexpected keyword argument 'providing_args' Exception Location: /usr/local/mailman3/lib64/python3.8/site-packages/compressor/signals.py, line 4, in <module> Raised during: allauth.account.views.LoginView Python Executable: /usr/local/mailman3/bin/uwsgi Python Version: 3.8.13
As a result, I cannot login and approve posts.
I would greatly appreciate any assistance with these issue.
Thanks much!