-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Package minted Error: minted v3+ executable is not installed or is not added to PATH. #401
Comments
Did you just update using CTAN? I believe that there was an issue with the way that CTAN packaged the files for the new release, and they are in the process of fixing it. As a quick fix for the moment, you can probably |
I use The problem is that I work with the |
Same issue here. I am using a Docker image here a repeatable example: \documentclass{article}
\usepackage{fontspec}
\usepackage{minted}
\begin{document}
\begin{minted}{python}
def foo():
return 1
\end{minted}
\end{document} I tried with and without the commented lines: FROM kjarosh/latex:2024.2-basic
RUN tlmgr update --self --all
RUN tlmgr install latexmk fontspec minted latex2pydata pgfopts
#RUN apk add --no-cache py3-pygments py3-pip
#RUN pip install latexminted latexrestricted latex2pydata Pygments --break-system-packages
RUN mkdir -p /tmp/texmf-cache
ENV TEXMFCACHE=/tmp/texmf-cache
ENV TERM=xterm
RUN chmod -R 777 /tmp/texmf-cache The issue is :
|
@yves-chevallier Can you post a complete log? When you |
Tested on macOS 14.6.1, I can confirm that And after manually installing |
|
Using |
Maybe some testing using |
The problem is that I've created a package that needs |
It should work fine if \documentclass{article}
\usepackage{minted2}
\usepackage{minted}
\begin{document}
\UseName{[email protected]} % "2023/12/18 v2.9"
\end{document} |
Thanks a lot for this patch for \RequirePackage{minted2}
\RequirePackage{tcolorbox}%
[2024/07/10]
\tcbuselibrary{minted, breakable, skins} |
The trick described in my last comment #401 (comment) works for all existing documents in which But there's a limitation: In other words, to pass options to |
CTAN has repackaged |
This almost works but the first compilation raises one error. No extra file exists at the time of the first compilation... The 2nd compilation is fined but very slow.
OS: MacOS |
@projetmbc To avoid that error, you probably need |
Minted 3.0 currently has issue with the distribution, see <gpoore/minted#401>.
Minted 3.0 currently has issue with the distribution, see <gpoore/minted#401>.
Minted 3.0 currently has issue with the distribution, see <gpoore/minted#401>.
Minted 3.0 currently has issue with the distribution, see <gpoore/minted#401>.
…ally detected and processed correctly regardless of highlightmode (#401)
I got this error on Leap 15.6 today. It turns out that the Python interpreter is quite old (3.6) and while latexminted is in my PATH, it fails to execute. (One can work around it with a venv since latexminted relies on /usr/bin/env to find the python3 executable). |
FYI, from its config and doc, Source snippets
Line 9 in 5a34685
minted/latex/RESTRICTED_SHELL_ESCAPE.md Lines 77 to 81 in 5a34685
|
Thanks @muzimuzhi, indeed. I was mostly making the (unclear, I realize!) point that the error doesn't pinpoint the failure correctly and might be confusing to some users. Cheers! |
The last version works fine. Is it easy to explain the fixes done? |
@projetmbc The issues were probably due to #405. Basically, under some configurations, the timestamps and perhaps some other data sent from Python back to LaTeX needed |
@yves-chevallier Are you still having any issues, using the latest |
Hi! I'm also facing this issue when building a texlive docker image for overleaf. Currently we install package minted in this way: mkdir /install-tl-unx \
&& wget --quiet https://tug.org/texlive/files/texlive.asc \
&& gpg --import texlive.asc \
&& rm texlive.asc \
&& wget --quiet ${TEXLIVE_MIRROR}/install-tl-unx.tar.gz \
&& wget --quiet ${TEXLIVE_MIRROR}/install-tl-unx.tar.gz.sha512 \
&& wget --quiet ${TEXLIVE_MIRROR}/install-tl-unx.tar.gz.sha512.asc \
&& gpg --verify install-tl-unx.tar.gz.sha512.asc \
&& sha512sum -c install-tl-unx.tar.gz.sha512 \
&& tar -xz -C /install-tl-unx --strip-components=1 -f install-tl-unx.tar.gz \
&& rm install-tl-unx.tar.gz* \
&& echo "tlpdbopt_autobackup 0" >> /install-tl-unx/texlive.profile \
&& echo "tlpdbopt_install_docfiles 0" >> /install-tl-unx/texlive.profile \
&& echo "tlpdbopt_install_srcfiles 0" >> /install-tl-unx/texlive.profile \
&& echo "selected_scheme scheme-full" >> /install-tl-unx/texlive.profile \
&& echo "tlpdbopt_sys_bin /usr/bin" >> /install-tl-unx/texlive.profile \
\
&& /install-tl-unx/install-tl \
-profile /install-tl-unx/texlive.profile \
-repository ${TEXLIVE_MIRROR} \
\
&& $(find /usr/local/texlive -name tlmgr) path add \
&& rm -rf /install-tl-unx And when compiling, it shows:
I can confirm that python, python3, pygmentize, latexminted are all in my path, and i have python3 > 3.11, latexminted==2.11 (lower than latest, but upgrading doesnt help), and minted from ctan = 3.1.2. I seem to have run out of ways to debug. |
@HolgerHuo You might try compiling a simple document like this, using the new
If there is some sort of unexpected, uncaught error, it might appear in the At this point, I believe that the issues that others initially had with Docker images with |
@gpoore The output shows |
It works by upgrading latexminted manually via pip3. Is this OK approach or packages should be already installed automatically by tlmgr? |
@andreondra When tlmgr updates the In most cases, upgrading |
I think it uses standard TeXLive installation. I am able to install/update packages via tlmgr and see the minted is the latest version. I'd say that the problem is something with incorrect PATH, because I can actually see latexminted installed in the TeXLive directory, but the system one takes precedence. I'll keep the manually upgraded latexminted for now and see if someone responds in the Overleaf repo. Thank you for now! |
@andreondra Hi, I'm also having this issue with overleaf's sharelatex-base image. From my observations, this issues is due to insufficient access to |
@HolgerHuo |
@gpoore Wow, thanks a lot for providing that information. Overleaf do passes HOME=/tmp environment into the container, so latexminted does need to read/write files into that directory. I just haven't figured out why it doesn't have access to Weird things are that when i manually started a test container using same configuration as overleaf did, everything worked. These issues are not related to minted package anyway. |
I'm afraid I'm encountering the same issue:
I've installed pip install latexminted --break-system-packages
I also installed the
I'm compiling my document with Assuming I haven't missed anything obvious, what else should I provide to help debug further? UpdatesI've just discovered this in the log file; perhaps that gives a better clue:
Adding either of these flags to
results in the following error during compilation:
I've given all permissions to |
@andrew-selvia The first part of your problems looks like a MiKTeX issue, see MiKTeX/miktex#1538 (comment). Sorry I have no idea about the second part. |
@andrew-selvia Do you have a |
@gpoore They appear to be present on the PATH:
I did briefly attempt to drill into |
@andrew-selvia Under macOS, |
@gpoore It does resolve the first issue:
The document continues to report errors upon compilation, unfortunately. I have tried running that command manually, but it results in a new error:
And for sanity, I can confirm
If you'd prefer to track this separately, I'll create a new issue. It's unclear to me whether it's related to the original one. |
@andrew-selvia Go ahead and create a new issue...this is probably no longer related to the original one. If you can post a compilation log and any |
The following code doesn't compile.
But I can do :
The text was updated successfully, but these errors were encountered: