Bug 57441 - minted ищет утилиту pygmentize, а ставится pygmentize3
Summary: minted ищет утилиту pygmentize, а ставится pygmentize3
Status: NEW
Alias: None
Product: Sisyphus
Classification: Development
Component: texlive-dist (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: viy
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-01-08 20:21 MSK by Mike M
Modified: 2026-01-12 12:53 MSK (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike M 2026-01-08 20:21:33 MSK
LaTeX-овский пакет minted хочет запустить pygmentize, а из пакета python3-module-Pygments ставится pygmentize3. Такая же проблема с asciidoc описана в #50101.

Воспроизведение:

1. # apt-get install texlive-dist python3-module-Pygments

2. Создать sample.tex:

\documentclass{article} 
  \usepackage{minted}
\begin{document}
  \begin{minted}{text}
    Source code
  \end{minted}
\end{document}

3. xelatex --shell-escape sample.tex

Ожидаемый результат: создан sample.pdf.

Фактический результат (отформатировал для лучшей читаемости):

-----
(/usr/share/texmf-dist/tex/latex/minted/minted.sty(....))
which: no pygmentize in (/home/mvm/bin:/usr/bin:/bin:/usr/local/bin:/usr/games)
system returned with code 256

! Package minted Error: You must have `pygmentize' installed to use this package.

See the minted package documentation for explanation.
Type  H <return>  for immediate help.
-----

Если создать софтлинк ln -s /usr/bin/pygmentize3 ~/bin/pygmentize, pdf создаётся.
Comment 1 Tatyana Gagina 2026-01-12 12:53:13 MSK
Проверялось на Sisyphus, ошибка воспроизводится.

Версия: texlive-dist-2022-alt0_13