Pdflatex claiming pygmentize isn't installed even though it is
up vote
0
down vote
favorite
I'm experiencing some problems using the minted
package with pdflatex
on ubuntu. When I try to compile the following minimal LaTeX code:
documentclass{article}
usepackage{minted}
begin{document}
begin{minted}{python}
#tests
print("hi")
end{minted}
end{document}
using the command pdflatex test.tex -shell-escape
, the compilation is at first paused at:
(/home/fredrik/.miktex/texmfs/install/tex/latex/framed/framed.sty)
(/home/fredrik/.miktex/texmfs/install/tex/latex/float/float.sty))/bin/sh: 1: Syntax error: end of file unexpected (expecting "then")
(/home/fredrik/.miktex/texmfs/install/tex/latex/xcolor/xcolor.sty
(/home/fredrik/.miktex/texmfs/install/tex/latex/graphics-cfg/color.cfg)
(/home/fredrik/.miktex/texmfs/install/tex/latex/graphics-def/pdftex.def))/bin/sh: 1: Syntax error: Bad for loop variable
minted@apppathifexists=
When I press enter, I get the following message:
! 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}
This seems very weird, as I believe have pygmentize
installed. I followed the instructions here for intalling minted
and pygmentize
, and if I run pygmentize -V
in the terminal, I get Pygments version 2.1, (c) 2006-2015 by Georg Brandl.
Do anyone have any idea of what's going on here? Any advice on what to do/how to proceed in debugging this?
pdftex ubuntu
add a comment |
up vote
0
down vote
favorite
I'm experiencing some problems using the minted
package with pdflatex
on ubuntu. When I try to compile the following minimal LaTeX code:
documentclass{article}
usepackage{minted}
begin{document}
begin{minted}{python}
#tests
print("hi")
end{minted}
end{document}
using the command pdflatex test.tex -shell-escape
, the compilation is at first paused at:
(/home/fredrik/.miktex/texmfs/install/tex/latex/framed/framed.sty)
(/home/fredrik/.miktex/texmfs/install/tex/latex/float/float.sty))/bin/sh: 1: Syntax error: end of file unexpected (expecting "then")
(/home/fredrik/.miktex/texmfs/install/tex/latex/xcolor/xcolor.sty
(/home/fredrik/.miktex/texmfs/install/tex/latex/graphics-cfg/color.cfg)
(/home/fredrik/.miktex/texmfs/install/tex/latex/graphics-def/pdftex.def))/bin/sh: 1: Syntax error: Bad for loop variable
minted@apppathifexists=
When I press enter, I get the following message:
! 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}
This seems very weird, as I believe have pygmentize
installed. I followed the instructions here for intalling minted
and pygmentize
, and if I run pygmentize -V
in the terminal, I get Pygments version 2.1, (c) 2006-2015 by Georg Brandl.
Do anyone have any idea of what's going on here? Any advice on what to do/how to proceed in debugging this?
pdftex ubuntu
Can you make a document withcatcode`:=13let:parinput|"kpsewhich -var-value PATH" bye
and compile it withpdftex
. Next compare the output with the expected value of$PATH
in the shell.
– egreg
Dec 3 at 18:43
you are using miktex I think the option might be called something different in miktex (almost all linux tex users will be using texlive)
– David Carlisle
Dec 3 at 19:19
others are pointing you at checking an inclusive path to python and pygmentize script you do need to check it is found by default However you may also be best served using MiKTeX console to uninstall and reinstall MiKTeX minted package (to ensure it is fully reloaded) then ensure sync formats fndb etc are refreshed for Ulrike's guidance (not just for windows) see tex.stackexchange.com/questions/108447/…
– KJO
Dec 3 at 21:27
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm experiencing some problems using the minted
package with pdflatex
on ubuntu. When I try to compile the following minimal LaTeX code:
documentclass{article}
usepackage{minted}
begin{document}
begin{minted}{python}
#tests
print("hi")
end{minted}
end{document}
using the command pdflatex test.tex -shell-escape
, the compilation is at first paused at:
(/home/fredrik/.miktex/texmfs/install/tex/latex/framed/framed.sty)
(/home/fredrik/.miktex/texmfs/install/tex/latex/float/float.sty))/bin/sh: 1: Syntax error: end of file unexpected (expecting "then")
(/home/fredrik/.miktex/texmfs/install/tex/latex/xcolor/xcolor.sty
(/home/fredrik/.miktex/texmfs/install/tex/latex/graphics-cfg/color.cfg)
(/home/fredrik/.miktex/texmfs/install/tex/latex/graphics-def/pdftex.def))/bin/sh: 1: Syntax error: Bad for loop variable
minted@apppathifexists=
When I press enter, I get the following message:
! 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}
This seems very weird, as I believe have pygmentize
installed. I followed the instructions here for intalling minted
and pygmentize
, and if I run pygmentize -V
in the terminal, I get Pygments version 2.1, (c) 2006-2015 by Georg Brandl.
Do anyone have any idea of what's going on here? Any advice on what to do/how to proceed in debugging this?
pdftex ubuntu
I'm experiencing some problems using the minted
package with pdflatex
on ubuntu. When I try to compile the following minimal LaTeX code:
documentclass{article}
usepackage{minted}
begin{document}
begin{minted}{python}
#tests
print("hi")
end{minted}
end{document}
using the command pdflatex test.tex -shell-escape
, the compilation is at first paused at:
(/home/fredrik/.miktex/texmfs/install/tex/latex/framed/framed.sty)
(/home/fredrik/.miktex/texmfs/install/tex/latex/float/float.sty))/bin/sh: 1: Syntax error: end of file unexpected (expecting "then")
(/home/fredrik/.miktex/texmfs/install/tex/latex/xcolor/xcolor.sty
(/home/fredrik/.miktex/texmfs/install/tex/latex/graphics-cfg/color.cfg)
(/home/fredrik/.miktex/texmfs/install/tex/latex/graphics-def/pdftex.def))/bin/sh: 1: Syntax error: Bad for loop variable
minted@apppathifexists=
When I press enter, I get the following message:
! 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}
This seems very weird, as I believe have pygmentize
installed. I followed the instructions here for intalling minted
and pygmentize
, and if I run pygmentize -V
in the terminal, I get Pygments version 2.1, (c) 2006-2015 by Georg Brandl.
Do anyone have any idea of what's going on here? Any advice on what to do/how to proceed in debugging this?
pdftex ubuntu
pdftex ubuntu
edited Dec 3 at 18:07
Kurt
34.6k846157
34.6k846157
asked Dec 3 at 18:03
Istlemin
11
11
Can you make a document withcatcode`:=13let:parinput|"kpsewhich -var-value PATH" bye
and compile it withpdftex
. Next compare the output with the expected value of$PATH
in the shell.
– egreg
Dec 3 at 18:43
you are using miktex I think the option might be called something different in miktex (almost all linux tex users will be using texlive)
– David Carlisle
Dec 3 at 19:19
others are pointing you at checking an inclusive path to python and pygmentize script you do need to check it is found by default However you may also be best served using MiKTeX console to uninstall and reinstall MiKTeX minted package (to ensure it is fully reloaded) then ensure sync formats fndb etc are refreshed for Ulrike's guidance (not just for windows) see tex.stackexchange.com/questions/108447/…
– KJO
Dec 3 at 21:27
add a comment |
Can you make a document withcatcode`:=13let:parinput|"kpsewhich -var-value PATH" bye
and compile it withpdftex
. Next compare the output with the expected value of$PATH
in the shell.
– egreg
Dec 3 at 18:43
you are using miktex I think the option might be called something different in miktex (almost all linux tex users will be using texlive)
– David Carlisle
Dec 3 at 19:19
others are pointing you at checking an inclusive path to python and pygmentize script you do need to check it is found by default However you may also be best served using MiKTeX console to uninstall and reinstall MiKTeX minted package (to ensure it is fully reloaded) then ensure sync formats fndb etc are refreshed for Ulrike's guidance (not just for windows) see tex.stackexchange.com/questions/108447/…
– KJO
Dec 3 at 21:27
Can you make a document with
catcode`:=13let:parinput|"kpsewhich -var-value PATH" bye
and compile it with pdftex
. Next compare the output with the expected value of $PATH
in the shell.– egreg
Dec 3 at 18:43
Can you make a document with
catcode`:=13let:parinput|"kpsewhich -var-value PATH" bye
and compile it with pdftex
. Next compare the output with the expected value of $PATH
in the shell.– egreg
Dec 3 at 18:43
you are using miktex I think the option might be called something different in miktex (almost all linux tex users will be using texlive)
– David Carlisle
Dec 3 at 19:19
you are using miktex I think the option might be called something different in miktex (almost all linux tex users will be using texlive)
– David Carlisle
Dec 3 at 19:19
others are pointing you at checking an inclusive path to python and pygmentize script you do need to check it is found by default However you may also be best served using MiKTeX console to uninstall and reinstall MiKTeX minted package (to ensure it is fully reloaded) then ensure sync formats fndb etc are refreshed for Ulrike's guidance (not just for windows) see tex.stackexchange.com/questions/108447/…
– KJO
Dec 3 at 21:27
others are pointing you at checking an inclusive path to python and pygmentize script you do need to check it is found by default However you may also be best served using MiKTeX console to uninstall and reinstall MiKTeX minted package (to ensure it is fully reloaded) then ensure sync formats fndb etc are refreshed for Ulrike's guidance (not just for windows) see tex.stackexchange.com/questions/108447/…
– KJO
Dec 3 at 21:27
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f463012%2fpdflatex-claiming-pygmentize-isnt-installed-even-though-it-is%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Can you make a document with
catcode`:=13let:parinput|"kpsewhich -var-value PATH" bye
and compile it withpdftex
. Next compare the output with the expected value of$PATH
in the shell.– egreg
Dec 3 at 18:43
you are using miktex I think the option might be called something different in miktex (almost all linux tex users will be using texlive)
– David Carlisle
Dec 3 at 19:19
others are pointing you at checking an inclusive path to python and pygmentize script you do need to check it is found by default However you may also be best served using MiKTeX console to uninstall and reinstall MiKTeX minted package (to ensure it is fully reloaded) then ensure sync formats fndb etc are refreshed for Ulrike's guidance (not just for windows) see tex.stackexchange.com/questions/108447/…
– KJO
Dec 3 at 21:27