gpoore / minted

minted is a LaTeX package that provides syntax highlighting using the Pygments library. Highlighted source code can be customized using fancyvrb.
1.74k stars 126 forks source link

Minted does not render pdf output #297

Closed VivaldoMendes closed 3 years ago

VivaldoMendes commented 3 years ago

I am on a Windows 10 machine, I am using TexStudio (3.1.1) and MiKTeX (21.3) is updated. I have used jlcode.sty to embed Julia code into LaTeX documents. I have tried many times with minted.sty, but I have somehow failed. Now, I think I am closer to have the problem solved, but I need some help.

I do have pygments.py 2.8.1 installed, an updated minted.sty package in MiKTeX, I have set the PATH to pygmentize.exe (C:\Users\Utilizador\Anaconda3\Scripts), and, apparently, I have been able to overcome the problem of the “–-shell escape flag” both ways (using PdfLatex and LuaLaTex compilers):

(i) in the config of TexStudio: pdflatex -synctex=1 -interaction=nonstopmode --shell-escape %.tex

(ii) and with the top document in line “magic” comment: %!TeX TXS-program:compile = txs:///lualatex/[–shell-escape]

Recently, I found that using the declaration \usepackage[cache=false]{minted}, most problems with the shell-escape flag disappeared and apparently, TexStudio started to compile the document correctly, the only problem is that it does not produce a pdf output of the document. The information I get is the following:

Process started: lualatex.exe --shell-escape -synctex=1 -interaction=nonstopmode "Minted_Experience_6".tex

The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
Process exited normally

What does this "The system cannot find the specified path" message mean? I searched quite a lot but found no answer to this problem.

MWE: it is the first example that comes in the minted package documentation:

\documentclass{article}
\usepackage{minted}
\begin{document}
\begin{minted}{c}
int main() {
printf("hello, world");
return 0;
}
\end{minted}
\end{document}

Help would be much appreciated. I have been on this problem for more than one year, and minted is a wonderful package.

gpoore commented 3 years ago

Can you post the full log output when you try to compile the MWE, along with the exact command you are trying to use to compile it?

VivaldoMendes commented 3 years ago

In the meantime, I found that (I think) no actual pdf is produced. I checked in the folder where the original TexStudio files are and no pdf output is available there. Moreover, I know quite well how to work with minted. The only problem is that I cannot work with it where I most need it: on my computer. I am aware of a previous question here where it is mentioned that there were bugs on MiKTeX. I checked on two packages and I got this information (I forgot how to get their exact versions in TeXStudio):

Thanks a lot for your help. I am in great need of using minted because there is a new package JuliaMono that allows the use of a huge amount of Unicode characters in minted, which for Julia is extremely useful.

The commands are as follows:

% !TeX document-id = {8dd3f42b-6bb9-41f5-bda8-7a03946b7308}
%!TeX TXS-program:compile = txs:///pdflatex/[--shell-escape]
\documentclass{article}
\usepackage{xcolor}
\usepackage[cache=false]{minted}

\begin{document}
    \begin{minted}{c}
        int main() {
            printf("hello, world");
            return 0;
        }
    \end{minted}
\end{document}

And the log is

This is pdfTeX, Version 3.141592653-2.6-1.40.22 (MiKTeX 21.3) (preloaded format=pdflatex 2021.3.20)  21 MAR 2021 01:12
entering extended mode
**./Minted_Experience.tex
(Minted_Experience.tex
LaTeX2e <2020-10-01> patch level 4
L3 programming layer <2021-02-18>
(C:\Program Files\MiKTeX 2.9\tex/latex/base\article.cls
Document Class: article 2020/04/10 v1.4m Standard LaTeX document class
(C:\Program Files\MiKTeX 2.9\tex/latex/base\size10.clo
File: size10.clo 2020/04/10 v1.4m Standard LaTeX file (size option)
)
\c@part=\count179
\c@section=\count180
\c@subsection=\count181
\c@subsubsection=\count182
\c@paragraph=\count183
\c@subparagraph=\count184
\c@figure=\count185
\c@table=\count186
\abovecaptionskip=\skip47
\belowcaptionskip=\skip48
\bibindent=\dimen138
)
(C:\Program Files\MiKTeX 2.9\tex/latex/xcolor\xcolor.sty
Package: xcolor 2016/05/11 v2.12 LaTeX color extensions (UK)

(C:\Program Files\MiKTeX 2.9\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.

(C:\Program Files\MiKTeX 2.9\tex/latex/graphics-def\pdftex.def
File: pdftex.def 2020/10/05 v1.2a 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.
) (minted.sty
Package: minted 2017/09/03 v2.5.1dev Yet another Pygments shim for LaTeX

(C:\Program Files\MiKTeX 2.9\tex/latex/graphics\keyval.sty
Package: keyval 2014/10/28 v1.15 key=value parser (DPC)
\KV@toks@=\toks15
)
(C:\Program Files\MiKTeX 2.9\tex/latex/kvoptions\kvoptions.sty
Package: kvoptions 2020-10-07 v3.14 Key value format for package options (HO)

(C:\Program Files\MiKTeX 2.9\tex/generic/ltxcmds\ltxcmds.sty
Package: ltxcmds 2020-05-10 v1.25 LaTeX kernel commands for general use (HO)
)
(C:\Program Files\MiKTeX 2.9\tex/generic/kvsetkeys\kvsetkeys.sty
Package: kvsetkeys 2019/12/15 v1.18 Key value parser (HO)
))
(C:\Program Files\MiKTeX 2.9\tex/latex/fvextra\fvextra.sty
Package: fvextra 2019/02/04 v1.4 fvextra - extensions and patches for fancyvrb

(C:\Program Files\MiKTeX 2.9\tex/latex/base\ifthen.sty
Package: ifthen 2014/09/29 v1.1c Standard LaTeX ifthen package (DPC)
)
(C:\Program Files\MiKTeX 2.9\tex/latex/etoolbox\etoolbox.sty
Package: etoolbox 2020/10/05 v2.5k e-TeX tools for LaTeX (JAW)
\etb@tempcnta=\count187
)
(C:\Program Files\MiKTeX 2.9\tex/latex/fancyvrb\fancyvrb.sty
Package: fancyvrb 2021/01/20 v3.7 verbatim text (tvz,hv)
\FV@CodeLineNo=\count188
\FV@InFile=\read2
\FV@TabBox=\box47
\c@FancyVerbLine=\count189
\FV@StepNumber=\count190
\FV@OutFile=\write3
)
(C:\Program Files\MiKTeX 2.9\tex/latex/upquote\upquote.sty
Package: upquote 2012/04/19 v1.3 upright-quote and grave-accent glyphs in verba
tim
)
(C:\Program Files\MiKTeX 2.9\tex/latex/lineno\lineno.sty
Package: lineno 2005/11/02 line numbers on paragraphs v4.41
\linenopenalty=\count191
\output=\toks16
\linenoprevgraf=\count192
\linenumbersep=\dimen139
\linenumberwidth=\dimen140
\c@linenumber=\count193
\c@pagewiselinenumber=\count194
\c@LN@truepage=\count195
\c@internallinenumber=\count196
\c@internallinenumbers=\count197
\quotelinenumbersep=\dimen141
\bframerule=\dimen142
\bframesep=\dimen143
\bframebox=\box48
LaTeX Info: Redefining \\ on input line 3056.
)
\c@FV@TrueTabGroupLevel=\count198
\c@FV@TrueTabCounter=\count199
\FV@TabBox@Group=\box49
\FV@TmpLength=\skip49
\c@FV@HighlightLinesStart=\count266
\c@FV@HighlightLinesStop=\count267
\FV@LoopCount=\count268
\FV@NCharsBox=\box50
\FV@BreakIndent=\dimen144
\FV@BreakIndentNChars=\count269
\FV@BreakSymbolSepLeft=\dimen145
\FV@BreakSymbolSepLeftNChars=\count270
\FV@BreakSymbolSepRight=\dimen146
\FV@BreakSymbolSepRightNChars=\count271
\FV@BreakSymbolIndentLeft=\dimen147
\FV@BreakSymbolIndentLeftNChars=\count272
\FV@BreakSymbolIndentRight=\dimen148
\FV@BreakSymbolIndentRightNChars=\count273
\c@FancyVerbLineBreakLast=\count274
\FV@LineBox=\box51
\FV@LineIndentBox=\box52
\FV@LineWidth=\dimen149
)
(C:\Program Files\MiKTeX 2.9\tex/latex/latex-tools\calc.sty
Package: calc 2017/05/25 v4.3 Infix arithmetic (KKT,FJ)
\calc@Acount=\count275
\calc@Bcount=\count276
\calc@Adimen=\dimen150
\calc@Bdimen=\dimen151
\calc@Askip=\skip50
\calc@Bskip=\skip51
LaTeX Info: Redefining \setlength on input line 80.
LaTeX Info: Redefining \addtolength on input line 81.
\calc@Ccount=\count277
\calc@Cskip=\skip52
)
(C:\Program Files\MiKTeX 2.9\tex/latex/latex-tools\shellesc.sty
Package: shellesc 2019/11/08 v1.0c unified shell escape interface for LaTeX
Package shellesc Info: Unrestricted shell escape enabled on input line 75.
)
(C:\Program Files\MiKTeX 2.9\tex/latex/ifplatform\ifplatform.sty
Package: ifplatform 2017/10/13 v0.4a Testing for the operating system

(C:\Program Files\MiKTeX 2.9\tex/generic/pdftexcmds\pdftexcmds.sty
Package: pdftexcmds 2020-06-27 v0.33 Utility functions of pdfTeX for LuaTeX (HO
)

(C:\Program Files\MiKTeX 2.9\tex/generic/infwarerr\infwarerr.sty
Package: infwarerr 2019/12/03 v1.5 Providing info/warning/error messages (HO)
)
(C:\Program Files\MiKTeX 2.9\tex/generic/iftex\iftex.sty
Package: iftex 2020/03/06 v1.0d TeX engine tests
)
Package pdftexcmds Info: \pdf@primitive is available.
Package pdftexcmds Info: \pdf@ifprimitive is available.
Package pdftexcmds Info: \pdfdraftmode found.
)
(C:\Program Files\MiKTeX 2.9\tex/generic/catchfile\catchfile.sty
Package: catchfile 2019/12/09 v1.8 Catch the contents of a file (HO)

(C:\Program Files\MiKTeX 2.9\tex/generic/etexcmds\etexcmds.sty
Package: etexcmds 2019/12/15 v1.7 Avoid name clashes with e-TeX commands (HO)
))
(C:\Program Files\MiKTeX 2.9\tex/generic/iftex\ifluatex.sty
Package: ifluatex 2019/10/25 v1.5 ifluatex legacy package. Use iftex instead.
))
(C:\Program Files\MiKTeX 2.9\tex/latex/xstring\xstring.sty
(C:\Program Files\MiKTeX 2.9\tex/generic/xstring\xstring.tex
\integerpart=\count278
\decimalpart=\count279
)
Package: xstring 2019/02/06 v1.83 String manipulations (CT)
)
(C:\Program Files\MiKTeX 2.9\tex/latex/framed\framed.sty
Package: framed 2011/10/22 v 0.96: framed or shaded text with page breaks
\OuterFrameSep=\skip53
\fb@frw=\dimen152
\fb@frh=\dimen153
\FrameRule=\dimen154
\FrameSep=\dimen155
)
(C:\Program Files\MiKTeX 2.9\tex/latex/float\float.sty
Package: float 2001/11/08 v1.3d Float enhancements (AL)
\c@float@type=\count280
\float@exts=\toks17
\float@box=\box53
\@float@everytoks=\toks18
\@floatcapt=\box54
)
\minted@appexistsfile=\read3
\minted@bgbox=\box55
\minted@code=\write4
\c@minted@FancyVerbLineTemp=\count281
\c@minted@pygmentizecounter=\count282
\@float@every@listing=\toks19
\c@listing=\count283
)
runsystem(for ^%i in (pygmentize.exe pygmentize.bat pygmentize.cmd) do set > Mi
nted_Experience.aex <nul: /p x=^%~$PATH:i>> Minted_Experience.aex)...executed.

runsystem(del Minted_Experience.aex)...executed.

(C:\Program Files\MiKTeX 2.9\tex/latex/l3backend\l3backend-pdftex.def
File: l3backend-pdftex.def 2021-03-02 L3 backend support: PDF output (pdfTeX)
\l__color_backend_stack_int=\count284
\l__pdf_internal_box=\box56
)
(Minted_Experience.aux)
\openout1 = `Minted_Experience.aux'.

LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 7.
LaTeX Font Info:    ... okay on input line 7.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 7.
LaTeX Font Info:    ... okay on input line 7.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 7.
LaTeX Font Info:    ... okay on input line 7.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 7.
LaTeX Font Info:    ... okay on input line 7.
LaTeX Font Info:    Checking defaults for TS1/cmr/m/n on input line 7.
LaTeX Font Info:    ... okay on input line 7.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 7.
LaTeX Font Info:    ... okay on input line 7.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 7.
LaTeX Font Info:    ... okay on input line 7.

(C:\Program Files\MiKTeX 2.9\tex/context/base/mkii\supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
\scratchcounter=\count285
\scratchdimen=\dimen156
\scratchbox=\box57
\nofMPsegments=\count286
\nofMParguments=\count287
\everyMPshowfont=\toks20
\MPscratchCnt=\count288
\MPscratchDim=\dimen157
\MPnumerator=\count289
\makeMPintoPDFobject=\count290
\everyMPtoPDFconversion=\toks21
)
\openout3 = `Minted_Experience.pyg'.

runsystem(pygmentize -S default -f latex -P commandprefix=PYG > Minted_Experien
ce.out.pyg)...executed.

 (Minted_Experience.out.pyg)
runsystem(pygmentize -S default -f latex -P commandprefix=PYGdefault > Minted_E
xperience.out.pyg)...executed.

 (Minted_Experience.out.pyg)
runsystem(pygmentize -l c -f latex -P commandprefix=PYG -F tokenmerge -o Minted
_Experience.out.pyg Minted_Experience.pyg)...executed.

(Minted_Experience.out.pyg) (Minted_Experience.aux)
runsystem(del Minted_Experience.pyg)...executed.

runsystem(del Minted_Experience.out.pyg)...executed.

 ) 
Here is how much of TeX's memory you used:
 4799 strings out of 479290
 88224 string characters out of 2863474
 423302 words of memory out of 3000000
 22244 multiletter control sequences out of 15000+600000
 403430 words of font info for 27 fonts, out of 8000000 for 9000
 1141 hyphenation exceptions out of 8191
 85i,1n,88p,266b,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)
gpoore commented 3 years ago

I'm not seeing any obvious issues in the log. It looks like you are using special comments to get your LaTeX editor to compile the file. Have you tried running pdflatex manually on the command line?

VivaldoMendes commented 3 years ago

Yes. Minted works on all my kids' computers and on my wife's computer as well. I think it is a matter of computing discrimination in the family. Thanks for your concerns.

gpoore commented 3 years ago

Have you tried the command line on this specific computer? The output might help find the issue. There is probably a problem that is related to the MiKTeX setup or the TexStudio setup, and trying the command line removes TexStudio to just focus on MiKTeX.

VivaldoMendes commented 3 years ago

The output from running Minted_Experience.tex on the cmd window can be found below. It points at the "--shell escape flag" problem. But apparently, when I run it in TexStudio, this problem is overcome with:

This latter command was the one that (apparently) did eliminate the --shell escape problem. When I used the other two options without the [cache=false] declaration, the shell escape issue kept appearing in the compilation process.

I really do not understand what the problem is. The only difference between the installation (Windows, MiKTeX, minted) on my computer and on the family members is that mine is a little bit older (3 years for Windows and MiKTeX and 8 months for minted), and I have the package pdf2svg installed while they don´t have it. Minted is the only package that is showing this annoying problem. All run on Windows 10.

Thank you very much for your help.

Microsoft Windows [Version 10.0.19042.867]
(c) 2020 Microsoft Corporation. All rights reserved.

C:\Users\Utilizador>pdflatex F:\My_Pen_Now\Teaching_2016\AdvancedTopics\2020_2021\Preliminaries\Minted_Experience.tex
This is pdfTeX, Version 3.141592653-2.6-1.40.22 (MiKTeX 21.3)
entering extended mode

(F:/My_Pen_Now/Teaching_2016/AdvancedTopics/2020_2021/Preliminaries/Minted_Expe
rience.tex
LaTeX2e <2020-10-01> patch level 4
L3 programming layer <2021-02-18>
(C:\Program Files\MiKTeX 2.9\tex/latex/base\article.cls
Document Class: article 2020/04/10 v1.4m Standard LaTeX document class
(C:\Program Files\MiKTeX 2.9\tex/latex/base\size10.clo))
(C:\Program Files\MiKTeX 2.9\tex/latex/xcolor\xcolor.sty
(C:\Program Files\MiKTeX 2.9\tex/latex/graphics-cfg\color.cfg)
(C:\Program Files\MiKTeX 2.9\tex/latex/graphics-def\pdftex.def))
(C:\Program Files\MiKTeX 2.9\tex/latex/minted\minted.sty
(C:\Program Files\MiKTeX 2.9\tex/latex/graphics\keyval.sty)
(C:\Program Files\MiKTeX 2.9\tex/latex/kvoptions\kvoptions.sty
(C:\Program Files\MiKTeX 2.9\tex/generic/ltxcmds\ltxcmds.sty)
(C:\Program Files\MiKTeX 2.9\tex/generic/kvsetkeys\kvsetkeys.sty))
(C:\Program Files\MiKTeX 2.9\tex/latex/fvextra\fvextra.sty
(C:\Program Files\MiKTeX 2.9\tex/latex/base\ifthen.sty)
(C:\Program Files\MiKTeX 2.9\tex/latex/etoolbox\etoolbox.sty)
(C:\Program Files\MiKTeX 2.9\tex/latex/fancyvrb\fancyvrb.sty)
(C:\Program Files\MiKTeX 2.9\tex/latex/upquote\upquote.sty)
(C:\Program Files\MiKTeX 2.9\tex/latex/lineno\lineno.sty))
(C:\Program Files\MiKTeX 2.9\tex/latex/latex-tools\calc.sty)
(C:\Program Files\MiKTeX 2.9\tex/latex/latex-tools\shellesc.sty)
(C:\Program Files\MiKTeX 2.9\tex/latex/ifplatform\ifplatform.sty
(C:\Program Files\MiKTeX 2.9\tex/generic/pdftexcmds\pdftexcmds.sty
(C:\Program Files\MiKTeX 2.9\tex/generic/infwarerr\infwarerr.sty)
(C:\Program Files\MiKTeX 2.9\tex/generic/iftex\iftex.sty))
(C:\Program Files\MiKTeX 2.9\tex/generic/catchfile\catchfile.sty
(C:\Program Files\MiKTeX 2.9\tex/generic/etexcmds\etexcmds.sty))
(C:\Program Files\MiKTeX 2.9\tex/generic/iftex\ifluatex.sty)

Package ifplatform Warning:
    shell escape is disabled, so I can only detect \ifwindows.

) (C:\Program Files\MiKTeX 2.9\tex/latex/xstring\xstring.sty
(C:\Program Files\MiKTeX 2.9\tex/generic/xstring\xstring.tex))
(C:\Program Files\MiKTeX 2.9\tex/latex/framed\framed.sty)
(C:\Program Files\MiKTeX 2.9\tex/latex/float\float.sty))

! Package minted Error: You must invoke LaTeX with the -shell-escape flag.

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

l.6

?
gpoore commented 3 years ago

On the command line, you want to try

pdflatex -shell-escape F:\My_Pen_Now\Teaching_2016\AdvancedTopics\2020_2021\Preliminaries\Minted_Experience.tex

Note the -shell-escape.

If you aren't using the latest MiKTeX, that would definitely be something to try updating.

VivaldoMendes commented 3 years ago

I think it does not work in this way either. I do have my MiKTeX installation updated. It's version 2.9 and all the packages are updated on a daily basis. There must be some minor issue on my computer that precludes Minted to run properly. It runs in 4 computers in the family.

Anyway, thank you very much.

The output from running your line (both as administrator and as user is the same) is:

Microsoft Windows [Version 10.0.19042.867]
(c) 2020 Microsoft Corporation. All rights reserved.

C:\Users\Utilizador>pdflatex -shell-escape F:\My_Pen_Now\Teaching_2016\AdvancedTopics\2020_2021\Preliminaries\Minted_Experience.tex
This is pdfTeX, Version 3.141592653-2.6-1.40.22 (MiKTeX 21.3)
entering extended mode

(F:/My_Pen_Now/Teaching_2016/AdvancedTopics/2020_2021/Preliminaries/Minted_Expe
rience.tex
LaTeX2e <2020-10-01> patch level 4
L3 programming layer <2021-02-18>
(C:\Program Files\MiKTeX 2.9\tex/latex/base\article.cls
Document Class: article 2020/04/10 v1.4m Standard LaTeX document class
(C:\Program Files\MiKTeX 2.9\tex/latex/base\size10.clo))
(C:\Program Files\MiKTeX 2.9\tex/latex/xcolor\xcolor.sty
(C:\Program Files\MiKTeX 2.9\tex/latex/graphics-cfg\color.cfg)
(C:\Program Files\MiKTeX 2.9\tex/latex/graphics-def\pdftex.def))
(C:\Program Files\MiKTeX 2.9\tex/latex/minted\minted.sty
(C:\Program Files\MiKTeX 2.9\tex/latex/graphics\keyval.sty)
(C:\Program Files\MiKTeX 2.9\tex/latex/kvoptions\kvoptions.sty
(C:\Program Files\MiKTeX 2.9\tex/generic/ltxcmds\ltxcmds.sty)
(C:\Program Files\MiKTeX 2.9\tex/generic/kvsetkeys\kvsetkeys.sty))
(C:\Program Files\MiKTeX 2.9\tex/latex/fvextra\fvextra.sty
(C:\Program Files\MiKTeX 2.9\tex/latex/base\ifthen.sty)
(C:\Program Files\MiKTeX 2.9\tex/latex/etoolbox\etoolbox.sty)
(C:\Program Files\MiKTeX 2.9\tex/latex/fancyvrb\fancyvrb.sty)
(C:\Program Files\MiKTeX 2.9\tex/latex/upquote\upquote.sty)
(C:\Program Files\MiKTeX 2.9\tex/latex/lineno\lineno.sty))
(C:\Program Files\MiKTeX 2.9\tex/latex/latex-tools\calc.sty)
(C:\Program Files\MiKTeX 2.9\tex/latex/latex-tools\shellesc.sty)
(C:\Program Files\MiKTeX 2.9\tex/latex/ifplatform\ifplatform.sty
(C:\Program Files\MiKTeX 2.9\tex/generic/pdftexcmds\pdftexcmds.sty
(C:\Program Files\MiKTeX 2.9\tex/generic/infwarerr\infwarerr.sty)
(C:\Program Files\MiKTeX 2.9\tex/generic/iftex\iftex.sty))
(C:\Program Files\MiKTeX 2.9\tex/generic/catchfile\catchfile.sty
(C:\Program Files\MiKTeX 2.9\tex/generic/etexcmds\etexcmds.sty))
(C:\Program Files\MiKTeX 2.9\tex/generic/iftex\ifluatex.sty))
(C:\Program Files\MiKTeX 2.9\tex/latex/xstring\xstring.sty
(C:\Program Files\MiKTeX 2.9\tex/generic/xstring\xstring.tex))
(C:\Program Files\MiKTeX 2.9\tex/latex/framed\framed.sty)
(C:\Program Files\MiKTeX 2.9\tex/latex/float\float.sty))
C:\Users\Utilizador>set  /p x=C:\Users\Utilizador\Anaconda3\Scripts\pygmentize.exe 0<nul: 1>>Minted_Experience.aex

C:\Users\Utilizador>set  /p x= 0<nul: 1>>Minted_Experience.aex

C:\Users\Utilizador>set  /p x=C:\Windows\pygmentize.cmd 0<nul: 1>>Minted_Experience.aex

(C:\Program Files\MiKTeX 2.9\tex/latex/l3backend\l3backend-pdftex.def)
(Minted_Experience.aux)
(C:\Program Files\MiKTeX 2.9\tex/context/base/mkii\supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
)The system cannot find the path specified.
 (Minted_Experience.out.pyg)The system cannot find the path specified.
 (Minted_Experience.out.pyg)The system cannot find the path specified.

(Minted_Experience.out.pyg) (Minted_Experience.aux) )
No pages of output.
Transcript written on Minted_Experience.log.

C:\Users\Utilizador>
gpoore commented 3 years ago

Try opening the command line at the location of the *.tex file before compiling. That is, first

cd F:\My_Pen_Now\Teaching_2016\AdvancedTopics\2020_2021\Preliminaries

and then

pdflatex -shell-escape Minted_Experience.tex

The log from that should give a better sense of what is happening.

VivaldoMendes commented 3 years ago

I checked all computers and they have all the same MiKTeX version (21.3) and Minted package as follows:

If I have upadted my MiKTeX many times, why do I keep getting version 2.5.1dev, while the other computers get version 2.5 of minted?

I did what you suggested and the output is this:

Microsoft Windows [Version 10.0.19042.867]
(c) 2020 Microsoft Corporation. All rights reserved.

C:\Users\Utilizador>cd F:\My_Pen_Now\Teaching_2016\AdvancedTopics\2020_2021\Preliminaries

C:\Users\Utilizador>pdflatex -shell-escape Minted_Experience.tex
This is pdfTeX, Version 3.141592653-2.6-1.40.22 (MiKTeX 21.3)
entering extended mode
! I can't find file `Minted_Experience.tex'.
<*> Minted_Experience.tex

Please type another input file name:

I display below the last lines of the logs of running the file in my computer (first block) and then in my son's computer (the second block, where minted runs without any problems). Does the problem as anything to do with the fact that MiKTeX is installed in a directory called MiKTeX 2.9, while it is called just MiKTeX on the other computers? I don't believe it.

On my computer (no pdf output):

runsystem(del Minted_Experience.pyg)...executed.

runsystem(del Minted_Experience.out.pyg)...executed.

 ) 
Here is how much of TeX's memory you used:
 4801 strings out of 479290
 88270 string characters out of 2863474
 423276 words of memory out of 3000000
 22246 multiletter control sequences out of 15000+600000
 403430 words of font info for 27 fonts, out of 8000000 for 9000
 1141 hyphenation exceptions out of 8191
 85i,1n,88p,276b,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)

On my son's computer (pdf produced):

runsystem(del Minted_Exp1.pyg)...executed.

runsystem(del Minted_Exp1.out.pyg)...executed.

 )
Here is how much of TeX's memory you used:
 4998 strings out of 479324
 90024 string characters out of 2866691
 423886 words of memory out of 3000000
 22423 multiletter control sequences out of 15000+600000
 403598 words of font info for 28 fonts, out of 8000000 for 9000
 1141 hyphenation exceptions out of 8191
 85i,5n,88p,270b,361s stack positions out of 5000i,500n,10000p,200000b,80000s
<C:/Program Files/MiKTeX/fonts/type1/public/amsfonts/cm/cmr10.pfb><C:/Program
 Files/MiKTeX/fonts/type1/public/amsfonts/cm/cmtt10.pfb>
Output written on Minted_Exp1.pdf (1 page, 21379 bytes).
PDF statistics:
 14 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)
gpoore commented 3 years ago

You shouldn't have minted 2.5.1dev on your computer unless you have done something special to install an unreleased development version. That is very strange, but probably isn't the problem.

In the commands I suggested, for some reason the

cd F:\My_Pen_Now\Teaching_2016\AdvancedTopics\2020_2021\Preliminaries

is failing to change to the directory or folder of the file Minted_Experience.tex. You'll have to figure out how to do that to get the

pdflatex -shell-escape Minted_Experience.tex

working. You could try using quotes, "F:\My_Pen_Now\Teaching_2016\AdvancedTopics\2020_2021\Preliminaries". You may be able to go to the location of Minted_Experience.tex, and then hold down CTLR + SHIFT + MOUSE RIGHT CLICK to open a command window or PowerShell or terminal at that location. Otherwise, you might try copying the file to another location if you can't figure out how to get to the current location using cd. Regardless, at this point figuring out how to get that command working on the command line is about the only suggestion I have left in terms of getting information that might fix things.

The only other suggestion I have at this point is checking your TexStudio settings to see if you can find a difference between the different machines.

VivaldoMendes commented 3 years ago

Thank you very much for your help and time spent on this issue. I am not a professional programmer, so I tend to avoid being creative when having to install some software. If I have the minted 2.5.1dev installed, it's because MiKTeX did it for me. I will do my best to see if it works. By the way, congrats on the nice piece of software you developed.

Thanks a lot.