First, thank-you Kyle for the report, diagnosis, and suggested fix. There was
actually some code comments suggesting this needed to be done. Technical debt.
There was a second instance within a routine getting PDF images for MyOpenMath
problems. That was adjusted, too.
And my assistant suggested we could fail more gracefully for the interactive
preview images, so some work has gone into improving that situation.
https://github.com/PreTeXtBook/pretext/pull/3035
Rob
On 7/8/26 11:44, 'Kyle Monette' via PreTeXt support wrote:
> Hi Rob,
>
> It seems it was added in version 3.7, according to this page <https://
>
docs.python.org/3/library/asyncio-runner.html#running-an-asyncio-program>.
>
> On Wednesday, July 8, 2026 at 2:35:29 PM UTC-4 Rob Beezer wrote:
>
> Dear Kyle,
>
> Will .run() behave with older versions of Python? In other words, when was it
> first introduced?
>
> It was only this week that we moved to 3.10 as the minimum Python version for
> these routines.
>
> (No, we are not opening a discussion about how old or how new 3.10 is, I know
> exactly what the situation is.)
>
> Rob
>
> On 7/8/26 11:10, 'Kyle Monette' via PreTeXt support wrote:
> > Hi all,
> >
> > I noticed that preview images are not being generated for interactives in my
> > book when building to a pdf document ("print"). Namely, jsxgraph images. I
> > attempted the following command:
> > pretext generate -t print interactive
> >
> > For some context -- I downloaded pretext on my Mac using pipx, and I'm using
> > version 3.14 of Python. I have version 2.43.2 of Pretext (just upgraded
> today).
> >
> > This appears to be an issue with Python 3.14. In particular, in the pretext/
> > pretext/lib/pretext.py file, at line 1976 (linked here <https://
>
github.com/ <
https://github.com/>
> > PreTeXtBook/pretext/blob/e4dc1200082d23ceedd47f9cfa14f38d189a3cbb/
> <
https://groups.google.com/d/msgid/pretext->
> > support/02a19363-f43b-49d0-8bf7-0f49ae364736n%
40googlegroups.com
> <
http://40googlegroups.com> <https://
> >
groups.google.com/d/msgid/pretext-support/02a19363- <http://
>
groups.google.com/d/msgid/pretext-support/02a19363->
> > f43b-49d0-8bf7-0f49ae364736n%
40googlegroups.com?
> utm_medium=email&utm_source=footer <
http://40googlegroups.com?
> utm_medium=email&utm_source=footer>>.
> support/5d4a5955-a839-4c49-bcf1-9947371158d8n%
40googlegroups.com <https://
>
groups.google.com/d/msgid/pretext-support/5d4a5955-a839-4c49-
> bcf1-9947371158d8n%
40googlegroups.com?utm_medium=email&utm_source=footer>.