Here's an excerpt from the attached cli.log that Mike May showed us in drop in today:
INFO : using playwright package to create previews for interactives from /Users/maymk/Documents/GitHub/ExcelCalculus/source/main.ptx for placement in /Users/maymk/Documents/GitHub/ExcelCalculus/generated-assets/preview
DEBUG : Interactives id list temporarily in /var/folders/r9/8c07scj524g0h639hnj9bj_n151h0z/T/tmp0nbz5mgw/interactives-ids.txt
DEBUG : Interactives html files temporarily in /var/folders/r9/8c07scj524g0h639hnj9bj_n151h0z/T/tmp0nbz5mgw
INFO : XSL conversion of /Users/maymk/Documents/GitHub/ExcelCalculus/source/main.ptx by /Users/maymk/.ptx/xsl/extract-interactive.xsl
DEBUG : XSL conversion via /Users/maymk/.ptx/xsl/extract-interactive.xsl of /Users/maymk/Documents/GitHub/ExcelCalculus/source/main.ptx to /var/folders/r9/8c07scj524g0h639hnj9bj_n151h0z/T/tmp0nbz5mgw/interactives-ids.txt and/or into directory /var/folders/r9/8c07scj524g0h639hnj9bj_n151h0z/T/tmp0nbz5mgw with parameters {'publisher': '/Users/maymk/Documents/GitHub/ExcelCalculus/publication/publication.ptx'}
INFO : comprehensive messages, warnings, and errors:
INFO : successful application of /Users/maymk/.ptx/xsl/extract-interactive.xsl
INFO : discovering source file's directory name: /Users/maymk/Documents/GitHub/ExcelCalculus/source
INFO : verifying and expanding input directory: /Users/maymk/Documents/GitHub/ExcelCalculus/source/../generated-assets
INFO : input directory expanded to absolute path: /Users/maymk/Documents/GitHub/ExcelCalculus/generated-assets
INFO : verifying and expanding input directory: /Users/maymk/Documents/GitHub/ExcelCalculus/source/../assets
INFO : input directory expanded to absolute path: /Users/maymk/Documents/GitHub/ExcelCalculus/assets
INFO : Opening subprocess http.server with port=8888
DEBUG : Subprocess to open http.server failed
DEBUG : Trying port 49253 instead.
INFO : Opening subprocess http.server with port=49253
DEBUG : Subprocess to open http.server failed
DEBUG : Trying port 64300 instead.
INFO : Opening subprocess http.server with port=64300
DEBUG : Subprocess to open http.server failed
DEBUG : Trying port 53318 instead.
INFO : Opening subprocess http.server with port=53318
DEBUG : Subprocess to open http.server failed
DEBUG : Trying port 56237 instead.
INFO : Opening subprocess http.server with port=56237
DEBUG : Subprocess to open http.server failed
DEBUG : Trying port 56184 instead.
INFO : Opening subprocess http.server with port=56184
DEBUG : Subprocess to open http.server failed
DEBUG : Trying port 65350 instead.
INFO : Opening subprocess http.server with port=65350
DEBUG : Subprocess to open http.server failed
DEBUG : Trying port 63191 instead.
INFO : Opening subprocess http.server with port=63191
DEBUG : Subprocess to open http.server failed
DEBUG : Trying port 52771 instead.
INFO : Opening subprocess http.server with port=52771
DEBUG : Subprocess to open http.server failed
DEBUG : Trying port 62518 instead.
INFO : Opening subprocess http.server with port=62518
DEBUG : Subprocess to open http.server failed
DEBUG : Trying port 57750 instead.
ERROR : Unable to open http.server for interactive previews
INFO : Closing http.server subprocess
ERROR : Failed to generate interactive element previews. Check debug log for info.
DEBUG : local variable 'server' referenced before assignment
DEBUG : Exception info:
##################
Traceback (most recent call last):
File "/Users/maymk/Library/Python/3.9/lib/python/site-packages/pretext/core/pretext.py", line 2069, in preview_images
log.debug("Using http.server subprocess {}".format(server.pid))
UnboundLocalError: local variable 'server' referenced before assignment
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/maymk/Library/Python/3.9/lib/python/site-packages/pretext/generate.py", line 211, in interactive
core.preview_images(
File "/Users/maymk/Library/Python/3.9/lib/python/site-packages/pretext/core/pretext.py", line 2075, in preview_images
server.kill()
UnboundLocalError: local variable 'server' referenced before assignment
INFO : ##################
WARNING : Continuing...
DEBUG : Successfully changed directory back to .
INFO : Now generating youtube previews
The error is being raised by the core pretext.py, but of course it's being called by the CLI. Anyone have any clues?