overleaf / overleaf/toolkit

Package minted Error: minted v3+ executable is not installed, is not added to PATH, or is not permitted with restricted shell escape

Open
#335 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
1.3k
Forks
310
Avg merge
3d 12h
Merged PRs (30d)
1

Description

Problem

I'm facing a minted issue similar to #298, but following that steps I still had the same issue.

I'm running latest overleaf-toolikt on wsl with Ubuntu on a windows 11 host.

C:\Users\User>wsl --version
Versione WSL: 2.3.24.0
Versione kernel: 5.15.153.1-2
Versione WSLg: 1.0.65
Versione MSRDC: 1.2.5620
Versione Direct3D: 1.611.1-81528511
Versione DXCore: 10.0.26100.1-240331-1435.ge-release
Versione di Windows: 10.0.26120.3281

Inside the Docker, I've a working version of tlmgr

gzago@GiovanniZago:~/overleaf-toolkit/bin$ docker exec sharelatex tlmgr --version
tlmgr revision 73493 (2025-01-17 23:28:29 +0100)
tlmgr using installation: /usr/local/texlive/2024
TeX Live (https://tug.org/texlive) version 2024

And same goes for minted

gzago@GiovanniZago:~/overleaf-toolkit/bin$ docker exec sharelatex tlmgr info minted
package:     minted
category:    Package
shortdesc:   Highlighted source code for LaTeX
longdesc:    The package that facilitates expressive syntax highlighting in LaTeX using the powerful Pygments library. The package also provides options to customize the highlighted source code output using fancyvrb.
installed:   Yes
revision:    73967
sizes:       run: 1437k, bin: 5k
relocatable: No
cat-version: 3.5.1
cat-license: lppl1.3c lppl1.3 bsd3
cat-topics:  listing verbatim synt-hlt
cat-related: texments verbments
cat-contact-repository: https://github.com/gpoore/minted
collection:  collection-latexextra

But still had the same issue, when compiling:

Package minted Error: minted v3+ executable is not installed, is not added to PATH, or is not permitted with restricted shell escape

Solution

The solution, for me, was to manullay install pip and latexminted inside the docker
docker exec sharelatex apt-get install pip -y
docker exec sharelatex pip install latexminted --break-system-packages

Doubt

Is this the right approach?

Thanks!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the minted v3 compilation in the sharelatex container, checking the reported tlmgr minted installation and the latexminted commands. Determine whether the toolkit's container setup needs to provide latexminted or document the manual installation, then verify that the reported compilation succeeds without the error.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, latex, shell
Domain
build-system, devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.