overleaf / overleaf/toolkit

Package minted Error: minted v3+ executable is not installed or is not added to PATH

Open
#298 11 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

Steps to Reproduce

  1. Install minted package (or full installation) using tlmgr.
  2. Import minted package in a project and insert arbitrary minted environment to a document.

Expected Behaviour

Minted should be successfully invoked and code with syntax highlighting should be printed to the document.

Observed Behaviour

Compiling crashes with error: Package minted Error: minted v3+ executable is not installed or is not added to PATH..

Context

This error is already discussed here: https://github.com/gpoore/minted/issues/401. It seems that apart from upgrading tlmgr packages one should also uninstall minted and install again, which should install required Python dependencies. However, even after doing these steps, latexminted stays on v1:

# latexminted --version
latexminted 0.1.0 (libraries: latex2pydata 0.4.0, pygments 2.18.0)

It looks like system latexminted has precedence on PATH. How can one successfully manage to use latexminted v2? Or probably the problem with minted executable is caused by another problem related to Docker image?

Technical Info

I installed latest toolkit and used docker's shell to install full installation. Shell escape is allowed.

Analysis

EDIT: It looks like it can be fixed by installing latexminted manually via pip3. However, is this OK approach? I thought Python dependencies should be now installed automatically by tlmgr.

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 in the Docker shell used for the toolkit installation and inspect latexminted --version and the executable selected on PATH. Compare the installed minted and Python dependencies with the system executable; done means a minted v3+ executable is selected and a document using a minted environment compiles successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, latex, python, shell
Domain
devops, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.