Hide Forgot
Description of problem: The minted LaTeX package needs pygmentize (from the python-pygments package) to work, but texlive-minted doesn't require python-pygments. Version-Release number of selected component (if applicable): texlive-minted-2010-2.1.6.svn16883.fc14.noarch How reproducible: Just compile the sample document attached to this bug report: $ pdflatex -shell-escape minted-demo.tex Actual results: The following error: ! Package minted Error: You must have `pygmentize' installed to use this package. Expected results: The document should compile without any error. Additional info: Installing python-pygments solves the issue, anyway this package should be installed by texlive-minted.
Please attach the reproducer :)
Created attachment 481606 [details] Sample LaTeX file which calls minted
(In reply to comment #1) > Please attach the reproducer :) Sorry! Here it is, I hope :)
Reproduced and fixed. The fix will occur in the next repo update. Thanks!
Closing this bug report since it is solved for a moment.
The issue hasn't been resolved in Fedora 27. I presume, this is because the required package is now the python3 version of pygments, so the package that is needed is python3-pygments. The texlive-minted package also requires some additional packages. For example, it requires texlive-framed. To see the full list of required texlive packages minted needs, see the minted.sty file. Here is the relevant part \RequirePackage{keyval} \RequirePackage{kvoptions} \RequirePackage{fancyvrb} \RequirePackage{float} \RequirePackage{ifthen} \RequirePackage{calc} \RequirePackage{ifplatform} \RequirePackage{pdftexcmds} \RequirePackage{etoolbox} \RequirePackage{xstring} \RequirePackage{lineno} \RequirePackage{framed} \IfFileExists{shellesc.sty} {\RequirePackage{shellesc} \@ifpackagelater{shellesc}{2016/04/29} {} {\protected\def\ShellEscape{\immediate\write18 }}} {\protected\def\ShellEscape{\immediate\write18 }} \AtBeginDocument{% \@ifpackageloaded{color}{}{% \@ifpackageloaded{xcolor}{}{\RequirePackage{xcolor}}}% }
I add that you can test the problem with Mohamed's file above, but make sure you remove python3-pygments and texlive-framed. In fact, the removal of these files should give you a hint that something is wrong, since the removal of, say, texlive-framed should trigger the removal of texlive-minted----but it doesn't. Here is what you can see on Fedora 26 (the same on Fedora 27) when you remove the packages (sorry for the Hungarian) $ sudo dnf remove python3-pygments texlive-framed Függőségek feloldva. ================================================================================ Csomag Arch Verzió Tároló Méret ================================================================================ Eltávolítás: python3-pygments noarch 2.2.0-7.fc26 @fedora 9.6 M texlive-framed noarch 6:svn26789.0.96-33.fc26.2 @fedora 22 k Tranzakció összegzés ================================================================================ Eltávolítás 2 Csomagok Felszabadított terület: 9.7 M Ez így jó? [y/N]y Tranzakció ellenőrzés futtatása Tranzakció ellenőrzés sikeres. Tranzakció teszt futtatása Tranzakció teszt sikeres. Tranzakció futtatása Előkészítés : 1/1 Törlés : texlive-framed-6:svn26789.0.96-33.fc26.2.noarch 1/2 Törlés : python3-pygments-2.2.0-7.fc26.noarch 2/2 Beállítás : python3-pygments-2.2.0-7.fc26.noarch 2/2 Ellenőrzés : texlive-framed-6:svn26789.0.96-33.fc26.2.noarch 1/2 Ellenőrzés : python3-pygments-2.2.0-7.fc26.noarch 2/2 Eltávolítva: python3-pygments.noarch 2.2.0-7.fc26 texlive-framed.noarch 6:svn26789.0.96-33.fc26.2 Kész! And here is what you get now when compiling Mohamed's file $ pdflatex minted-demo.tex |grep -i error ! LaTeX Error: File `framed.sty' not found. So let us install texlive-framed $ sudo dnf install texlive-framed and let us try to compile Mohamed's file again $ pdflatex -shell-escape minted-demo.tex|grep -i error which: no pygmentize in (/usr/libexec/python2-sphinx:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/home/apu/bin) system returned with code 256 ! Package minted Error: You must have `pygmentize' installed to use this packag