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 "<tableborder=\"2\" cellspacing=\"0\" cellpadding=\"6\" > rules=\"groups\" frame=\"hsides\">" > :xml-declaration (("html" . "<?xml version=\"1.0\" encoding=\"%s\"?>") > ("php" . "<?php echo \"<?xml version=\\\"1.0\\\" > 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 "kjambunat...@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) --