I’ve recently found that my scratch book won’t process unless it contains a WebWorK exercise. Without any WW exercise, (basically the book has two Tikz images) I got:
PreTeXt project found in `/home/byoshiwara/scratch`.
warning: Using CLI version 1.8.0 but project's `requirements.txt`
warning: is configured to use 1.7.4. Consider either installing
warning: CLI version 1.7.4 or changing `requirements.txt` to match 1.8.0.
Since no build target was supplied, the first target of the project.ptx manifest (web) will be built.
Traceback (most recent call last):
File "/home/byoshiwara/.local/bin/pretext", line 8, in <module>
sys.exit(main())
File "/home/byoshiwara/.local/lib/python3.8/site-packages/click/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
File "/home/byoshiwara/.local/lib/python3.8/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/home/byoshiwara/.local/lib/python3.8/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/byoshiwara/.local/lib/python3.8/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/byoshiwara/.local/lib/python3.8/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/home/byoshiwara/.local/lib/python3.8/site-packages/pretext/cli.py", line 441, in build
if ("webwork", "") not in asset_table or asset_hash_dict[
KeyError: ('webwork', '')
However, if I include a WW exercise, the html of the scratch book is produced without warnings.
This issue may have started when I upgraded to 1.8.0, but it persisted when I went back to 1.7.4. I use this scratch book as a place to practice markup/coding.
I've also had a new error regarding an "include" on a line that used to be ok. The error message ended with the two lines
File "/home/byoshiwara/scratch/source/scratch.xml", line 5
lxml.etree.XMLSyntaxError: Namespace prefix xi on include is not defined, line 5, column 41
where line 5 was
<xi:include href="./meta_docinfo.ptx" />
Bruce