On 1/3/22 4:01 PM, Michael Heseltine wrote:
Hi Mark, I tried out "pip install mistune==2.0.0rc1" (as I got hyperkitty via pip) which worked and let me move forward a little further once more, but still I get an error from "mailman-post-update":
# /opt/mailman/mm/bin/mailman-post-update
- '[' False == False ']'
- mkdir -p /opt/mailman/mm/static
- /opt/mailman/mm/bin/django-admin collectstatic --clear --noinput --verbosity 0
- /opt/mailman/mm/bin/django-admin compress Compressing... done Compressed 2 block(s) from 104 template(s) for 1 context(s).
- /opt/mailman/mm/bin/django-admin compilemessages Traceback (most recent call last): File "/opt/mailman/mm/venv/bin/django-admin", line 8, in <module> sys.exit(execute_from_command_line()) File "/opt/mailman/mm/venv/lib/python3.8/site-packages/django/core/management/__init__.py", line 419, in execute_from_command_line utility.execute() File "/opt/mailman/mm/venv/lib/python3.8/site-packages/django/core/management/__init__.py", line 413, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/opt/mailman/mm/venv/lib/python3.8/site-packages/django/core/management/base.py", line 354, in run_from_argv self.execute(*args, **cmd_options) File "/opt/mailman/mm/venv/lib/python3.8/site-packages/django/core/management/base.py", line 398, in execute output = self.handle(*args, **options) File "/opt/mailman/mm/venv/lib/python3.8/site-packages/django/core/management/commands/compilemessages.py", line 113, in handle self.compile_messages(locations) File "/opt/mailman/mm/venv/lib/python3.8/site-packages/django/core/management/commands/compilemessages.py", line 130, in compile_messages self.stdout.write( File "/opt/mailman/mm/venv/lib/python3.8/site-packages/django/core/management/base.py", line 155, in write self._out.write(style_func(msg)) UnicodeEncodeError: 'latin-1' codec can't encode character '\u201c' in position 5: ordinal not in range(256)
This looks like an issue with some message catalog which is declared as
character set latin-1
but contains a unicode left_double_quote character.
Unfortunately, django-admin compilemessages
compiles, at least in my
test installation, 1583 message catalogs from 19 different projects, so
finding the problem file is difficult and I don't know how to narrow it
down.
However, this is the next to last step in mailman-post-update and isn't important if your installation is English language only and the last step is optional and runs
/opt/mailman/mm/bin/django-admin update_index
to rebuild the search index for HyperKitty and you can just run that one step if you want. At this point, you probably have no archives so this should take almost no time.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan