From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Price Subject: "cannot Revert nonexistent file" on odt export Date: Mon, 2 Jan 2017 20:59:48 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1141cb54e5f26e05452705c2 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52141) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cOEOG-0002rH-Gg for emacs-orgmode@gnu.org; Mon, 02 Jan 2017 20:59:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cOEOF-00041D-2t for emacs-orgmode@gnu.org; Mon, 02 Jan 2017 20:59:52 -0500 Received: from mail-io0-x234.google.com ([2607:f8b0:4001:c06::234]:33349) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cOEOE-00040z-Tw for emacs-orgmode@gnu.org; Mon, 02 Jan 2017 20:59:50 -0500 Received: by mail-io0-x234.google.com with SMTP id d9so421508063ioe.0 for ; Mon, 02 Jan 2017 17:59:49 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Org Mode --001a1141cb54e5f26e05452705c2 Content-Type: text/plain; charset=UTF-8 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 --001a1141cb54e5f26e05452705c2 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I tried and then reverted a very simple change o= t ox-odt.el -- I wanted to export a unicode symbol instead of [ ] for an em= pty checkbox.=C2=A0

After this, odt export fails mysteriously= with the following:

------------
Wrote /tmp/odt-3348W1J/meta.xm= l
Using vacuous schema
OpenDocument export failed: Cannot revert none= xistent file /tmp/odt-3348W1J/styles.xml
Result: "OpenDocument expo= rt failed: Cannot revert nonexistent file /tmp/odt-3348W1J/styles.xml"=
------------

I tried instrumenting org-odt-export-to-odt b= ut was not able to narrow the error down further than:

(org-odt--exp= ort-wrap
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 outfile
=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 (let* ((org-odt-embedded-images-count 0)
=C2=A0=C2= =A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (org-odt-embedded-formulas-count 0= )
=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (org-odt-automatic-s= tyles nil)
=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (org-odt-ob= ject-counters nil)
=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ;; = Let `htmlfontify' know that we are interested in collecting
=C2=A0= =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ;; styles.
=C2=A0=C2=A0=C2= =A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (hfy-user-sheet-assoc nil))
=C2=A0=C2= =A0=C2=A0 =C2=A0;; Initialize content.xml and kick-off the export process.<= br>=C2=A0=C2=A0=C2=A0 =C2=A0(let ((output (org-export-as 'odt subtreep = visible-only nil ext-plist))
=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 (out-buf (progn
=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2= =A0=C2=A0=C2=A0 =C2=A0 (require 'nxml-mode)
=C2=A0=C2=A0=C2=A0 =C2= =A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0 (let ((nxml-auto-insert-xml-decla= ration-flag nil))
=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2= =A0 =C2=A0=C2=A0=C2=A0 (find-file-noselect
=C2=A0=C2=A0=C2=A0 =C2=A0=C2= =A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 (concat org-odt-zip-d= ir "content.xml") t)))))
=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0 (with= -current-buffer out-buf (erase-buffer) (insert output)))))


=
i don't seem to be able to instrument the org-odt--export-wr= ap macro, but maybe the error report comes from this section around line 40= 67:

(error
=C2=A0=C2=A0=C2=A0 ;; Cleanup work directory and work = files.
=C2=A0=C2=A0=C2=A0 (funcall --cleanup-xml-buffers)
=C2=A0=C2= =A0=C2=A0 (message "OpenDocument export failed: %s"
=C2=A0=C2= =A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0(error-message-string err)

=
This is with a pretty recent git master w/ a few changes applied only = to ox-html.el.=C2=A0

~git diff master~

shows no changes to = ox-odt.el, but I restarted emacs and restarted my laptop just in case -- th= e problem still persists.=C2=A0

Thanks!

Matt


--001a1141cb54e5f26e05452705c2--