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: Closed FIXED
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-11-10 16:00 UTC (History)
1 user (show)

See Also:
arved: maintainer-feedback+
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
Comment 4 Tilman Keskinoz freebsd_committer freebsd_triage 2021-11-10 09:50:51 UTC
Hi xin3qu@protonmail.com,

Are you interested in maintaining the port? It looks like I currently don't have time to maintain this port adequatly.
Comment 5 commit-hook freebsd_committer freebsd_triage 2021-11-10 15:59:44 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=80b2ec1a7f353c5ca3094e2754c6b4bd775f5e13

commit 80b2ec1a7f353c5ca3094e2754c6b4bd775f5e13
Author:     Tilman Keskinoz <arved@FreeBSD.org>
AuthorDate: 2021-11-10 15:57:56 +0000
Commit:     Tilman Keskinoz <arved@FreeBSD.org>
CommitDate: 2021-11-10 15:57:57 +0000

    textproc/retext: Update to 7.2.2

    Also readd dependency on py-markdown-math accidently removed in
    previous commit. It is required for the preview[1]

    Reported by:    xin3qu[1]
    PR:             258571 [1]

 textproc/retext/Makefile | 3 ++-
 textproc/retext/distinfo | 6 +++---
 2 files changed, 5 insertions(+), 4 deletions(-)
Comment 6 Tilman Keskinoz freebsd_committer freebsd_triage 2021-11-10 16:00:19 UTC
committed, thanks