Public bug reported:
$ lsb_release -rd
Description: Ubuntu 26.04 LTS
Release: 26.04
$ apt-cache policy texlive-latex-extra
texlive-latex-extra:
Installed: 2025.20260124-1
Candidate: 2025.20260124-1
Version table:
*** 2025.20260124-1 500
500 http://de.archive.ubuntu.com/ubuntu resolute/universe amd64 Packages
500 http://de.archive.ubuntu.com/ubuntu resolute/universe i386 Packages
100 /var/lib/dpkg/status
The python script /usr/bin/latexminted used by the latex package minted is
incompatible with the default python 3.14.
This breaks the most popular syntax highlighter for LaTeX by default on Ubuntu
26.04.
The script fails straigh on execution:
$ latexminted
Traceback (most recent call last):
File "/usr/bin/latexminted", line 372, in <module>
main()
~~~~^^
File
"/usr/share/texlive/texmf-dist/scripts/minted/latexminted-0.6.0-py3-none-any.whl/latexminted/cmdline.py",
line 148, in main
parser.add_command('batch', help='Batch process highlight, styledef, and
clean', func=batch)
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/usr/share/texlive/texmf-dist/scripts/minted/latexminted-0.6.0-py3-none-any.whl/latexminted/cmdline.py",
line 41, in add_command
parser = self._command_subparsers.add_parser(name, help=help)
File "/usr/lib/python3.14/argparse.py", line 1283, in add_parser
parser = self._parser_class(**kwargs)
TypeError: ArgParser.__init__() got an unexpected keyword argument 'color'
According to the dev, this was fixed in minted v3.8.0.
https://github.com/gpoore/minted/issues/463#issuecomment-4006271748
Fixed release of minted:
https://github.com/gpoore/minted/releases/tag/latex%2Fv3.8.0
The python part is at version 0.6.0 and required version is 0.7.0:
https://github.com/gpoore/minted/releases/tag/python%2Fv0.7.0
My current workaround is to install uv and use it to run
pdflatex/xelatex/latexmk with python 3.13
$ uv run --python 3.13 latexmk
ProblemType: Bug
DistroRelease: Ubuntu 26.04
Package: texlive-latex-extra 2025.20260124-1
ProcVersionSignature: Ubuntu 7.0.0-15.15-generic 7.0.0
Uname: Linux 7.0.0-15-generic x86_64
ApportVersion: 2.34.0-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: KDE
Date: Tue May 26 15:41:01 2026
InstallationDate: Installed on 2023-12-20 (888 days ago)
InstallationMedia: Ubuntu 22.04.3 LTS "Jammy Jellyfish" - Release amd64
(20230807.2)
PackageArchitecture: all
SourcePackage: texlive-extra
UpgradeStatus: Upgraded to resolute on 2026-04-29 (27 days ago)
** Affects: texlive-extra (Ubuntu)
Importance: Undecided
Status: Confirmed
** Tags: amd64 apport-bug resolute wayland-session
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2154292
Title:
latexminted is incompatible with python 3.14
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/texlive-extra/+bug/2154292/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs