ODE book fails to build

18 views
Skip to first unread message

Thomas Judson

unread,
Sep 16, 2023, 5:23:34 AMSep 16
to pretext...@googlegroups.com
I have been building the ODE Project with the CLI.  It worked in July.  I have upgraded to version 2.0.1.  I now get the following errors and the build fails.  HELP!

macbook-pro-1:odeproject-public twjudson1$ pretext build html

PreTeXt project found in `/Users/twjudson1/Documents/books/odeproject-public`.

Checking for update for required playwright chromium browser.

/bin/sh: playwright: command not found

using playwright package to create previews for interactives from /Users/twjudson1/Documents/books/odeproject-public/source/main.ptx for placement in /Users/twjudson1/Documents/books/odeproject-public/generated-assets/preview

XSL conversion of /Users/twjudson1/Documents/books/odeproject-public/source/main.ptx by /Users/twjudson1/.ptx/xsl/extract-interactive.xsl

comprehensive messages, warnings, and errors:

successful application of /Users/twjudson1/.ptx/xsl/extract-interactive.xsl

discovering source file's directory name: /Users/twjudson1/Documents/books/odeproject-public/source

verifying and expanding input directory: /Users/twjudson1/Documents/books/odeproject-public/source/../generated-assets

input directory expanded to absolute path: /Users/twjudson1/Documents/books/odeproject-public/generated-assets

verifying and expanding input directory: /Users/twjudson1/Documents/books/odeproject-public/source/../assets

input directory expanded to absolute path: /Users/twjudson1/Documents/books/odeproject-public/assets

Opening subprocess http.server with port=8888

Closing http.server subprocess

using playwright package to create previews for interactives from /Users/twjudson1/Documents/books/odeproject-public/source/main.ptx for placement in /Users/twjudson1/Documents/books/odeproject-public/generated-assets/preview

XSL conversion of /Users/twjudson1/Documents/books/odeproject-public/source/main.ptx by /Users/twjudson1/.ptx/xsl/extract-interactive.xsl

comprehensive messages, warnings, and errors:

successful application of /Users/twjudson1/.ptx/xsl/extract-interactive.xsl

discovering source file's directory name: /Users/twjudson1/Documents/books/odeproject-public/source

verifying and expanding input directory: /Users/twjudson1/Documents/books/odeproject-public/source/../generated-assets

input directory expanded to absolute path: /Users/twjudson1/Documents/books/odeproject-public/generated-assets

verifying and expanding input directory: /Users/twjudson1/Documents/books/odeproject-public/source/../assets

input directory expanded to absolute path: /Users/twjudson1/Documents/books/odeproject-public/assets

Opening subprocess http.server with port=8888

Closing http.server subprocess

using playwright package to create previews for interactives from /Users/twjudson1/Documents/books/odeproject-public/source/main.ptx for placement in /Users/twjudson1/Documents/books/odeproject-public/generated-assets/preview

XSL conversion of /Users/twjudson1/Documents/books/odeproject-public/source/main.ptx by /Users/twjudson1/.ptx/xsl/extract-interactive.xsl

comprehensive messages, warnings, and errors:

successful application of /Users/twjudson1/.ptx/xsl/extract-interactive.xsl

discovering source file's directory name: /Users/twjudson1/Documents/books/odeproject-public/source

verifying and expanding input directory: /Users/twjudson1/Documents/books/odeproject-public/source/../generated-assets

input directory expanded to absolute path: /Users/twjudson1/Documents/books/odeproject-public/generated-assets

verifying and expanding input directory: /Users/twjudson1/Documents/books/odeproject-public/source/../assets

input directory expanded to absolute path: /Users/twjudson1/Documents/books/odeproject-public/assets

Opening subprocess http.server with port=8888

Closing http.server subprocess

manufacturing QR codes from /Users/twjudson1/Documents/books/odeproject-public/source/main.ptx for placement in /Users/twjudson1/Documents/books/odeproject-public/generated-assets/qrcode

XSL conversion of /Users/twjudson1/Documents/books/odeproject-public/source/main.ptx by /Users/twjudson1/.ptx/xsl/extract-qrcode.xsl

comprehensive messages, warnings, and errors:

successful application of /Users/twjudson1/.ptx/xsl/extract-qrcode.xsl

creating URL with content "firstlook03-interactive-direction-fields.html" as /Users/twjudson1/Documents/books/odeproject-public/generated-assets/qrcode/firstlook03-interactive-direction-fields.png...

QR code creation complete

manufacturing QR codes from /Users/twjudson1/Documents/books/odeproject-public/source/main.ptx for placement in /Users/twjudson1/Documents/books/odeproject-public/generated-assets/qrcode

XSL conversion of /Users/twjudson1/Documents/books/odeproject-public/source/main.ptx by /Users/twjudson1/.ptx/xsl/extract-qrcode.xsl

comprehensive messages, warnings, and errors:

successful application of /Users/twjudson1/.ptx/xsl/extract-qrcode.xsl

creating URL with content "interactive-systems04-linear-systems.html" as /Users/twjudson1/Documents/books/odeproject-public/generated-assets/qrcode/interactive-systems04-linear-systems.png...

QR code creation complete

manufacturing QR codes from /Users/twjudson1/Documents/books/odeproject-public/source/main.ptx for placement in /Users/twjudson1/Documents/books/odeproject-public/generated-assets/qrcode

XSL conversion of /Users/twjudson1/Documents/books/odeproject-public/source/main.ptx by /Users/twjudson1/.ptx/xsl/extract-qrcode.xsl

comprehensive messages, warnings, and errors:

successful application of /Users/twjudson1/.ptx/xsl/extract-qrcode.xsl

creating URL with content "systems02-interactive-direction-fields.html" as /Users/twjudson1/Documents/books/odeproject-public/generated-assets/qrcode/systems02-interactive-direction-fields.png...

QR code creation complete

Removing temporary directory /var/folders/h4/88gnsbw51ws6p6p88ppk4tym0000gn/T/tmpzigefy4y

Removing temporary directory /var/folders/h4/88gnsbw51ws6p6p88ppk4tym0000gn/T/tmpsgsv0uxi

Removing temporary directory /var/folders/h4/88gnsbw51ws6p6p88ppk4tym0000gn/T/tmpdluyw_47

Removing temporary directory /var/folders/h4/88gnsbw51ws6p6p88ppk4tym0000gn/T/tmpevwrb20g

Removing temporary directory /var/folders/h4/88gnsbw51ws6p6p88ppk4tym0000gn/T/tmpakaefr50

Removing temporary directory /var/folders/h4/88gnsbw51ws6p6p88ppk4tym0000gn/T/tmpanortyi1

Preparing to build into /Users/twjudson1/Documents/books/odeproject-public/output/html.

discovering source file's directory name: /Users/twjudson1/Documents/books/odeproject-public/source

verifying and expanding input directory: /Users/twjudson1/Documents/books/odeproject-public/source/../generated-assets

input directory expanded to absolute path: /Users/twjudson1/Documents/books/odeproject-public/generated-assets

verifying and expanding input directory: /Users/twjudson1/Documents/books/odeproject-public/source/../assets

input directory expanded to absolute path: /Users/twjudson1/Documents/books/odeproject-public/assets

Runestone Services (via PreTeXt repository): version 7.1.2

Runestone Services (using newer, via online CDN query): version 7.1.4

converting /Users/twjudson1/Documents/books/odeproject-public/source/main.ptx to HTML in /var/folders/h4/88gnsbw51ws6p6p88ppk4tym0000gn/T/tmpzxv76rw_

XSL conversion of /Users/twjudson1/Documents/books/odeproject-public/source/main.ptx by /Users/twjudson1/.ptx/xsl/pretext-html.xsl

critical: [Errno 2] No such file or directory

------------------------

Failed to build.  Exiting...


----------------------------------------------------

While running pretext, the following errors occurred:


critical: [Errno 2] No such file or directory

----------------------------------------------------

macbook-pro-1:odeproject-public twjudson1$ 


Oscar Levin

unread,
Sep 16, 2023, 10:40:12 AMSep 16
to PreTeXt support
Hi Tom,

I don't know why this happens some times, but it appears that the CLI did not properly install all the core files in ~/.ptx.  Could you try running `rm ~/.ptx/.commit` and then running pretext build again?  The first thing you should see in output is that "Static files do not appear to be installed" and that they will be installed.

Oscar.

Thomas Judson

unread,
Sep 16, 2023, 11:15:55 AMSep 16
to pretext...@googlegroups.com
Same result.

macbook-pro-1:source twjudson1$ rm ~/.ptx/.commit

macbook-pro-1:source twjudson1$ pretext build html

Static pretext files do not appear to be installed.  Installing now.

Static files required for pretext have now been installed to /Users/twjudson1/.ptx

creating URL with content "systems02-interactive-direction-fields.html" as /Users/twjudson1/Documents/books/odeproject-public/generated-assets/qrcode/systems02-interactive-direction-fields.png...

QR code creation complete

manufacturing QR codes from /Users/twjudson1/Documents/books/odeproject-public/source/main.ptx for placement in /Users/twjudson1/Documents/books/odeproject-public/generated-assets/qrcode

XSL conversion of /Users/twjudson1/Documents/books/odeproject-public/source/main.ptx by /Users/twjudson1/.ptx/xsl/extract-qrcode.xsl

comprehensive messages, warnings, and errors:

successful application of /Users/twjudson1/.ptx/xsl/extract-qrcode.xsl

creating URL with content "interactive-systems04-linear-systems.html" as /Users/twjudson1/Documents/books/odeproject-public/generated-assets/qrcode/interactive-systems04-linear-systems.png...

QR code creation complete

Removing temporary directory /var/folders/h4/88gnsbw51ws6p6p88ppk4tym0000gn/T/tmp324388z4

Removing temporary directory /var/folders/h4/88gnsbw51ws6p6p88ppk4tym0000gn/T/tmpwvgltb38

Removing temporary directory /var/folders/h4/88gnsbw51ws6p6p88ppk4tym0000gn/T/tmpb8334gef

Removing temporary directory /var/folders/h4/88gnsbw51ws6p6p88ppk4tym0000gn/T/tmpe986rczn

Removing temporary directory /var/folders/h4/88gnsbw51ws6p6p88ppk4tym0000gn/T/tmpqc575agl

Removing temporary directory /var/folders/h4/88gnsbw51ws6p6p88ppk4tym0000gn/T/tmpgnr_w_sj

Preparing to build into /Users/twjudson1/Documents/books/odeproject-public/output/html.

discovering source file's directory name: /Users/twjudson1/Documents/books/odeproject-public/source

verifying and expanding input directory: /Users/twjudson1/Documents/books/odeproject-public/source/../generated-assets

input directory expanded to absolute path: /Users/twjudson1/Documents/books/odeproject-public/generated-assets

verifying and expanding input directory: /Users/twjudson1/Documents/books/odeproject-public/source/../assets

input directory expanded to absolute path: /Users/twjudson1/Documents/books/odeproject-public/assets

Runestone Services (via PreTeXt repository): version 7.1.2

Runestone Services (using newer, via online CDN query): version 7.1.4

converting /Users/twjudson1/Documents/books/odeproject-public/source/main.ptx to HTML in /var/folders/h4/88gnsbw51ws6p6p88ppk4tym0000gn/T/tmpobyy7u_r

XSL conversion of /Users/twjudson1/Documents/books/odeproject-public/source/main.ptx by /Users/twjudson1/.ptx/xsl/pretext-html.xsl

critical: [Errno 2] No such file or directory

------------------------

Failed to build.  Exiting...


----------------------------------------------------

While running pretext, the following errors occurred:


critical: [Errno 2] No such file or directory

----------------------------------------------------

macbook-pro-1:source twjudson1$ 



--
You received this message because you are subscribed to the Google Groups "PreTeXt support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pretext-suppo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pretext-support/71b97cdf-d0b8-4143-a667-371b00f5702an%40googlegroups.com.

Oscar Levin

unread,
Sep 16, 2023, 11:24:05 AMSep 16
to PreTeXt support
Could you try `pretext support` and post the output, as well as see what you get for `pretext -v debug build`.  I'm thinking now that some asset isn't being generated and that it is the file that cannot be found.

Thomas Judson

unread,
Sep 16, 2023, 4:35:10 PMSep 16
to pretext...@googlegroups.com

pretext -v debug build html


works but 


pretext build html


does not work.  Very strange.


Reply all
Reply to author
Forward
0 new messages