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?










share|improve this question
























  • 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










  • 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

















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?










share|improve this question
























  • 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










  • 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















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?










share|improve this question















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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 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










  • 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










  • 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

















active

oldest

votes











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: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















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






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

mysqli_query(): Empty query in /home/lucindabrummitt/public_html/blog/wp-includes/wp-db.php on line 1924

How to change which sound is reproduced for terminal bell?

Can I use Tabulator js library in my java Spring + Thymeleaf project?