On 7/25/22 12:57, Koichi MATSUMOTO via Mailman-Developers wrote:

I tried to install Mailman & HyperKitty according to the installation 
instructions and do `mailman-web migrate`, but failed.
     from mistune.plugins.extra import plugin_url
ModuleNotFoundError: No module named 'mistune.plugins.extra'
Ok, I installed mistune 2.0.4 and retried `mailman-web migrate` but failied yet.
ImportError: cannot import name 'escape_html' from 'mistune.scanner' 
And then, I modified hyperkitty/lib/renderer.py as below:

--- renderer.py.orig    2022-07-26 04:41:01.244307778 +0900
+++ renderer.py 2022-07-26 04:35:14.096672198 +0900
@@ -4,7 +4,7 @@

  import mistune
  from mistune.plugins.extra import plugin_url
-from mistune.scanner import escape_html, escape_url
+from mistune.util import escape_html, escape_url

  class MyRenderer(mistune.HTMLRenderer):

Then retried, I migrated databases successfully. Is this a bug?

These are known issues, fixed for the next release. See https://gitlab.com/mailman/hyperkitty/-/issues/437, https://gitlab.com/mailman/hyperkitty/-/merge_requests/454 and https://gitlab.com/mailman/hyperkitty/-/merge_requests/379

Mark Sapiro <m...@msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan
Mailman-Developers mailing list -- mailman-developers@python.org
To unsubscribe send an email to mailman-developers-le...@python.org
Mailman FAQ: https://wiki.list.org/x/AgA3

Security Policy: https://wiki.list.org/x/QIA9

Reply via email to