From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: Testing org-export-as-odt-and-open Date: Mon, 26 Sep 2011 00:38:54 +0530 Message-ID: <81ehz4wibd.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:45838) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R7u4g-000500-9y for emacs-orgmode@gnu.org; Sun, 25 Sep 2011 15:09:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R7u4e-0005O6-M1 for emacs-orgmode@gnu.org; Sun, 25 Sep 2011 15:09:14 -0400 Received: from mail-yw0-f41.google.com ([209.85.213.41]:58469) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R7u4e-0005O1-JO for emacs-orgmode@gnu.org; Sun, 25 Sep 2011 15:09:12 -0400 Received: by ywe9 with SMTP id 9so4506655ywe.0 for ; Sun, 25 Sep 2011 12:09:12 -0700 (PDT) In-Reply-To: (Eric Belpaire's message of "Sat, 24 Sep 2011 22:41:41 +0000 (UTC)") 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: Eric Belpaire Cc: emacs-orgmode@gnu.org Hello Eric > Hello > > I'm testing org-export-as-odt-and-open on Jambunathan's test.org file. > I get error message "Unable to create odt file (53)". What version of zip are you using. 53 that you see here is the exit code from the zip command. I am not sure what that error means. Does the failure happen always or transitorily? > Is this caused by the fact that files are created in different directories? > a) org-export-as-odt-and-open creates the file e:/User/home/pub_html/test.odt > wheras > b) the xml files are written in directory c:/Documents and > Settings/GCVD3476/Local Settings/Temp/odt-4928fzB/ What the exporter does is this, $ cd tmp-dir $ zip -rmTq test.odt . $ mv test.odt pub-dir $ rm tmp-dir When the zip command fails, you can replay the above sequence by hand and see what error zip is generating OR > ~/.emacs.d/elpa/org-odt-20110702/contrib/odt/etc/schema/od-schema-v1.2-cs01.rnc That version is almost 3 months old. I have made lots of bug fixes and improvments since then. I have also modified the exporter a few minutes ago so that the output from the zip command also appears in the *Messages* buffer. I STRONGLY RECOMMEND that you switch to the development version of Orgmode. Please refer to http://orgmode.org/worg/org-faq.html - sections "How do I keep current with bleeding edge development?" or "I don't use git. Can I download bleeding edge .zip and .tar.gz archives?" If you would very much want to work only with ELPA tarballs, maybe you should wait for a day or two. I was planning to build one anyways and now I have an excuse why I should build one. > The debugger is entered when: Creating odt file using "zip -rmTq test.odt ." > > Did I forget to configure some variable or should I configure variable > org-export-publishing-directory (currently: "e:/User/home/pub_html/") > differently? May be you can try resetting org-export-publishing-directory to nil just for testing purposes and see whether it makes any difference. > Below an extract from *Messages* and *Batmcktrace* buffers. > > Cordially, > Eric .> > Debugger entered--Lisp error: (error "Unable to create odt file (53)") > signal(error ("Unable to create odt file (53)")) > error("Unable to create odt file (%S)" 53) > org-odt-save-as-outfile("e:/User/home/pub_html/test.odt" > (:latex-image-options nil :exclude-tags ("noexport") :select-tags ("export") > :publishing-directory "~/pub_html" :timestamp nil :expand-quoted-html t > :html-table-tag " rules=\"groups\" frame=\"hsides\">" > :xml-declaration (("html" . "") > ("php" . " encoding=\\\"%s\\\" ?>\"; ?>")) :html-postamble auto :html-preamble t > :html-extension "html" :inline-images maybe :convert-org-links t :agenda-style > "" :style-extra "" :style "" :style-include-scripts t :style-include-default t > :table-auto-headline t :tables t :time-stamp-file t :creator-info t :email-info > nil :author-info t :email "kjambunathan@gmail.com" ...)) > org-do-lparse(nil hidden nil nil nil nil) > org-lparse("odt" "odt" nil hidden) > org-lparse-and-open("odt" "odt" nil) > org-export-as-odt-and-open(nil) > call-interactively(org-export-as-odt-and-open) > org-export(nil) > call-interactively(org-export nil nil) --