How to stop minutely mails about readme_renderer
Hi all,
after fixing an exim issue (now getting cron messages), I’m spammed by these e-mails:
/usr/local/py_venv/mailman_33/lib/python3.9/site-packages/readme_renderer/markdown.py:44: UserWarning: Markdown renderers are not available. Install 'readme_renderer[md]' to enable Markdown rendering. warnings.warn(_EXTRA_WARNING)
I installed cmarkgfm 0.8.0 in my venv, but this did not help. Besides patching the source, what is the recommended solution for this?
Thanks, Axel
PGP-Key: CDE74120 ☀ computing @ chaos claudius
Axel Rau writes:
/usr/local/py_venv/mailman_33/lib/python3.9/site-packages/readme_renderer/markdown.py:44: UserWarning: Markdown renderers are not available. Install 'readme_renderer[md]' to enable Markdown rendering. warnings.warn(_EXTRA_WARNING)
I installed cmarkgfm 0.8.0 in my venv,
Why did you do that? Is it something in our documentation?
The error message is specifically asking for readme_renderer, which is a package available from PyPI. Try installing that. I'm not sure what the "[md]" means (the suffix "[md]" is also in postorius/setup.py), but it probably doesn't matter since readme_renderer.markdown is imported directly by Postorius. Just installing the package should make Postorius happy.
Note that something is not right because running setup.py in the venv should automatically install readme_renderer, and I would expect you may have other problems if setup.py did not work correctly.
On 5/22/22 08:10, Stephen J. Turnbull wrote:
Axel Rau writes:
/usr/local/py_venv/mailman_33/lib/python3.9/site-packages/readme_renderer/markdown.py:44: UserWarning: Markdown renderers are not available. Install 'readme_renderer[md]' to enable Markdown rendering. warnings.warn(_EXTRA_WARNING)
I installed cmarkgfm 0.8.0 in my venv,
Why did you do that? Is it something in our documentation?
It is required by readme_renderer.
Can you activate your venv, run python and successfully
import cmarkgfm
from cmarkgfm.cmark import Options as cmarkgfmOptions
If you can't do either, cmarkgfm is not properly installed in the venv. If you can do the first, but not the second, there is a compatibility issue between readme_renderer and cmarkgfm 0.8.0. Try
pip install cmarkgfm==0.6.0
which works in my installations
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (3)
-
Axel Rau
-
Mark Sapiro
-
Stephen J. Turnbull