Bug 681160 - [TL2010] Missing Requires in texlive-minted package
Summary: [TL2010] Missing Requires in texlive-minted package
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: texlive
Version: 14
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jindrich Novy
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-01 10:43 UTC by Mohamed El Morabity
Modified: 2017-11-29 19:34 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-10-18 11:28:04 UTC
Type: ---


Attachments (Terms of Use)
Sample LaTeX file which calls minted (266 bytes, application/octet-stream)
2011-03-01 12:48 UTC, Mohamed El Morabity
no flags Details

Description Mohamed El Morabity 2011-03-01 10:43:09 UTC
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.

Comment 1 Jindrich Novy 2011-03-01 12:41:01 UTC
Please attach the reproducer :)

Comment 2 Mohamed El Morabity 2011-03-01 12:48:02 UTC
Created attachment 481606 [details]
Sample LaTeX file which calls minted

Comment 3 Mohamed El Morabity 2011-03-01 12:48:15 UTC
(In reply to comment #1)
> Please attach the reproducer :)
Sorry! Here it is, I hope :)

Comment 4 Jindrich Novy 2011-03-01 13:05:44 UTC
Reproduced and fixed. The fix will occur in the next repo update. Thanks!

Comment 5 Mohamed El Morabity 2011-10-18 11:28:04 UTC
Closing this bug report since it is solved for a moment.

Comment 6 Máté Wierdl 2017-11-29 19:18:22 UTC
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}}}%
}

Comment 7 Máté Wierdl 2017-11-29 19:34:53 UTC
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


Note You need to log in before you can comment on or make changes to this bug.