Pas de résultat avec pythontex
J'essaie de compiler un exemple avec pythontex, sans succès !
Le fichier :
\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[french]{babel}
\usepackage[T1]{fontenc}
\usepackage{mathtools}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{pythontex}
\begin{document}
\begin{pycode}
from sympy import *
x, y = symbols('x y')
\end{pycode}
\section{Développements, factorisations...}
Une expression : $x(x + 2y)$
\begin{pycode}
exp = x*(x + 2*y)
dev_exp = expand(exp)
\end{pycode}
La dérivée de la fonction définie par $\cos(x)$ est : $\py{latex(diff(cos(x), x))}$
Une primitive de la fonction définie par $\cos(x)$ est : $\py{latex(integrate(cos(x), x))}$
La limite de la fonction $\frac{ln(x)}{x}$ en $+\infty$ est : $\py{latex(limit(ln(x)/x, x, oo))}$
La limite de la fonction $\frac{1}{x}$ en $0^{+}$ est : $\py{latex(limit(1/x, x, 0, '+'))}$
La limite de la fonction $\frac{1}{x}$ en $0^{-}$ est : $\py{latex(limit(1/x, x, 0, '-'))}$
\end{document}
Voici le fichier log :
<pre>
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (TeX Live 2020) (preloaded format=pdflatex 2020.10.4) 6 OCT 2020 17:04
entering extended mode
\write18 enabled.
%&-line parsing enabled.
**compilation_pythontex.tex
(./compilation_pythontex.tex
LaTeX2e <2020-10-01>
L3 programming layer <2020-09-24> xparse <2020-03-03>
(/usr/local/texlive/2020/texmf-dist/tex/latex/base/article.cls
Document Class: article 2020/04/10 v1.4m Standard LaTeX document class
(/usr/local/texlive/2020/texmf-dist/tex/latex/base/size12.clo
File: size12.clo 2020/04/10 v1.4m Standard LaTeX file (size option)
)
\c@part=\count175
\c@section=\count176
\c@subsection=\count177
\c@subsubsection=\count178
\c@paragraph=\count179
\c@subparagraph=\count180
\c@figure=\count181
\c@table=\count182
\abovecaptionskip=\skip47
\belowcaptionskip=\skip48
\bibindent=\dimen138
)
(/usr/local/texlive/2020/texmf-dist/tex/latex/base/inputenc.sty
Package: inputenc 2020/08/01 v1.3d Input encoding file
\inpenc@prehook=\toks15
\inpenc@posthook=\toks16
)
(/usr/local/texlive/2020/texmf-dist/tex/generic/babel/babel.sty
Package: babel 2020/10/03 3.49 The Babel package
(/usr/local/texlive/2020/texmf-dist/tex/generic/babel/babel.def
File: babel.def 2020/10/03 3.49 Babel common definitions
\babel@savecnt=\count183
\U@D=\dimen139
\l@babelnohyphens=\language86
(/usr/local/texlive/2020/texmf-dist/tex/generic/babel/txtbabel.def)
\bbl@readstream=\read2
)
\bbl@dirlevel=\count184
(/usr/local/texlive/2020/texmf-dist/tex/generic/babel-french/french.ldf
Language: french 2020/09/09 v3.5k French support from the babel system
Package babel Info: \l@acadian = using hyphenrules for french
(babel) (\language28) on input line 91.
Package babel Info: \l@canadien = using hyphenrules for french
(babel) (\language28) on input line 92.
\FB@nonchar=\count185
Package babel Info: Making : an active character on input line 430.
Package babel Info: Making ; an active character on input line 431.
Package babel Info: Making ! an active character on input line 432.
Package babel Info: Making ? an active character on input line 433.
\FBguill@level=\count186
\FBold@everypar=\toks17
\FB@Mht=\dimen140
\mc@charclass=\count187
\mc@charfam=\count188
\mc@charslot=\count189
\std@mcc=\count190
\dec@mcc=\count191
\listindentFB=\dimen141
\descindentFB=\dimen142
\labelindentFB=\dimen143
\labelwidthFB=\dimen144
\leftmarginFB=\dimen145
\parindentFFN=\dimen146
\FBfnindent=\dimen147
))
(/usr/local/texlive/2020/texmf-dist/tex/latex/carlisle/scalefnt.sty)
(/usr/local/texlive/2020/texmf-dist/tex/latex/graphics/keyval.sty
Package: keyval 2014/10/28 v1.15 key=value parser (DPC)
\KV@toks@=\toks18
)
(/usr/local/texlive/2020/texmf-dist/tex/latex/base/fontenc.sty
Package: fontenc 2020/08/10 v2.0s Standard LaTeX package
)
(/usr/local/texlive/2020/texmf-dist/tex/latex/mathtools/mathtools.sty
Package: mathtools 2020/03/24 v1.24 mathematical typesetting tools
(/usr/local/texlive/2020/texmf-dist/tex/latex/tools/calc.sty
Package: calc 2017/05/25 v4.3 Infix arithmetic (KKT,FJ)
\calc@Acount=\count192
\calc@Bcount=\count193
\calc@Adimen=\dimen148
\calc@Bdimen=\dimen149
\calc@Askip=\skip49
\calc@Bskip=\skip50
LaTeX Info: Redefining \setlength on input line 80.
LaTeX Info: Redefining \addtolength on input line 81.
\calc@Ccount=\count194
\calc@Cskip=\skip51
)
(/usr/local/texlive/2020/texmf-dist/tex/latex/mathtools/mhsetup.sty
Package: mhsetup 2017/03/31 v1.3 programming setup (MH)
)
(/usr/local/texlive/2020/texmf-dist/tex/latex/amsmath/amsmath.sty
Package: amsmath 2020/09/23 v2.17i AMS math features
\@mathmargin=\skip52
For additional information on amsmath, use the `?' option.
(/usr/local/texlive/2020/texmf-dist/tex/latex/amsmath/amstext.sty
Package: amstext 2000/06/29 v2.01 AMS text
(/usr/local/texlive/2020/texmf-dist/tex/latex/amsmath/amsgen.sty
File: amsgen.sty 1999/11/30 v2.0 generic functions
\@emptytoks=\toks19
\ex@=\dimen150
))
(/usr/local/texlive/2020/texmf-dist/tex/latex/amsmath/amsbsy.sty
Package: amsbsy 1999/11/29 v1.2d Bold Symbols
\pmbraise@=\dimen151
)
(/usr/local/texlive/2020/texmf-dist/tex/latex/amsmath/amsopn.sty
Package: amsopn 2016/03/08 v2.02 operator names
)
\inf@bad=\count195
LaTeX Info: Redefining \frac on input line 234.
\uproot@=\count196
\leftroot@=\count197
LaTeX Info: Redefining \overline on input line 399.
\classnum@=\count198
\DOTSCASE@=\count199
LaTeX Info: Redefining \ldots on input line 496.
LaTeX Info: Redefining \dots on input line 499.
LaTeX Info: Redefining \cdots on input line 620.
\Mathstrutbox@=\box47
\strutbox@=\box48
\big@size=\dimen152
LaTeX Font Info: Redeclaring font encoding OML on input line 743.
LaTeX Font Info: Redeclaring font encoding OMS on input line 744.
\macc@depth=\count266
\c@MaxMatrixCols=\count267
\dotsspace@=\muskip16
\c@parentequation=\count268
\dspbrk@lvl=\count269
\tag@help=\toks20
\row@=\count270
\column@=\count271
\maxfields@=\count272
\andhelp@=\toks21
\eqnshift@=\dimen153
\alignsep@=\dimen154
\tagshift@=\dimen155
\tagwidth@=\dimen156
\totwidth@=\dimen157
\lineht@=\dimen158
\@envbody=\toks22
\multlinegap=\skip53
\multlinetaggap=\skip54
\mathdisplay@stack=\toks23
LaTeX Info: Redefining \[ on input line 2923.
LaTeX Info: Redefining \] on input line 2924.
)
LaTeX Info: Thecontrolsequence`\('isalreadyrobust on input line 130.
LaTeX Info: Thecontrolsequence`\)'isalreadyrobust on input line 130.
LaTeX Info: Thecontrolsequence`\['isalreadyrobust on input line 130.
LaTeX Info: Thecontrolsequence`\]'isalreadyrobust on input line 130.
\g_MT_multlinerow_int=\count273
\l_MT_multwidth_dim=\dimen159
\origjot=\skip55
\l_MT_shortvdotswithinadjustabove_dim=\dimen160
\l_MT_shortvdotswithinadjustbelow_dim=\dimen161
\l_MT_above_intertext_sep=\dimen162
\l_MT_below_intertext_sep=\dimen163
\l_MT_above_shortintertext_sep=\dimen164
\l_MT_below_shortintertext_sep=\dimen165
\xmathstrut@box=\box49
\xmathstrut@dim=\dimen166
)
(/usr/local/texlive/2020/texmf-dist/tex/latex/amsfonts/amsfonts.sty
Package: amsfonts 2013/01/14 v3.01 Basic AMSFonts support
\symAMSa=\mathgroup4
\symAMSb=\mathgroup5
LaTeX Font Info: Redeclaring math symbol \hbar on input line 98.
LaTeX Font Info: Overwriting math alphabet `\mathfrak' in version `bold'
(Font) U/euf/m/n --> U/euf/b/n on input line 106.
)
(/usr/local/texlive/2020/texmf-dist/tex/latex/amsfonts/amssymb.sty
Package: amssymb 2013/01/14 v3.01 AMS font symbols
)
(/usr/local/texlive/2020/texmf-dist/tex/latex/pythontex/pythontex.sty
Package: pythontex 2019/09/22 v0.17 execute and typeset Python code and other l
anguages
(/usr/local/texlive/2020/texmf-dist/tex/latex/fvextra/fvextra.sty
Package: fvextra 2019/02/04 v1.4 fvextra - extensions and patches for fancyvrb
(/usr/local/texlive/2020/texmf-dist/tex/latex/base/ifthen.sty
Package: ifthen 2014/09/29 v1.1c Standard LaTeX ifthen package (DPC)
)
(/usr/local/texlive/2020/texmf-dist/tex/latex/etoolbox/etoolbox.sty
Package: etoolbox 2020/08/24 v2.5j e-TeX tools for LaTeX (JAW)
\etb@tempcnta=\count274
)
(/usr/local/texlive/2020/texmf-dist/tex/latex/fancyvrb/fancyvrb.sty
Package: fancyvrb 2020/05/03 v3.6 verbatim text (tvz,hv)
\FV@CodeLineNo=\count275
\FV@InFile=\read3
\FV@TabBox=\box50
\c@FancyVerbLine=\count276
\FV@StepNumber=\count277
\FV@OutFile=\write3
)
(/usr/local/texlive/2020/texmf-dist/tex/latex/upquote/upquote.sty
Package: upquote 2012/04/19 v1.3 upright-quote and grave-accent glyphs in verba
tim
(/usr/local/texlive/2020/texmf-dist/tex/latex/base/textcomp.sty
Package: textcomp 2020/02/02 v2.0n Standard LaTeX package
))
(/usr/local/texlive/2020/texmf-dist/tex/latex/lineno/lineno.sty
Package: lineno 2005/11/02 line numbers on paragraphs v4.41
\linenopenalty=\count278
\output=\toks24
\linenoprevgraf=\count279
\linenumbersep=\dimen167
\linenumberwidth=\dimen168
\c@linenumber=\count280
\c@pagewiselinenumber=\count281
\c@LN@truepage=\count282
\c@internallinenumber=\count283
\c@internallinenumbers=\count284
\quotelinenumbersep=\dimen169
\bframerule=\dimen170
\bframesep=\dimen171
\bframebox=\box51
LaTeX Info: Redefining \\ on input line 3056.
)
\c@FV@TrueTabGroupLevel=\count285
\c@FV@TrueTabCounter=\count286
\FV@TabBox@Group=\box52
\FV@TmpLength=\skip56
\c@FV@HighlightLinesStart=\count287
\c@FV@HighlightLinesStop=\count288
\FV@LoopCount=\count289
\FV@NCharsBox=\box53
\FV@BreakIndent=\dimen172
\FV@BreakIndentNChars=\count290
\FV@BreakSymbolSepLeft=\dimen173
\FV@BreakSymbolSepLeftNChars=\count291
\FV@BreakSymbolSepRight=\dimen174
\FV@BreakSymbolSepRightNChars=\count292
\FV@BreakSymbolIndentLeft=\dimen175
\FV@BreakSymbolIndentLeftNChars=\count293
\FV@BreakSymbolIndentRight=\dimen176
\FV@BreakSymbolIndentRightNChars=\count294
\c@FancyVerbLineBreakLast=\count295
\FV@LineBox=\box54
\FV@LineIndentBox=\box55
\FV@LineWidth=\dimen177
)
(/usr/local/texlive/2020/texmf-dist/tex/generic/xstring/xstring.sty
(/usr/local/texlive/2020/texmf-dist/tex/generic/xstring/xstring.tex
\integerpart=\count296
\decimalpart=\count297
)
Package: xstring 2019/02/06 v1.83 String manipulations (CT)
)
(/usr/local/texlive/2020/texmf-dist/tex/latex/pgfopts/pgfopts.sty
Package: pgfopts 2014/07/10 v2.1a LaTeX package options with pgfkeys
(/usr/local/texlive/2020/texmf-dist/tex/latex/pgf/utilities/pgfkeys.sty
(/usr/local/texlive/2020/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex
\pgfkeys@pathtoks=\toks25
\pgfkeys@temptoks=\toks26
(/usr/local/texlive/2020/texmf-dist/tex/generic/pgf/utilities/pgfkeysfiltered.c
ode.tex
\pgfkeys@tmptoks=\toks27
)))
\pgfopts@list@add@a@toks=\toks28
\pgfopts@list@add@b@toks=\toks29
) (/usr/local/texlive/2020/texmf-dist/tex/latex/newfloat/newfloat.sty
Package: newfloat 2019/09/02 v1.1l Defining new floating environments (AR)
) (/usr/local/texlive/2020/texmf-dist/tex/latex/currfile/currfile.sty
Package: currfile 2020/09/29 v0.7d Provides the file path elements of the curre
nt input file
(/usr/local/texlive/2020/texmf-dist/tex/latex/kvoptions/kvoptions.sty
Package: kvoptions 2019/11/29 v3.13 Key value format for package options (HO)
(/usr/local/texlive/2020/texmf-dist/tex/generic/ltxcmds/ltxcmds.sty
Package: ltxcmds 2020-05-10 v1.25 LaTeX kernel commands for general use (HO)
)
(/usr/local/texlive/2020/texmf-dist/tex/generic/kvsetkeys/kvsetkeys.sty
Package: kvsetkeys 2019/12/15 v1.18 Key value parser (HO)
))
(/usr/local/texlive/2020/texmf-dist/tex/latex/filehook/filehook.sty
Package: filehook 2020/09/29 v0.8a Hooks for input files
(/usr/local/texlive/2020/texmf-dist/tex/latex/filehook/filehook-2020.sty
Package: filehook-2020 2020/09/29 v0.8a Hooks for input files
))
\c@currfiledepth=\count298
)
\pytx@codefile=\write4
\openout4 = `compilation_pythontex.pytxcode'.
\c@pytx@FancyVerbLineTemp=\count299
\c@pytx@py@default@default=\count300
\c@pytx@pycon@default@default=\count301
\c@pytx@sympy@default@default=\count302
\c@pytx@sympycon@default@default=\count303
\c@pytx@pylab@default@default=\count304
\c@pytx@pylabcon@default@default=\count305
)
(/usr/local/texlive/2020/texmf-dist/tex/latex/xcolor/xcolor.sty
Package: xcolor 2016/05/11 v2.12 LaTeX color extensions (UK)
(/usr/local/texlive/2020/texmf-dist/tex/latex/graphics-cfg/color.cfg
File: color.cfg 2016/01/02 v1.6 sample color configuration
)
Package xcolor Info: Driver file: pdftex.def on input line 225.
(/usr/local/texlive/2020/texmf-dist/tex/latex/graphics-def/pdftex.def
File: pdftex.def 2020/08/26 v1.2 Graphics/color driver for pdftex
)
Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1348.
Package xcolor Info: Model `hsb' substituted by `rgb' on input line 1352.
Package xcolor Info: Model `RGB' extended on input line 1364.
Package xcolor Info: Model `HTML' substituted by `rgb' on input line 1366.
Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1367.
Package xcolor Info: Model `tHsb' substituted by `hsb' on input line 1368.
Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1369.
Package xcolor Info: Model `Gray' substituted by `gray' on input line 1370.
Package xcolor Info: Model `wave' substituted by `hsb' on input line 1371.
)
(/usr/local/texlive/2020/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def
File: l3backend-pdftex.def 2020-09-24 L3 backend support: PDF output (pdfTeX)
\l__kernel_color_stack_int=\count306
\l__pdf_internal_box=\box56
)
(./compilation_pythontex.aux)
\openout1 = `compilation_pythontex.aux'.
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 10.
LaTeX Font Info: ... okay on input line 10.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 10.
LaTeX Font Info: ... okay on input line 10.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 10.
LaTeX Font Info: ... okay on input line 10.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 10.
LaTeX Font Info: ... okay on input line 10.
LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 10.
LaTeX Font Info: ... okay on input line 10.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 10.
LaTeX Font Info: ... okay on input line 10.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 10.
LaTeX Font Info: ... okay on input line 10.
LaTeX Info: Redefining \degres on input line 10.
LaTeX Info: Redefining \dots on input line 10.
LaTeX Info: Redefining \up on input line 10.
(/usr/local/texlive/2020/texmf-dist/tex/latex/graphics/graphicx.sty
Package: graphicx 2020/09/09 v1.2b Enhanced LaTeX Graphics (DPC,SPQR)
(/usr/local/texlive/2020/texmf-dist/tex/latex/graphics/graphics.sty
Package: graphics 2020/08/30 v1.4c Standard LaTeX Graphics (DPC,SPQR)
(/usr/local/texlive/2020/texmf-dist/tex/latex/graphics/trig.sty
Package: trig 2016/01/03 v1.10 sin cos tan (DPC)
)
(/usr/local/texlive/2020/texmf-dist/tex/latex/graphics-cfg/graphics.cfg
File: graphics.cfg 2016/06/04 v1.11 sample graphics configuration
)
Package graphics Info: Driver file: pdftex.def on input line 105.
)
\Gin@req@height=\dimen178
\Gin@req@width=\dimen179
)
No file pythontex-files-compilation_pythontex/compilation_pythontex.pytxmcr.
Run PythonTeX to create it.
Package newfloat Info: New float `listing' with options `fileext=lopytx' on inp
ut line 10.
\c@listing=\count307
\newfloat@ftype=\count308
Package newfloat Info: float type `listing'=8 on input line 10.
(/usr/local/texlive/2020/texmf-dist/tex/context/base/mkii/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
\scratchcounter=\count309
\scratchdimen=\dimen180
\scratchbox=\box57
\nofMPsegments=\count310
\nofMParguments=\count311
\everyMPshowfont=\toks30
\MPscratchCnt=\count312
\MPscratchDim=\dimen181
\MPnumerator=\count313
\makeMPintoPDFobject=\count314
\everyMPtoPDFconversion=\toks31
) (/usr/local/texlive/2020/texmf-dist/tex/latex/epstopdf-pkg/epstopdf-base.sty
Package: epstopdf-base 2020-01-24 v2.11 Base part for package epstopdf
Package epstopdf-base Info: Redefining graphics rule for `.eps' on input line 4
85.
(/usr/local/texlive/2020/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg
File: epstopdf-sys.cfg 2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Liv
e
))
\c@pytx@py@default@default@line=\count315
LaTeX Font Info: Trying to load font information for U+msa on input line 18.
(/usr/local/texlive/2020/texmf-dist/tex/latex/amsfonts/umsa.fd
File: umsa.fd 2013/01/14 v3.01 AMS symbols A
)
LaTeX Font Info: Trying to load font information for U+msb on input line 18.
(/usr/local/texlive/2020/texmf-dist/tex/latex/amsfonts/umsb.fd
File: umsb.fd 2013/01/14 v3.01 AMS symbols B
)
Package PythonTeX Warning: Missing autoprint content on input line 23.
Package PythonTeX Warning: Missing autoprint content on input line 25.
Package PythonTeX Warning: Missing autoprint content on input line 27.
Package PythonTeX Warning: Missing autoprint content on input line 29.
Package PythonTeX Warning: Missing autoprint content on input line 31.
[1
{/usr/local/texlive/2020/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
(./compilation_pythontex.aux) )
Here is how much of TeX's memory you used:
8761 strings out of 479917
143447 string characters out of 5882713
468680 words of memory out of 5000000
25207 multiletter control sequences out of 15000+600000
545905 words of font info for 55 fonts, out of 8000000 for 9000
1141 hyphenation exceptions out of 8191
72i,5n,77p,345b,424s stack positions out of 5000i,500n,10000p,200000b,80000s
{/usr/local/texlive/2020/texmf-dist/fonts/enc/dv
ips/cm-super/cm-super-t1.enc}</usr/local/texlive/2020/texmf-dist/fonts/type1/pu
blic/amsfonts/cm/cmmi12.pfb></usr/local/texlive/2020/texmf-dist/fonts/type1/pub
lic/amsfonts/cm/cmmi8.pfb></usr/local/texlive/2020/texmf-dist/fonts/type1/publi
c/amsfonts/cm/cmr12.pfb></usr/local/texlive/2020/texmf-dist/fonts/type1/public/
amsfonts/cm/cmr8.pfb></usr/local/texlive/2020/texmf-dist/fonts/type1/public/ams
fonts/cm/cmsy10.pfb></usr/local/texlive/2020/texmf-dist/fonts/type1/public/amsf
onts/cm/cmsy8.pfb></usr/local/texlive/2020/texmf-dist/fonts/type1/public/cm-sup
er/sfbx1200.pfb></usr/local/texlive/2020/texmf-dist/fonts/type1/public/cm-super
/sfbx1728.pfb></usr/local/texlive/2020/texmf-dist/fonts/type1/public/cm-super/s
frm1200.pfb>
Output written on compilation_pythontex.pdf (1 page, 76005 bytes).
PDF statistics:
45 PDF objects out of 1000 (max. 8388607)
32 compressed objects within 1 object stream
0 named destinations out of 1000 (max. 500000)
1 words of extra memory for PDF output out of 10000 (max. 10000000)
</pre>
ubuntu 20.04 texlive 2020
commande texstudio :
`pdflatex --shell-escape -synctex=1 -interaction=nonstopmode %.tex |python3 /usr/local/bin/pythontex.py %.tex|pdflatex --shell-escape -synctex=1 -interaction=nonstopmode %.tex|"/usr/bin/evince" %.pdf`
En exécutant les trois étapes, et avec pythontex :
<pre>
This is PythonTeX 0.17
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "/usr/local/texlive/2020/texmf-dist/scripts/pythontex/pythontex3.py", line 1560, in run_code
proc = subprocess.Popen(exec_cmd, stdout=out_file, stderr=err_file)
File "/usr/lib/python3.8/subprocess.py", line 854, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.8/subprocess.py", line 1702, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'python'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.8/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/local/texlive/2020/texmf-dist/scripts/pythontex/pythontex3.py", line 1563, in run_code
except WindowsError as e:
NameError: name 'WindowsError' is not defined
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/bin/pythontex", line 62, in <module>
pythontex.main()
File "/usr/local/texlive/2020/texmf-dist/scripts/pythontex/pythontex3.py", line 2811, in main
do_multiprocessing(data, temp_data, old_data, engine_dict)
File "/usr/local/texlive/2020/texmf-dist/scripts/pythontex/pythontex3.py", line 1383, in do_multiprocessing
result = task.get()
File "/usr/lib/python3.8/multiprocessing/pool.py", line 768, in get
raise self._value
NameError: name 'WindowsError' is not defined
</pre>