[Bug 258571] textproc/retext: Preview does not work, missing dependency on textproc/py-markdown-math

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 30 Sep 2021 13:55:25 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258571

--- Comment #2 from xin3qu@protonmail.com ---
(In reply to Kubilay Kocak from comment #1)

Hi,

here the output after hitting the "preview" button. GUI does not display any
errors, just an empty preview pane:

- - - - - - - 8< - - - - - - - - - - - - - - - 8< - - - - - - - 

Exception occurred while parsing document:
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/ReText/tab.py", line 249, in
updatePreviewBox
    self.converted = self.converterProcess.get_result()
  File "/usr/local/lib/python3.8/site-packages/ReText/converterprocess.py",
line 184, in get_result
    raise ConversionError(result)
ReText.converterprocess.ConversionError: The background markup conversion
process received this exception:
    Traceback (most recent call last):
      File "/usr/local/lib/python3.8/site-packages/ReText/converterprocess.py",
line 85, in _converter_process_func
        current_markup = markup_class(job['filename'])
      File "/usr/local/lib/python3.8/site-packages/markups/markdown.py", line
209, in __init__
        self._apply_extensions()
      File "/usr/local/lib/python3.8/site-packages/markups/markdown.py", line
195, in _apply_extensions
        self.md = self.markdown.Markdown(extensions=list(extension_names),
      File "/usr/local/lib/python3.8/site-packages/markdown/core.py", line 96,
in __init__
        self.registerExtensions(extensions=kwargs.get('extensions', []),
      File "/usr/local/lib/python3.8/site-packages/markdown/core.py", line 123,
in registerExtensions
        ext = self.build_extension(ext, configs.get(ext, {}))
      File "/usr/local/lib/python3.8/site-packages/markdown/core.py", line 162,
in build_extension
        module = importlib.import_module(ext_name)
      File "/usr/local/lib/python3.8/importlib/__init__.py", line 127, in
import_module
        return _bootstrap._gcd_import(name[level:], package, level)
      File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
      File "<frozen importlib._bootstrap>", line 991, in _find_and_load
      File "<frozen importlib._bootstrap>", line 973, in
_find_and_load_unlocked
    ModuleNotFoundError: No module named 'mdx_math'

- - - - - - - >8 - - - - - - - - - - - - - - - >8 - - - - - - -

-- 
You are receiving this mail because:
You are on the CC list for the bug.