Extract of the Errors and Warnings log:
) [86] (_minted-Masterarbeit/default-pyg-prefix.pygstyle)
(_minted-Masterarbeit/default.pygstyle)
(_minted-Masterarbeit/28F35476AF08BA7D170529EC46484B98FC454F190090B461895C5C921
3C2E259.pygtex
! Undefined control sequence.
PYG #1#2->FV@PYG
{#1}{FancyVerbBreakStart #2FancyVerbBreakStop }
l.2 …{l+s+s2}{PYGZdq{}HelloPYGZdq{}}PYG{p}{)}The control sequence at the end of the top line
of your error message was never def’ed. If you have
misspelled it (e.g.,hobx'), type
I’ and the correct
spelling (e.g., `Ihbox’). Otherwise just continue,
and I’ll forget about whatever was undefined.! Undefined control sequence.
PYG #1#2->FV@PYG
{#1}{FancyVerbBreakStart #2FancyVerbBreakStop }
l.2 …{l+s+s2}{PYGZdq{}HelloPYGZdq{}}PYG{p}{)}The control sequence at the end of the top line
of your error message was never def’ed. If you have
misspelled it (e.g.,hobx'), type
I’ and the correct
spelling (e.g., `Ihbox’). Otherwise just continue,
and I’ll forget about whatever was undefined.! Undefined control sequence.
PYG #1#2->FV@PYG
{#1}{FancyVerbBreakStart #2FancyVerbBreakStop }
l.2 …{l+s+s2}{PYGZdq{}HelloPYGZdq{}}PYG{p}{)}The control sequence at the end of the top line
of your error message was never def’ed. If you have
misspelled it (e.g.,hobx'), type
I’ and the correct
spelling (e.g., `Ihbox’). Otherwise just continue,
and I’ll forget about whatever was undefined.! Undefined control sequence.
PYGZdq
{}HelloPYGZdq {}
l.2 …{l+s+s2}{PYGZdq{}HelloPYGZdq{}}PYG{p}{)}The control sequence at the end of the top line
of your error message was never def’ed. If you have
misspelled it (e.g.,hobx'), type
I’ and the correct
spelling (e.g., `Ihbox’). Otherwise just continue,
and I’ll forget about whatever was undefined.! Undefined control sequence.
PYGZdq {}HelloPYGZdq
{}
l.2 …{l+s+s2}{PYGZdq{}HelloPYGZdq{}}PYG{p}{)}The control sequence at the end of the top line
of your error message was never def’ed. If you have
misspelled it (e.g.,hobx'), type
I’ and the correct
spelling (e.g., `Ihbox’). Otherwise just continue,
and I’ll forget about whatever was undefined.! Undefined control sequence.
PYG #1#2->FV@PYG
{#1}{FancyVerbBreakStart #2FancyVerbBreakStop }
l.2 …{l+s+s2}{PYGZdq{}HelloPYGZdq{}}PYG{p}{)}The control sequence at the end of the top line
of your error message was never def’ed. If you have
misspelled it (e.g.,hobx'), type
I’ and the correct
spelling (e.g., `Ihbox’). Otherwise just continue,
and I’ll forget about whatever was undefined.
On the command line everything works fine but in in Anki I get a python error.
My computer:
MacBook Air (13-inch, Mid 2012)
Processor 2 GHz Intel Core i7
Memory 8 GB 1600 MHz DDR3
My operating system:
OS X El Capitan
Version 10.11 (15A284)
My python library
~ % which python
/usr/bin/python
My python version:
~ % python -V
Python 2.7.10
This is my Edit_LaTeX_build_process.py file (Note: -shell-escape
):
newLaTeX =
[
["/Library/TeX/texbin/latex", "-shell-escape", "-interaction=nonstopmode", "tmp.tex"],
["/Library/TeX/texbin/dvipng", "-D", "200", "-T", "tight", "tmp.dvi", "-o", "tmp.png"]
]
# make the changes
import anki.latex
anki.latex.latexCmds = newLaTeX
These are my Card options (Note: usepackage{minted}
):
documentclass[12pt]{article}
special{papersize=3in,5in}
usepackage[utf8]{inputenc}
usepackage{amssymb,amsmath}
usepackage{minted}
pagestyle{empty}
setlength{parindent}{0in}
begin{document}
tiny
Successful test on command line:
test.tex
documentclass[12pt]{article}
special{papersize=3in,5in}
usepackage[utf8]{inputenc}
usepackage{amssymb,amsmath}
usepackage{minted}
pagestyle{empty}
setlength{parindent}{0in}
begin{document}
begin{minted}{cpp}
#include
using namespace std;
int main()
{
return 0;
}
end{minted}
end{document}
Shell command:
~ % latex -shell-escape test.tex
Unsuccessful test in Anki:
[latex]
begin{minted}{cpp}
#include
using namespace std;
int main()
{
return 0;
}
end{minted}
[/latex]
Error output:
Error executing /Library/TeX/texbin/latex.
Generated file: /var/folders/_q/53_csl094rqfn9rr18bn3bpw0000gn/T/anki_temp/tmp.tex
This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015) (preloaded format=latex)
write18 enabled.
entering extended mode
(./tmp.tex
LaTeX2e <2015/01/01>
Babel <3.9l> and hyphenation patterns for 21 languages loaded.
(/usr/local/texlive/2015basic/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/local/texlive/2015basic/texmf-dist/tex/latex/base/size12.clo))
(/usr/local/texlive/2015basic/texmf-dist/tex/latex/base/inputenc.sty
(/usr/local/texlive/2015basic/texmf-dist/tex/latex/base/utf8.def
(/usr/local/texlive/2015basic/texmf-dist/tex/latex/base/t1enc.dfu)
(/usr/local/texlive/2015basic/texmf-dist/tex/latex/base/ot1enc.dfu)
(/usr/local/texlive/2015basic/texmf-dist/tex/latex/base/omsenc.dfu)))
(/usr/local/texlive/2015basic/texmf-dist/tex/latex/amsfonts/amssymb.sty
(/usr/local/texlive/2015basic/texmf-dist/tex/latex/amsfonts/amsfonts.sty))
(/usr/local/texlive/2015basic/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/local/texlive/2015basic/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/local/texlive/2015basic/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/local/texlive/2015basic/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/local/texlive/2015basic/texmf-dist/tex/latex/amsmath/amsopn.sty))
(/usr/local/texlive/2015basic/texmf-dist/tex/latex/minted/minted.sty
(/usr/local/texlive/2015basic/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/local/texlive/2015basic/texmf-dist/tex/latex/oberdiek/kvoptions.sty
(/usr/local/texlive/2015basic/texmf- dist/tex/generic/oberdiek/ltxcmds.sty)
(/usr/local/texlive/2015basic/texmf- dist/tex/generic/oberdiek/kvsetkeys.sty
(/usr/local/texlive/2015basic/texmf-dist/tex/generic/oberdiek/infwarerr.sty)
(/usr/local/texlive/2015basic/texmf-dist/tex/generic/oberdiek/etexcmds.sty
(/usr/local/texlive/2015basic/texmf-dist/tex/generic/oberdiek/ifluatex.sty))))
(/usr/local/texlive/2015basic/texmf-dist/tex/latex/fancyvrb/fancyvrb.sty
Style option: `fancyvrb' v2.7a, with DG/SPQR fixes, and firstline=lastline fix
<2008/02/07> (tvz))
(/usr/local/texlive/2015basic/texmf-dist/tex/latex/float/float.sty)
(/usr/local/texlive/2015basic/texmf-dist/tex/latex/base/ifthen.sty)
(/usr/local/texlive/2015basic/texmf-dist/tex/latex/tools/calc.sty)
(/usr/local/texlive/2015basic/texmf-dist/tex/latex/ifplatform/ifplatform.sty
(/usr/local/texlive/2015basic/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty
(/usr/local/texlive/2015basic/texmf-dist/tex/generic/oberdiek/ifpdf.sty))
(/usr/local/texlive/2015basic/texmf-dist/tex/generic/oberdiek/catchfile.sty)
(./tmp.w18))
(/usr/local/texlive/2015basic/texmf-dist/tex/latex/etoolbox/etoolbox.sty)
(/usr/local/texlive/2015basic/texmf-dist/tex/generic/xstring/xstring.sty
(/usr/local/texlive/2015basic/texmf-dist/tex/generic/xstring/xstring.tex))
(/usr/local/texlive/2015basic/texmf-dist/tex/latex/lineno/lineno.sty))
(./_minted-tmp/default.pygstyle)/usr/local/bin/pygmentize
(./tmp.aux)
(/usr/local/texlive/2015basic/texmf-dist/tex/latex/xcolor/xcolor.sty
(/usr/local/texlive/2015basic/texmf-dist/tex/latex/latexconfig/color.cfg)
(/usr/local/texlive/2015basic/texmf-dist/tex/latex/graphics/dvips.def))
(./_minted-tmp/default-pyg-prefix.pygstyle)Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site- packages/py2app/apptemplate/lib/site.py", line 22, in <module>
zipimport.ZipImportError: can't decompress data; zlib not available
! Package minted Error: Missing Pygments output; inputminted was
probably given a file that does not exist--otherwise, you may need
the outputdir package option, or may be using an incompatible build tool.
See the minted package documentation for explanation.
Type H <return> for immediate help.
...
l.22 end{minted}
(./tmp.aux) )
(see the transcript file for additional information)
No pages of output.
Transcript written on tmp.log.
Any help getting this to work is very much appreciated because after trying to get this to work for over a day now I ran out of ideas.
I’m writing on a Latex Document and want to have some Code Highlighting. So I decided to use the minted package. But i cant get the minimal example to work.
The Pygments package is installed via anaconda under the path /anaconda3/lib/python3.7/site-packages. Running pygmentize -V from the CLI works.
Im using TexStudio and also have included the «-shell-escape» in the Commands.
But anyway I’m getting the following errors
line 94: Paragraph ended before zap@space was complete....edef@tempa{expandafterzap@space@tempa
line 104: Paragraph ended before ip@only@six was complete. ...ef@tempc{expandafterip@only@six@tempa
line 104: Undefined control sequence. ...expandafterip@only@six@tempa------@nil
line 5: Package minted Error: You must have `pygmentize' installed to use this package. begin{document}
line 11: Package minted Error: Missing Pygments output; inputminted wasor may be using frozencache with a missing file. end{minted}^^M
line 11: Package minted Error: Missing Pygments output; inputminted wasor may be using frozencache with a missing file. end{minted}^^M
line 11: Package minted Error: Missing Pygments output; inputminted wasor may be using frozencache with a missing file. end{minted}
The example:
documentclass{article}
usepackage{minted}
begin{document}
begin{minted}{c}
int main() {
printf("hello, world");
return 0;
}
end{minted}
end{document}
Operating System is macOS Mojave.
Can anyone tell me what’s going on?
Update: As requested in the comments, here is the complete log
This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019) (preloaded format=pdflatex 2019.10.21) 21 OCT 2019 16:34
entering extended mode
write18 enabled.
%&-line parsing enabled.
**PraxisphaseAufsatz.tex
(./PraxisphaseAufsatz.tex
LaTeX2e <2019-10-01> patch level 1
(/usr/local/texlive/2019/texmf-dist/tex/latex/base/article.cls
Document Class: article 2019/08/27 v1.4j Standard LaTeX document class
(/usr/local/texlive/2019/texmf-dist/tex/latex/base/size10.clo
File: size10.clo 2019/08/27 v1.4j Standard LaTeX file (size option)
)
c@part=count80
c@section=count81
c@subsection=count82
c@subsubsection=count83
c@paragraph=count84
c@subparagraph=count85
c@figure=count86
c@table=count87
abovecaptionskip=skip41
belowcaptionskip=skip42
bibindent=dimen102
)
(/usr/local/texlive/2019/texmf-dist/tex/latex/minted/minted.sty
Package: minted 2017/07/19 v2.5 Yet another Pygments shim for LaTeX
(/usr/local/texlive/2019/texmf-dist/tex/latex/graphics/keyval.sty
Package: keyval 2014/10/28 v1.15 key=value parser (DPC)
KV@toks@=toks14
)
(/usr/local/texlive/2019/texmf-dist/tex/latex/oberdiek/kvoptions.sty
Package: kvoptions 2016/05/16 v3.12 Key value format for package options (HO)
(/usr/local/texlive/2019/texmf-dist/tex/generic/oberdiek/ltxcmds.sty
Package: ltxcmds 2016/05/16 v1.23 LaTeX kernel commands for general use (HO)
)
(/usr/local/texlive/2019/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty
Package: kvsetkeys 2016/05/16 v1.17 Key value parser (HO)
(/usr/local/texlive/2019/texmf-dist/tex/generic/oberdiek/infwarerr.sty
Package: infwarerr 2016/05/16 v1.4 Providing info/warning/error messages (HO)
)
(/usr/local/texlive/2019/texmf-dist/tex/generic/oberdiek/etexcmds.sty
Package: etexcmds 2016/05/16 v1.6 Avoid name clashes with e-TeX commands (HO)
(/usr/local/texlive/2019/texmf-dist/tex/generic/oberdiek/ifluatex.sty
Package: ifluatex 2016/05/16 v1.4 Provides the ifluatex switch (HO)
Package ifluatex Info: LuaTeX not detected.
))))
(/usr/local/texlive/2019/texmf-dist/tex/latex/fvextra/fvextra.sty
Package: fvextra 2019/02/04 v1.4 fvextra - extensions and patches for fancyvrb
(/usr/local/texlive/2019/texmf-dist/tex/latex/base/ifthen.sty
Package: ifthen 2014/09/29 v1.1c Standard LaTeX ifthen package (DPC)
)
(/usr/local/texlive/2019/texmf-dist/tex/latex/etoolbox/etoolbox.sty
Package: etoolbox 2019/09/21 v2.5h e-TeX tools for LaTeX (JAW)
etb@tempcnta=count88
)
(/usr/local/texlive/2019/texmf-dist/tex/latex/fancyvrb/fancyvrb.sty
Package: fancyvrb 2019/01/15
Style option: `fancyvrb' v3.2a <2019/01/15> (tvz)
FV@CodeLineNo=count89
FV@InFile=read1
FV@TabBox=box27
c@FancyVerbLine=count90
FV@StepNumber=count91
FV@OutFile=write3
)
(/usr/local/texlive/2019/texmf-dist/tex/latex/upquote/upquote.sty
Package: upquote 2012/04/19 v1.3 upright-quote and grave-accent glyphs in verba
tim
)
(/usr/local/texlive/2019/texmf-dist/tex/latex/lineno/lineno.sty
Package: lineno 2005/11/02 line numbers on paragraphs v4.41
linenopenalty=count92
output=toks15
linenoprevgraf=count93
linenumbersep=dimen103
linenumberwidth=dimen104
c@linenumber=count94
c@pagewiselinenumber=count95
c@LN@truepage=count96
c@internallinenumber=count97
c@internallinenumbers=count98
quotelinenumbersep=dimen105
bframerule=dimen106
bframesep=dimen107
bframebox=box28
LaTeX Info: Redefining \ on input line 3056.
)
c@FV@TrueTabGroupLevel=count99
c@FV@TrueTabCounter=count100
FV@TabBox@Group=box29
FV@TmpLength=skip43
c@FV@HighlightLinesStart=count101
c@FV@HighlightLinesStop=count102
FV@LoopCount=count103
FV@NCharsBox=box30
FV@BreakIndent=dimen108
FV@BreakIndentNChars=count104
FV@BreakSymbolSepLeft=dimen109
FV@BreakSymbolSepLeftNChars=count105
FV@BreakSymbolSepRight=dimen110
FV@BreakSymbolSepRightNChars=count106
FV@BreakSymbolIndentLeft=dimen111
FV@BreakSymbolIndentLeftNChars=count107
FV@BreakSymbolIndentRight=dimen112
FV@BreakSymbolIndentRightNChars=count108
c@FancyVerbLineBreakLast=count109
FV@LineBox=box31
FV@LineIndentBox=box32
FV@LineWidth=dimen113
)
(/usr/local/texlive/2019/texmf-dist/tex/latex/tools/calc.sty
Package: calc 2017/05/25 v4.3 Infix arithmetic (KKT,FJ)
calc@Acount=count110
calc@Bcount=count111
calc@Adimen=dimen114
calc@Bdimen=dimen115
calc@Askip=skip44
calc@Bskip=skip45
LaTeX Info: Redefining setlength on input line 80.
LaTeX Info: Redefining addtolength on input line 81.
calc@Ccount=count112
calc@Cskip=skip46
)
(/usr/local/texlive/2019/texmf-dist/tex/latex/tools/shellesc.sty
Package: shellesc 2016/06/07 v0.02b unified shell escape interface for LaTeX
Package shellesc Info: Unrestricted shell escape enabled on input line 70.
)
(/usr/local/texlive/2019/texmf-dist/tex/latex/ifplatform/ifplatform.sty
Package: ifplatform 2017/10/13 v0.4a Testing for the operating system
(/usr/local/texlive/2019/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty
Package: pdftexcmds 2019/07/25 v0.30 Utility functions of pdfTeX for LuaTeX (HO
)
(/usr/local/texlive/2019/texmf-dist/tex/generic/oberdiek/ifpdf.sty
Package: ifpdf 2018/09/07 v3.3 Provides the ifpdf switch
)
Package pdftexcmds Info: LuaTeX not detected.
Package pdftexcmds Info: pdf@primitive is available.
Package pdftexcmds Info: pdf@ifprimitive is available.
Package pdftexcmds Info: pdfdraftmode found.
)
(/usr/local/texlive/2019/texmf-dist/tex/generic/oberdiek/catchfile.sty
Package: catchfile 2016/05/16 v1.7 Catch the contents of a file (HO)
)
runsystem(uname -s > "PraxisphaseAufsatz.w18")...executed.
(./PraxisphaseAufsatz.w18)
runsystem(rm -- "PraxisphaseAufsatz.w18")...executed.
Runaway argument?
! Paragraph ended before zap@space was complete.
<to be read again>
par
l.94 ...edef@tempa{expandafterzap@space@tempa
@empty}
I suspect you've forgotten a `}', causing me to apply this
control sequence to too much text. How can we recover?
My plan is to forget the whole thing and hope for the best.
Runaway argument?
! Paragraph ended before ip@only@six was complete.
<to be read again>
par
l.104 ...ef@tempc{expandafterip@only@six@tempa
------@nil}
I suspect you've forgotten a `}', causing me to apply this
control sequence to too much text. How can we recover?
My plan is to forget the whole thing and hope for the best.
! Undefined control sequence.
l.104 ...expandafterip@only@six@tempa------@nil
}
The control sequence at the end of the top line
of your error message was never def'ed. If you have
misspelled it (e.g., `hobx'), type `I' and the correct
spelling (e.g., `Ihbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
) (/usr/local/texlive/2019/texmf-dist/tex/generic/xstring/xstring.sty
(/usr/local/texlive/2019/texmf-dist/tex/generic/xstring/xstring.tex
integerpart=count113
decimalpart=count114
)
Package: xstring 2019/02/06 v1.83 String manipulations (CT)
)
(/usr/local/texlive/2019/texmf-dist/tex/latex/framed/framed.sty
Package: framed 2011/10/22 v 0.96: framed or shaded text with page breaks
OuterFrameSep=skip47
fb@frw=dimen116
fb@frh=dimen117
FrameRule=dimen118
FrameSep=dimen119
)
(/usr/local/texlive/2019/texmf-dist/tex/latex/float/float.sty
Package: float 2001/11/08 v1.3d Float enhancements (AL)
c@float@type=count115
float@exts=toks16
float@box=box33
@float@everytoks=toks17
@floatcapt=box34
)
minted@appexistsfile=read2
minted@bgbox=box35
minted@code=write4
c@minted@FancyVerbLineTemp=count116
c@minted@pygmentizecounter=count117
@float@every@listing=toks18
c@listing=count118
)
runsystem(mkdir -p _minted-PraxisphaseAufsatz)...executed.
(/usr/local/texlive/2019/texmf-dist/tex/latex/xcolor/xcolor.sty
Package: xcolor 2016/05/11 v2.12 LaTeX color extensions (UK)
(/usr/local/texlive/2019/texmf-dist/tex/latex/graphics-cfg/color.cfg
File: color.cfg 2016/01/02 v1.6 sample color configuration
)
Package xcolor Info: Driver file: pdftex.def on input line 225.
(/usr/local/texlive/2019/texmf-dist/tex/latex/graphics-def/pdftex.def
File: pdftex.def 2018/01/08 v1.0l Graphics/color driver for pdftex
)
Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1348.
Package xcolor Info: Model `hsb' substituted by `rgb' on input line 1352.
Package xcolor Info: Model `RGB' extended on input line 1364.
Package xcolor Info: Model `HTML' substituted by `rgb' on input line 1366.
Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1367.
Package xcolor Info: Model `tHsb' substituted by `hsb' on input line 1368.
Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1369.
Package xcolor Info: Model `Gray' substituted by `gray' on input line 1370.
Package xcolor Info: Model `wave' substituted by `hsb' on input line 1371.
)
runsystem(which pygmentize && touch PraxisphaseAufsatz.aex)...executed.
! Package minted Error: You must have `pygmentize' installed to use this packag
e.
See the minted package documentation for explanation.
Type H <return> for immediate help.
...
l.5 begin{document}
Refer to the installation instructions in the minted documentation for more inf
ormation.
(./PraxisphaseAufsatz.aux)
openout1 = `PraxisphaseAufsatz.aux'.
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
(/usr/local/texlive/2019/texmf-dist/tex/context/base/mkii/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
scratchcounter=count119
scratchdimen=dimen120
scratchbox=box36
nofMPsegments=count120
nofMParguments=count121
everyMPshowfont=toks19
MPscratchCnt=count122
MPscratchDim=dimen121
MPnumerator=count123
makeMPintoPDFobject=count124
everyMPtoPDFconversion=toks20
)
openout3 = `PraxisphaseAufsatz.pyg'.
runsystem(pygmentize -S default -f latex -P commandprefix=PYG > _minted-Praxisp
haseAufsatz/default-pyg-prefix.pygstyle)...executed.
! Package minted Error: Missing Pygments output; inputminted was
probably given a file that does not exist--otherwise, you may need
the outputdir package option, or may be using an incompatible build tool,
or may be using frozencache with a missing file.
See the minted package documentation for explanation.
Type H <return> for immediate help.
...
l.11 end{minted}^^M
This could be caused by using -output-directory or -aux-directory
without setting minted's outputdir, or by using a build tool that
changes paths in ways minted cannot detect,
or using frozencache with a missing file.
runsystem(pygmentize -S default -f latex -P commandprefix=PYGdefault > _minted-
PraxisphaseAufsatz/default.pygstyle)...executed.
! Package minted Error: Missing Pygments output; inputminted was
probably given a file that does not exist--otherwise, you may need
the outputdir package option, or may be using an incompatible build tool,
or may be using frozencache with a missing file.
See the minted package documentation for explanation.
Type H <return> for immediate help.
...
l.11 end{minted}^^M
This could be caused by using -output-directory or -aux-directory
without setting minted's outputdir, or by using a build tool that
changes paths in ways minted cannot detect,
or using frozencache with a missing file.
runsystem(pygmentize -l c -f latex -P commandprefix=PYG -F tokenmerge -o _minte
d-PraxisphaseAufsatz/916909323916480C99F1AA97E621BB15219288A92FD0AFDEBD8CE6CF1E
55BAC6.pygtex PraxisphaseAufsatz.pyg)...executed.
! Package minted Error: Missing Pygments output; inputminted was
probably given a file that does not exist--otherwise, you may need
the outputdir package option, or may be using an incompatible build tool,
or may be using frozencache with a missing file.
See the minted package documentation for explanation.
Type H <return> for immediate help.
...
l.11 end{minted}
This could be caused by using -output-directory or -aux-directory
without setting minted's outputdir, or by using a build tool that
changes paths in ways minted cannot detect,
or using frozencache with a missing file.
(./PraxisphaseAufsatz.aux)
runsystem(rm PraxisphaseAufsatz.pyg)...executed.
runsystem(rm PraxisphaseAufsatz.out.pyg)...executed.
)
Here is how much of TeX's memory you used:
4533 strings out of 492167
82218 string characters out of 6125388
193966 words of memory out of 5000000
8870 multiletter control sequences out of 15000+600000
3640 words of font info for 14 fonts, out of 8000000 for 9000
1141 hyphenation exceptions out of 8191
42i,1n,37p,833b,142s stack positions out of 5000i,500n,10000p,200000b,80000s
No pages of output.
PDF statistics:
0 PDF objects out of 1000 (max. 8388607)
0 named destinations out of 1000 (max. 500000)
1 words of extra memory for PDF output out of 10000 (max. 10000000)
(./test_doc.aux)
(/usr/local/texlive/2018/texmf-dist/tex/context/base/mkii/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
)Traceback (most recent call last):
File "/usr/local/bin/pygmentize", line 11, in <module>
load_entry_point('Pygments==2.6.1', 'console_scripts', 'pygmentize')()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 489, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 2843, in load_entry_point
return ep.load()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 2434, in load
return self.resolve()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 2440, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/Library/Python/2.7/site-packages/Pygments-2.6.1-py2.7.egg/pygments/cmdline.py", line 161
print("%s not found!" % what, file=sys.stderr)
^
SyntaxError: invalid syntax
system returned with code 256
(./.texpadtemp/_minted-test_doc/default-pyg-prefix.pygstyle)Traceback (most recent call last):
File "/usr/local/bin/pygmentize", line 11, in <module>
load_entry_point('Pygments==2.6.1', 'console_scripts', 'pygmentize')()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 489, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 2843, in load_entry_point
return ep.load()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 2434, in load
return self.resolve()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 2440, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/Library/Python/2.7/site-packages/Pygments-2.6.1-py2.7.egg/pygments/cmdline.py", line 161
print("%s not found!" % what, file=sys.stderr)
^
SyntaxError: invalid syntax
system returned with code 256
(./.texpadtemp/_minted-test_doc/default.pygstyle)Traceback (most recent call last):
File "/usr/local/bin/pygmentize", line 11, in <module>
load_entry_point('Pygments==2.6.1', 'console_scripts', 'pygmentize')()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 489, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 2843, in load_entry_point
return ep.load()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 2434, in load
return self.resolve()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 2440, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/Library/Python/2.7/site-packages/Pygments-2.6.1-py2.7.egg/pygments/cmdline.py", line 161
print("%s not found!" % what, file=sys.stderr)
^
SyntaxError: invalid syntax
system returned with code 256
! Package minted Error: Missing Pygments output; inputminted was
probably given a file that does not exist--otherwise, you may need
the outputdir package option, or may be using an incompatible build tool,
or may be using frozencache with a missing file.
See the minted package documentation for explanation.
Type H <return> for immediate help.
...
It seems to be an issue with the python script cmdline.py. There is a «syntax error». Do you think it’s my python environment? That script works when I run it using python3.8 but not python 2.7.1, which is what I think Latex is seeing…
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
2
I installed minted today as well as Python and Pygments, which I can run from the cmd. When I try this code
documentclassarticle
usepackageminted
begindocument
beginmintedc
int main()
printf("hello, world");
return 0;endminted
enddocument
I get the following error message:
! Package minted Error: Missing Pygments output; inputminted wasprobably given a file that does not exist—otherwise, you may needthe outputdir package option, or may be using an incompatible build tool,or may be using frozencache with a missing file.See the minted package documentation for explanation.Type H for immediate help…. endminted
The other threads didn’t help me and neither did Google. How do I solve this problem? I have set my option in pdfLatex to
pdflatex -synctex=1 -interaction=nonstopmode --shell-escape %filename.tex
Here is my log file
My PATH is set so I can execute Python and pygmetize from the cmd without errors, and I can load the package as well. When it comes to using the minted package is when I receive the error.
errors minted pygments missing
up vote
1
down vote
favorite
2
I installed minted today as well as Python and Pygments, which I can run from the cmd. When I try this code
documentclassarticle
usepackageminted
begindocument
beginmintedc
int main()
printf("hello, world");
return 0;endminted
enddocument
I get the following error message:
! Package minted Error: Missing Pygments output; inputminted wasprobably given a file that does not exist—otherwise, you may needthe outputdir package option, or may be using an incompatible build tool,or may be using frozencache with a missing file.See the minted package documentation for explanation.Type H for immediate help…. endminted
The other threads didn’t help me and neither did Google. How do I solve this problem? I have set my option in pdfLatex to
pdflatex -synctex=1 -interaction=nonstopmode --shell-escape %filename.tex
Here is my log file
My PATH is set so I can execute Python and pygmetize from the cmd without errors, and I can load the package as well. When it comes to using the minted package is when I receive the error.
errors minted pygments missing
up vote
1
down vote
favorite
2
up vote
1
down vote
favorite
2
2
I installed minted today as well as Python and Pygments, which I can run from the cmd. When I try this code
documentclassarticle
usepackageminted
begindocument
beginmintedc
int main()
printf("hello, world");
return 0;endminted
enddocument
I get the following error message:
! Package minted Error: Missing Pygments output; inputminted wasprobably given a file that does not exist—otherwise, you may needthe outputdir package option, or may be using an incompatible build tool,or may be using frozencache with a missing file.See the minted package documentation for explanation.Type H for immediate help…. endminted
The other threads didn’t help me and neither did Google. How do I solve this problem? I have set my option in pdfLatex to
pdflatex -synctex=1 -interaction=nonstopmode --shell-escape %filename.tex
Here is my log file
My PATH is set so I can execute Python and pygmetize from the cmd without errors, and I can load the package as well. When it comes to using the minted package is when I receive the error.
errors minted pygments missing
I installed minted today as well as Python and Pygments, which I can run from the cmd. When I try this code
documentclassarticle
usepackageminted
begindocument
beginmintedc
int main()
printf("hello, world");
return 0;endminted
enddocument
I get the following error message:
! Package minted Error: Missing Pygments output; inputminted wasprobably given a file that does not exist—otherwise, you may needthe outputdir package option, or may be using an incompatible build tool,or may be using frozencache with a missing file.See the minted package documentation for explanation.Type H for immediate help…. endminted
The other threads didn’t help me and neither did Google. How do I solve this problem? I have set my option in pdfLatex to
pdflatex -synctex=1 -interaction=nonstopmode --shell-escape %filename.tex
Here is my log file
My PATH is set so I can execute Python and pygmetize from the cmd without errors, and I can load the package as well. When it comes to using the minted package is when I receive the error.
errors minted pygments missing
Your codes are working fine for me, I’ve tried the following commands I used the DOS
prompt to get the output, hope --shell-escape
is the solution for your problem, but not sure, please try at your end:
latex --shell-escape %filename.tex
to get the output as in DVI format
pdflatex --shell-escape %filename.tex
to get the output as in PDF format
and the output was generated as:
best wishes
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: «».split(» «),
id: «85»
;
initTagRenderer(«».split(» «), «».split(» «), channelOptions);
StackExchange.using(«externalEditor», function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using(«snippets», function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: ‘answer’,
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: «»,
onDemand: true,
discardSelector: «.discard-answer»
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave(‘#login-link’);
var $window = $(window),
onScroll = function(e)
var $elem = $(‘.new-login-left’),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using(‘gps’, function() StackExchange.gps.track(’embedded_signup_form.view’, location: ‘question_page’ ); );
$window.unbind(‘scroll’, onScroll);
;
$window.on(‘scroll’, onScroll);
);
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin(‘.new-post-login’, ‘https%3a%2f%2ftex.stackexchange.com%2fquestions%2f440511%2fpackage-minted-error-missing-pygments-output%23new-answer’, ‘question_page’);
);
Post as a guest
Your codes are working fine for me, I’ve tried the following commands I used the DOS
prompt to get the output, hope --shell-escape
is the solution for your problem, but not sure, please try at your end:
latex --shell-escape %filename.tex
to get the output as in DVI format
pdflatex --shell-escape %filename.tex
to get the output as in PDF format
and the output was generated as:
best wishes
Your codes are working fine for me, I’ve tried the following commands I used the DOS
prompt to get the output, hope --shell-escape
is the solution for your problem, but not sure, please try at your end:
latex --shell-escape %filename.tex
to get the output as in DVI format
pdflatex --shell-escape %filename.tex
to get the output as in PDF format
and the output was generated as:
best wishes
Your codes are working fine for me, I’ve tried the following commands I used the DOS
prompt to get the output, hope --shell-escape
is the solution for your problem, but not sure, please try at your end:
latex --shell-escape %filename.tex
to get the output as in DVI format
pdflatex --shell-escape %filename.tex
to get the output as in PDF format
and the output was generated as:
best wishes
Your codes are working fine for me, I’ve tried the following commands I used the DOS
prompt to get the output, hope --shell-escape
is the solution for your problem, but not sure, please try at your end:
latex --shell-escape %filename.tex
to get the output as in DVI format
pdflatex --shell-escape %filename.tex
to get the output as in PDF format
and the output was generated as:
best wishes
Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave(‘#login-link’);
var $window = $(window),
onScroll = function(e)
var $elem = $(‘.new-login-left’),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using(‘gps’, function() StackExchange.gps.track(’embedded_signup_form.view’, location: ‘question_page’ ); );
$window.unbind(‘scroll’, onScroll);
;
$window.on(‘scroll’, onScroll);
);
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin(‘.new-post-login’, ‘https%3a%2f%2ftex.stackexchange.com%2fquestions%2f440511%2fpackage-minted-error-missing-pygments-output%23new-answer’, ‘question_page’);
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave(‘#login-link’);
var $window = $(window),
onScroll = function(e)
var $elem = $(‘.new-login-left’),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using(‘gps’, function() StackExchange.gps.track(’embedded_signup_form.view’, location: ‘question_page’ ); );
$window.unbind(‘scroll’, onScroll);
;
$window.on(‘scroll’, onScroll);
);
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave(‘#login-link’);
var $window = $(window),
onScroll = function(e)
var $elem = $(‘.new-login-left’),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using(‘gps’, function() StackExchange.gps.track(’embedded_signup_form.view’, location: ‘question_page’ ); );
$window.unbind(‘scroll’, onScroll);
;
$window.on(‘scroll’, onScroll);
);
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave(‘#login-link’);
var $window = $(window),
onScroll = function(e)
var $elem = $(‘.new-login-left’),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using(‘gps’, function() StackExchange.gps.track(’embedded_signup_form.view’, location: ‘question_page’ ); );
$window.unbind(‘scroll’, onScroll);
;
$window.on(‘scroll’, onScroll);
);
Sign up using Email and Password
Sign up using Email and Password
Post as a guest