emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jambunathan K <kjambunathan@gmail.com>
To: Eric Belpaire <eric.belpaire@orange.fr>
Cc: emacs-orgmode@gnu.org
Subject: Re: Testing org-export-as-odt-and-open
Date: Mon, 26 Sep 2011 00:38:54 +0530	[thread overview]
Message-ID: <81ehz4wibd.fsf@gmail.com> (raw)
In-Reply-To: <loom.20110925T001029-431@post.gmane.org> (Eric Belpaire's message of "Sat, 24 Sep 2011 22:41:41 +0000 (UTC)")


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 "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) 
-- 

  reply	other threads:[~2011-09-25 19:09 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-24 22:41 Testing org-export-as-odt-and-open Eric Belpaire
2011-09-25 19:08 ` Jambunathan K [this message]
2011-09-26 22:13   ` Eric Belpaire
2011-10-09 16:23   ` Eric Belpaire
2011-10-09 19:51     ` Jambunathan K
2011-10-10  7:13       ` Eric Belpaire
2011-10-10 11:54         ` Jambunathan K

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=81ehz4wibd.fsf@gmail.com \
    --to=kjambunathan@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=eric.belpaire@orange.fr \
    /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).