Skip to content

L10nUtil: Cannot generate HTML file from MD #18853

@wmhn1872265132

Description

@wmhn1872265132

Steps to reproduce:

Run:

cd /d %ProgramFiles(X86)%\NVDA
L10nUtil xliff2html -t userGuide "F:\userGuide.xliff" "F:\userGuide.html"

Actual behavior:

Detected language zh-CN for xliff file F:\userGuide.xliff, source=False
Generating markdown file ..\..\Users\WMHN1\AppData\Local\Temp\tmpo9ntm_dq.md from F:\userGuide.xliff...
Generated markdown file with 5642 total lines, 3833 translatable strings, and 3833 translated strings. Ignoring 0 bad translated strings
Converting userGuide (lang='zh-CN') at C:\Users\WMHN1\AppData\Local\Temp\tmpo9ntm_dq.md to F:\userGuide.html
Traceback (most recent call last):
  File "l10nUtil.py", line 906, in <module>
  File "l10nUtil.py", line 853, in main
  File "md2html.pyc", line 192, in main
  File "md2html.pyc", line 141, in _generateSanitizedHTML
  File "markdown\core.pyc", line 481, in markdown
  File "markdown\core.pyc", line 126, in __init__
  File "markdown\core.pyc", line 179, in registerExtensions
  File "markdown\core.pyc", line 225, in build_extension
  File "importlib\__init__.pyc", line 126, in import_module
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1126, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1140, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'pymdownx'

Expected behavior:

Properly generate HTML files

NVDA logs, crash dumps and other attachments:

N/A

System configuration

NVDA installed/portable/running from source:

installed

NVDA version:

2025.3.0.52365

Windows version:

Windows 10 21H2 (AMD64) Build 19044.6216

Name and version of other software in use when reproducing the issue:

N/A

Other information about your system:

N/A

Other questions

Does the issue still occur after restarting your computer?

Yes

Have you tried any other versions of NVDA? If so, please report their behaviors.

2025.2 and previous versions work fine

If NVDA add-ons are disabled, is your problem still occurring?

Not relevant

Does the issue still occur after you run the COM Registration Fixing Tool in NVDA's tools menu?

Not relevant

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions