From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mirko Vukovic Subject: Re: odt-export fails Date: Sat, 25 Feb 2012 11:44:11 -0500 Message-ID: References: <81mx872gbf.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:41133) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S1KjK-0002gx-Ss for emacs-orgmode@gnu.org; Sat, 25 Feb 2012 11:44:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S1KjF-0006HB-0I for emacs-orgmode@gnu.org; Sat, 25 Feb 2012 11:44:18 -0500 Received: from mail-gx0-f169.google.com ([209.85.161.169]:48102) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S1KjE-0006H7-Qi for emacs-orgmode@gnu.org; Sat, 25 Feb 2012 11:44:12 -0500 Received: by ggnf1 with SMTP id f1so1829844ggn.0 for ; Sat, 25 Feb 2012 08:44:12 -0800 (PST) In-Reply-To: <81mx872gbf.fsf@gmail.com> 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Jambunathan K Cc: emacs-orgmode@gnu.org Hello Jambunathan, I do not have the odt document open. >From the *Message* buffer, it seems that zip is looking for the odt file in c:\Users\...\AppData\Temp\..., but the file is not present In the org-odt-save-as-outfile let* block from which the error is thrown (let* ((target-name) =A0 =A0 =A0 =A0 (target ...) =A0 =A0 =A0 =A0 ...) zip-commands) zip-commands are looking for the *.odt file to zip together with the mimetype file. =A0But the *.odt file is not there. The only thing that is there is the content.xml, that contains the the *.org file's text. In fact, in the code, I don't see anything being done with the xml files. They are created, and then killed. I am including the trace from the *Messages* buffer. **** Trace begin Export buffer: Exporting to ODT using org-lparse... Using vacuous schema LaTeX to MathML converter not available. Using dvipng instead. Exporting... Using vacuous schema ODT export done, pushed to kill ring and clipboard Wrote c:/Users/977315/AppData/Local/Temp/odt-7628lrW/meta.xml Using vacuous schema Saving file c:/Users/977315/AppData/Local/Temp/odt-7628lrW/styles.xml... Wrote c:/Users/977315/AppData/Local/Temp/odt-7628lrW/styles.xml Wrote c:/Users/977315/AppData/Local/Temp/odt-7628lrW/mimetype Using vacuous schema Switching to directory c:/Users/977315/AppData/Local/Temp/odt-7628lrW/ Saving file c:/Users/977315/AppData/Local/Temp/odt-7628lrW/styles.xml... Wrote c:/Users/977315/AppData/Local/Temp/odt-7628lrW/styles.xml (No changes need to be saved) Saving file c:/Users/977315/AppData/Local/Temp/odt-7628lrW/META-INF/manifes= t.xml... Wrote c:/Users/977315/AppData/Local/Temp/odt-7628lrW/META-INF/manifest.xml Saving file c:/Users/977315/AppData/Local/Temp/odt-7628lrW/content.xml... Wrote c:/Users/977315/AppData/Local/Temp/odt-7628lrW/content.xml Using vacuous schema (No changes need to be saved) Creating odt file... Running zip -mX0 org-odt-export.odt mimetype zip warning: name not matched: mimetype zip error: Nothing to do! (org-odt-export.odt) Entering debugger... Back to top level. **** Trace end Mirko On Sat, Feb 25, 2012 at 8:28 AM, Jambunathan K wro= te: > > The backtrace is along the expected lines. The zip command is failing > for some reason. > > Did you look at the *Messages* buffer? It is likely to give some clue on > why the zip command is failing. > > Btw, if you have "cvd-modeling-proposal.odt" already open in an external > application like LibreOffice, you may want to close the file first, > before exporting. Closing the file will ensure that the file is not > locked and available for re-writing. > >> Hello: >> >> This is on Windows 7 Emacs 23.3.1, org-version 7.8.03.=A0 (I installed >> org-mode inside cygwin's shell). >> >> Here is the backtrace: >> >> Debugger entered--Lisp error: (error "Unable to create odt file (12)") >> =A0 signal(error ("Unable to create odt file (12)")) >> =A0 error("Unable to create odt file (%S)" 12) >> =A0 (or (zerop exitcode) (ignore (message "%s" err-string)) (error >> "Unable to create odt file (%S)" exitcode)) >> =A0 (lambda (cmd) ... stuff deleted >> =A0 org-odt-save-as-outfile("c:/Users/977315/Documents/projects/low-pres= sure-flow/workbooks/shh+cvd-design-tool-proposal/cvd-modeling-proposal.odt" >> ... more stuff deleted ... >> =A0 org-do-lparse(nil nil nil nil nil nil) >> =A0 org-lparse("odt" "odt" nil nil nil nil nil nil) >> =A0 org-export-as-odt(nil) >> =A0 call-interactively(org-export-as-odt) >> =A0 org-export(nil) >> =A0 call-interactively(org-export nil nil) >> >> The backtrace refers to a a non-existent odt file (see call to >> org-odt-save-as-outfile). =A0Does the call stack look ok to you? >> >> Thanks, >> >> Mirko >> >> > > --