I tried and then reverted a very simple change ot ox-odt.el -- I wanted to export a unicode symbol instead of [ ] for an empty checkbox.
After this, odt export fails mysteriously with the following:
Using vacuous schema
OpenDocument export failed: Cannot revert nonexistent file /tmp/odt-3348W1J/styles.xml
Result: "OpenDocument export failed: Cannot revert nonexistent file /tmp/odt-3348W1J/styles.xml"
I tried instrumenting org-odt-export-to-odt but was not able to narrow the error down further than:
(let* ((org-odt-embedded-images-count 0)
;; Let `htmlfontify' know that we are interested in collecting
;; Initialize content.xml and kick-off the export process.
(let ((output (org-export-as 'odt subtreep visible-only nil ext-plist))
(let ((nxml-auto-insert-xml-declaration-flag nil))
(concat org-odt-zip-dir "content.xml") t)))))
(with-current-buffer out-buf (erase-buffer) (insert output)))))
i don't seem to be able to instrument the org-odt--export-wrap macro, but maybe the error report comes from this section around line 4067:
;; Cleanup work directory and work files.
(message "OpenDocument export failed: %s"
This is with a pretty recent git master w/ a few changes applied only to ox-html.el.
~git diff master~
shows no changes to ox-odt.el, but I restarted emacs and restarted my laptop just in case -- the problem still persists.