toolkit icon indicating copy to clipboard operation
toolkit copied to clipboard

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

Open andreondra opened this issue 1 year ago • 11 comments

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.

andreondra avatar Oct 18 '24 09:10 andreondra