emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Matt Price <moptop99@gmail.com>
To: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: "cannot Revert nonexistent file" on odt export
Date: Mon, 2 Jan 2017 22:46:00 -0500	[thread overview]
Message-ID: <CAN_Dec_R3TvogM_61g5E-Nm-xYsPoAt=rEBH=aqRK7Zfnt522A@mail.gmail.com> (raw)
In-Reply-To: <CAN_Dec8XNs8w69kvq0fka8wiFbm4fr8y4Q750FgVNi4v-nd+yw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2283 bytes --]

Please ignore the noise. I had added the odt template to the file to be
exported; it included the following line:

#+ODT_STYLES_FILE:

Which I guess overrode my setting for odt_styles_dir.

solved.


On Mon, Jan 2, 2017 at 8:59 PM, Matt Price <moptop99@gmail.com> wrote:

> 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:
>
> ------------
> Wrote /tmp/odt-3348W1J/meta.xml
> 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:
>
> (org-odt--export-wrap
>        outfile
>        (let* ((org-odt-embedded-images-count 0)
>           (org-odt-embedded-formulas-count 0)
>           (org-odt-automatic-styles nil)
>           (org-odt-object-counters nil)
>           ;; Let `htmlfontify' know that we are interested in collecting
>           ;; styles.
>           (hfy-user-sheet-assoc nil))
>      ;; Initialize content.xml and kick-off the export process.
>      (let ((output (org-export-as 'odt subtreep visible-only nil
> ext-plist))
>            (out-buf (progn
>               (require 'nxml-mode)
>               (let ((nxml-auto-insert-xml-declaration-flag nil))
>                 (find-file-noselect
>                  (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:
>
> (error
>     ;; Cleanup work directory and work files.
>     (funcall --cleanup-xml-buffers)
>     (message "OpenDocument export failed: %s"
>          (error-message-string err)
>
> 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.
>
> Thanks!
>
> Matt
>
>
>

[-- Attachment #2: Type: text/html, Size: 3122 bytes --]

      reply	other threads:[~2017-01-03  3:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-03  1:59 "cannot Revert nonexistent file" on odt export Matt Price
2017-01-03  3:46 ` Matt Price [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAN_Dec_R3TvogM_61g5E-Nm-xYsPoAt=rEBH=aqRK7Zfnt522A@mail.gmail.com' \
    --to=moptop99@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).