On 12/6/21 7:25 PM, Mark Sapiro wrote:
On 12/6/21 6:10 PM, David Newman wrote:
Following the venv installation docs on a Debian 10 system, the command "mailman-web migrate" fails with a "KeyError: 'django'" error.
Output pasted below [1]. ... from mistune.scanner import escape_html, escape_url ImportError: cannot import name 'escape_html' from 'mistune.scanner'
You need to install https://gitlab.com/mailman/hyperkitty/-/merge_requests/379 or downgrade mistune in your venv with
pip install mistune==2.2.0rc1
Thanks for this. I applied the one-line fix by hand from 379 and the command now runs clean.
I first tried the 'pip install' command but it returned this error:
venv) mailman@somehost:~ $ pip install mistune==2.2.0rc1 ERROR: Could not find a version that satisfies the requirement mistune==2.2.0rc1 (from versions: 0.1.0, 0.2.0, 0.3.0, 0.3.1, 0.4, 0.4.1, 0.5, 0.5.1, 0.6, 0.7, 0 .7.1, 0.7.2, 0.7.3, 0.7.4, 0.8, 0.8.1, 0.8.2, 0.8.3, 0.8.4, 2.0.0a1, 2.0.0a2, 2.0.0a3, 2.0.0a4, 2.0.0a5, 2.0.0a6, 2.0.0rc1, 2.0.0) ERROR: No matching distribution found for mistune==2.2.0rc1
Thanks again.
dn