I'm diving into the deep end of the pretext pool, using it to write guided lecture notes for students in my real analysis course. I'm now trying to include some simple diagrams that will be rendered by prefigure. However, my installation of pretext isn't loading the module when I run 'pretext build' or 'pretext generate'.
My documents and their prefigure assets generate fine on another machine I work on, so I know it's the installation that's failing me.
I'm working on a Mac Studio with
python version 3.12.3
node version v25.4.0
pretext version 2.4.1
I've tried 'Pipx install pretext' and 'Pipx install pretext[all]' with no luck. The only error I'm getting is this:
error: Unable to generate some prefigure images:
error: PTX ERROR: the "prefig" module has failed to load, and
error: this is necessary for the task you have requested. Perhaps
error: you have not installed it? Or perhaps you have forgotten to
error: use a Python virtual environment you set up for this purpose?
Honestly, I'm not that comfortable with these virtual environments that I associate with Pipx (as opposed to pip). Can anyone point me to some instructions that will help me get my install in full working order? I'm the only one who works on this machine, so I can nuke anything that will help get prefigure to generate document assets.
Thanks in advance!
Jason
NOTE: no AI was used in the composition of this message to you
==================================
Jason Miller, Ph.D.
Professor of Mathematics
California State University Channel Islands
email:
jason....@csuci.eduweb:
http://www.jasonemiller.org---> SAY NO to generative AI <---