I had been able to create web, print, and print-latex versions of Kathy’s MFG (Modeling, Functions, and Graphs) using the CLI pre-version 2.0.
Evidently the CLI now requires a directory structure we have not been using. Specifically, we did not have any directory named “source”, but in the publication file included the lines
<source>
<directories external="../ext" generated="../gen"/>
</source>
The ptx source files have been in a directory named "ptx".
I edited the project.ptx file that had been created with a pretext init --refresh so that project.ptx included the line
<target name="web" format="html" source="../ptx/mfg.xml"/>
I tried a pretext build and got the error that the file source/../ptx/mfg.xml does not exist. So I tried renaming the directory from "ptx" to "source and got a new error
PreTeXt project found in `/home/byoshiwara/mfg`.
Since no target was supplied, we will use "web".
critical: 2 validation errors for PublicationSubset
critical: external
critical: Field required [type=missing, input_value={}, input_type=dict]
critical: For further information visit
https://errors.pydantic.dev/2.4/v/missingcritical: generated
critical: Field required [type=missing, input_value={}, input_type=dict]
critical: For further information visit
https://errors.pydantic.dev/2.4/v/missing------------------------
Failed to build. Exiting...
----------------------------------------------------
While running pretext, the following errors occurred:
critical: 2 validation errors for PublicationSubset
critical: external
critical: Field required [type=missing, input_value={}, input_type=dict]
critical: For further information visit
https://errors.pydantic.dev/2.4/v/missingcritical: generated
critical: Field required [type=missing, input_value={}, input_type=dict]
critical: For further information visit
https://errors.pydantic.dev/2.4/v/missing