Bug#1023586: texlive-extra-utils: pythontex won't find python (when on python3)
Judicael Courant <[email protected]> Sun, 10 May 2026 11:13:21 +0200
| Newsgroups | gmane.linux.debian.devel.tetex |
|---|---|
| Message-ID | <20260510111321.31a18536__11058.693011158$1778404540$gmane$org@blocnote> |
Package: texlive-extra-utils
Version: 2024.20250309-2
Followup-For: Bug #1023586
Dear Maintainer,
I can confirm the bug is still there (I just stumbled upon it).
I could reproduce it with the (quasi)-minimal doc.tex, taken from the
README of https://github.com/gpoore/pythontex:
------------------------------------
\documentclass{article}
\usepackage{pythontex}
\newcommand{\pymultiply}[2]{\py{#1*#2}}
\begin{document}
\begin{pycode}
print("Python says ``Hello!''")
\end{pycode}
$8 \times 256 = \pymultiply{8}{256}$
\end{document}
------------------------------------
I then wrote the following script run.sh in the same directory:
------------------------------------
#! /bin/bash
exec > run.log 2>&1
ls
pdflatex -recorder -interaction=nonstopmode doc.tex
pythontex doc.tex
------------------------------------
I chmoded it +x and ran it. I attach an archive of the resulting
directory (minimal.tgz).
Yours,
J. Courant.
-- Package-specific info:
IMPORTANT INFORMATION: We will only consider bug reports concerning
the packaging of TeX Live as relevant. If you have problems with
combination of packages in a LaTeX document, please consult your
local TeX User Group, the comp.text.tex user group, the author of
the original .sty file, or any other help resource.
In particular, bugs that are related to up-upstream, i.e., neither
Debian nor TeX Live (upstream), but the original package authors,
will be closed immediately.
*** The Debian TeX Team is *not* a LaTeX Help Desk ***
If you report an error when running one of the TeX-related binaries
(latex, pdftex, metafont,...), or if the bug is related to bad or wrong
output, please include a MINIMAL example input file that produces the
error in your report.
Please run your example with
(pdf)latex -recorder ...
(or any other program that supports -recorder) and send us the generated
file with the extension .fls, it lists all the files loaded during
the run and can easily explain problems induced by outdated files in
your home directory.
Don't forget to also include minimal examples of other files that are
needed, e.g. bibtex databases. Often it also helps
to include the logfile. Please, never send included pictures!
If your example file isn't short or produces more than one page of
output (except when multiple pages are needed to show the problem),
you can probably minimize it further. Instructions on how to do that
can be found at
http://www.minimalbeispiel.de/mini-en.html (english)
or
http://www.minimalbeispiel.de/mini.html (german)
##################################
minimal input file
##################################
other files
######################################
List of ls-R files
-rw-r--r-- 1 root root 4025 Apr 29 03:02 /var/lib/texmf/ls-R
lrwxrwxrwx 1 root root 29 Feb 28 2025 /usr/share/texmf/ls-R ->
/var/lib/texmf/ls-R-TEXMFMAIN lrwxrwxrwx 1 root root 31 Mar 13 2025
/usr/share/texlive/texmf-dist/ls-R -> /var/lib/texmf/ls-R-TEXLIVEDIST
lrwxrwxrwx 1 root root 31 Mar 13 2025
/usr/share/texlive/texmf-dist/ls-R -> /var/lib/texmf/ls-R-TEXLIVEDIST
###################################### Config files -rw-r--r-- 1 root
root 475 Apr 28 18:47 /etc/texmf/web2c/texmf.cnf lrwxrwxrwx 1 root root
33 Mar 13 2025 /usr/share/texmf/web2c/fmtutil.cnf ->
/var/lib/texmf/fmtutil.cnf-DEBIAN lrwxrwxrwx 1 root root 32 Mar 13
2025 /usr/share/texmf/web2c/updmap.cfg ->
/var/lib/texmf/updmap.cfg-DEBIAN -rw-r--r-- 1 root root 5231 Apr 29
02:59 /var/lib/texmf/tex/generic/config/language.dat
###################################### Files in /etc/texmf/web2c/ total
8 -rw-r--r-- 1 root root 283 Jan 17 2017 mktex.cnf -rw-r--r-- 1 root
root 475 Apr 28 18:47 texmf.cnf ######################################
md5sums of texmf.d
ca40c66f144b4bafc3e59a2dd32ecb9c /etc/texmf/texmf.d/00debian.cnf
-- System Information:
Debian Release: 13.4
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500,
'stable') Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.12.85+deb13-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN,
TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=fr_FR.UTF-8,
LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh
linked to /usr/bin/dash Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages texlive-extra-utils depends on:
ii libfile-homedir-perl 1.006-2
ii libunicode-linebreak-perl 0.0.20190101-1+b9
ii libyaml-tiny-perl 1.76-1
ii python3 3.13.5-1
ii tex-common 6.19
ii texlive-base 2024.20250309-1
ii texlive-binaries 2024.20240313.70630+ds-6
ii texlive-latex-base 2024.20250309-1
ii texlive-luatex 2024.20250309-1
ii texlive-plain-generic 2024.20250309-2
Versions of packages texlive-extra-utils recommends:
ii ghostscript 10.05.1~dfsg-1+deb13u1
ii liblog-log4perl-perl 1.57-1
ii ruby 1:3.3+b1
ii texlive-latex-recommended 2024.20250309-1
Versions of packages texlive-extra-utils suggests:
ii chktex 1.7.9-1
ii default-jre-headless 2:1.21-76
ii dvidvi 1.0-10.2
ii dvipng 1.18-1
ii fragmaster 1.8-2
ii lacheck 1.26-17.1
ii latexdiff 1.3.2-1
ii latexmk 1:4.86~ds-1
ii purifyeps 1.1-3
ii xindy 2.5.1.20160104-12
Versions of packages tex-common depends on:
ii ucf 3.0052
Versions of packages tex-common suggests:
ii debhelper 13.24.2
Versions of packages texlive-extra-utils is related to:
ii tex-common 6.19
ii texlive-binaries 2024.20240313.70630+ds-6
-- no debconf information
--
TEL : (+33) (0)4 72 50 48 13
GPG public key: 3033 C1AB E141 5413 A9CB 8CB7 D381 E7F0 BCF1 9665
minimal.tgz
(application/x-compressed-tar, 34.4 KB) - not displayed