Bug 258571 - textproc/retext: Preview does not work, missing dependency on textproc/py-markdown-math
Summary: textproc/retext: Preview does not work, missing dependency on textproc/py-mar...
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Tilman Keskinoz
URL:
Keywords: easy, needs-patch, needs-qa
Depends on:
Blocks:
 
Reported: 2021-09-18 11:36 UTC by xin3qu
Modified: 2021-10-01 00:49 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (arved)
koobs: merge-quarterly?


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description xin3qu 2021-09-18 11:36:05 UTC
There is no dependency to port py??-markdown-math, but retext does not work without it (no preview available).
Comment 1 Kubilay Kocak freebsd_committer freebsd_triage 2021-09-20 01:04:01 UTC
@Reporter, Are there any runtime or other errors messages displayed?
Comment 2 xin3qu 2021-09-30 13:55:25 UTC
(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 - - - - - - -
Comment 3 Kubilay Kocak freebsd_committer freebsd_triage 2021-10-01 00:49:32 UTC
(In reply to xin3qu from comment #2)

Thank you for the additional information