From mboxrd@z Thu Jan 1 00:00:00 1970 From: Torsten Anders Subject: Opendocument export causes error Date: Sat, 1 Dec 2012 22:10:33 +0000 Message-ID: <9A971BBA-5975-417F-B85A-564E06CA77B5@beds.ac.uk> Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:38897) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TevGg-0005p2-QF for emacs-orgmode@gnu.org; Sat, 01 Dec 2012 17:10:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TevGe-00085p-OY for emacs-orgmode@gnu.org; Sat, 01 Dec 2012 17:10:38 -0500 Received: from smtp.idnet.com ([212.69.40.133]:59355) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TevGe-00085g-9y for emacs-orgmode@gnu.org; Sat, 01 Dec 2012 17:10:36 -0500 Received: from localhost (unknown [127.0.0.1]) by smtp.idnet.com (Postfix) with ESMTP id A9D6F9F97A for ; Sat, 1 Dec 2012 22:10:33 +0000 (UTC) Received: from smtp.idnet.com ([127.0.0.1]) by localhost (smtp.idnet.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 9YbrJkjzfaTK for ; Sat, 1 Dec 2012 22:10:32 +0000 (GMT) Received: from smtp.idnet.com (template [127.0.0.1]) by smtp.idnet.com (Postfix) with ESMTP id 1D83C9F988 for ; Sat, 1 Dec 2012 22:10:32 +0000 (GMT) Received: from [192.168.0.3] (cust132-dsl91-135-3.idnet.net [91.135.3.132]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.idnet.com (Postfix) with ESMTPS id C0A5E9F97A for ; Sat, 1 Dec 2012 22:10:31 +0000 (GMT) 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: Org-mode Dear Jambunathan, Thanks a lot for your help and providing such detailed debugging = suggestions. To summarise, after I loaded the *.el files with = load-library as you suggested I got the Opendocument export working. = However, I still do not understand why this is not working normally.=20 What now. As a hack I could put something in ~/.emacs that loads these = libraries manually, but there is likely a better solution.=20 I detail all debugging outputs below. Any suggestion where to go from = here? Thanks a lot again! > M-x list-load-path-shadows RET Basically, subdirectories from two directories are loaded. One is the = standard Emacs (in my case Aquamacs based on GNU Emacs 23.3.50.1 at = /Applications/Mozart/Mozart.app/Contents/Resources/) and the other is my = local emacs lisp directory at ~/emacs/. The full output is copied to the very end of this email. > Check where all org-odt.el When searching the whole file system only a single file org-odt.el is = found in the load-path (in org-mode/lisp). It appears that this file is = not part of my vanilla Emacs (Aquamacs, see above). > M-x locate-library RET org-compat RET In the following I am simply copying the message from *Messages* Library is file ~/emacs/org-mode/lisp/org-compat.elc > M-x locate-library RET org-odt RET=20 Library is file ~/emacs/org-mode/lisp/org-odt.elc > M-x locate-library RET org-compat.el RET Library is file ~/emacs/org-mode/lisp/org-compat.el > M-x locate-library RET org-odt.el RET=20 Library is file ~/emacs/org-mode/lisp/org-odt.el > M-x load-library RET org-compat.el RET > M-x load-library RET org-odt.el RET Done. Export works afterwards! The output in *Messages* is listed after = this email. > M-x locate-library RET org-install RET Library is file ~/emacs/org-mode/lisp/org-install.el (Note the *.el, it is not compiled) > M-x locate-library RET org-autoloads RET No library org-autoloads in search path > M-x locate-library RET org-loaddefs RET Library is file ~/emacs/org-mode/lisp/org-loaddefs.el (Again, no compiled file) > (Try again the above commands with `.el' appended) It is always the same result as about. > Ideally your .emacs MUST have (require ') for only one of these > libraries. None of these libraries is actually loaded in ~/.emacs -- I recently = commented out (require 'org-install) but some recent message from = org-mode suggested to remove that. However, adding (require = 'org-install) makes not difference.=20 Any idea how to resolve this? Again thanks a lot!=20 Best, Torsten > M-x load-library RET org-compat.el RET > M-x load-library RET org-odt.el RET Debug (org-odt): Searching for OpenDocument styles files... Debug (org-odt): Trying /usr/share/emacs/etc/org/styles/... [2 times] Debug (org-odt): Trying /Users/torsten/emacs/org-mode/etc/styles/... Debug (org-odt): Using styles under = /Users/torsten/emacs/org-mode/etc/styles/ Loading /Users/torsten/emacs/org-mode/lisp/org-odt.el (source)...done Export buffer:=20 Export subtree:=20 Exporting to ODT using org-lparse... Using vacuous schema Loading reftex...done LaTeX to MathML converter not available. Using dvipng instead. Exporting... ODT export done, pushed to kill ring and clipboard Wrote = /var/folders/Mc/Mc7BB2F3GxOLYJol0POQa++++TM/-Tmp-/odf-1712VN/meta.xml Using vacuous schema Saving file = /var/folders/Mc/Mc7BB2F3GxOLYJol0POQa++++TM/-Tmp-/odf-1712VN/styles.xml...= Wrote = /var/folders/Mc/Mc7BB2F3GxOLYJol0POQa++++TM/-Tmp-/odf-1712VN/styles.xml Wrote = /var/folders/Mc/Mc7BB2F3GxOLYJol0POQa++++TM/-Tmp-/odf-1712VN/mimetype Using vacuous schema Saving file = /var/folders/Mc/Mc7BB2F3GxOLYJol0POQa++++TM/-Tmp-/odf-1712VN/styles.xml...= Wrote = /var/folders/Mc/Mc7BB2F3GxOLYJol0POQa++++TM/-Tmp-/odf-1712VN/styles.xml (No changes need to be saved) Saving file = /var/folders/Mc/Mc7BB2F3GxOLYJol0POQa++++TM/-Tmp-/odf-1712VN/META-INF/mani= fest.xml... Wrote = /var/folders/Mc/Mc7BB2F3GxOLYJol0POQa++++TM/-Tmp-/odf-1712VN/META-INF/mani= fest.xml Saving file = /var/folders/Mc/Mc7BB2F3GxOLYJol0POQa++++TM/-Tmp-/odf-1712VN/content.xml..= . Wrote = /var/folders/Mc/Mc7BB2F3GxOLYJol0POQa++++TM/-Tmp-/odf-1712VN/content.xml Using vacuous schema (No changes need to be saved) Creating odt file... Running zip -mX0 MusicConstraintsBookProject.odt mimetype Running zip -rmTq MusicConstraintsBookProject.odt . Created = /Users/torsten/texte/Bewerbungen/grant-applications/AHRC-application/Music= ConstraintsBookProject.odt Parsing archive file...done. Opening file = /Users/torsten/texte/Bewerbungen/grant-applications/AHRC-application/Music= ConstraintsBookProject.odt Running open = /Users/torsten/texte/Bewerbungen/grant-applications/AHRC-application/Music= ConstraintsBookProject.odt...done > M-x list-load-path-shadows RET Checking 4 files in ~/emacs/kiwanami-emacs-calfw-v1.1... Checking 5 files in ~/emacs/org-mode/contrib/babel/langs... Checking 55 files in ~/emacs/org-mode/contrib/lisp... Checking 225 files in ~/emacs/org-mode/lisp... Checking 2 files in ~/emacs/planner-20060918/contrib... Checking 44 files in ~/emacs/planner-20060918... Checking 27 files in ~/emacs/muse-14Jan2009/lisp... Checking 14 files in ~/emacs/magit-1.1.1... Checking 10 files in = /Applications/Mozart/Mozart.app/Contents/Resources//share/elisp... Checking 16 files in = /Applications/LilyPond.app/Contents/Resources/share/emacs/site-lisp... Checking 13 files in ~/emacs... Checking 42 files in = /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/auc= tex... Checking 6 files in /Users/torsten/Library/Preferences/Aquamacs Emacs... Checking 597 files in = /Applications/Aquamacs.app/Contents/Resources/lisp... Checking 58 files in = /Applications/Aquamacs.app/Contents/Resources/lisp/url... Checking 90 files in = /Applications/Aquamacs.app/Contents/Resources/lisp/textmodes... Checking 168 files in = /Applications/Aquamacs.app/Contents/Resources/lisp/progmodes... Checking 57 files in = /Applications/Aquamacs.app/Contents/Resources/lisp/play... Checking 100 files in = /Applications/Aquamacs.app/Contents/Resources/lisp/org... Checking 48 files in = /Applications/Aquamacs.app/Contents/Resources/lisp/nxml... Checking 114 files in = /Applications/Aquamacs.app/Contents/Resources/lisp/net... Checking 48 files in = /Applications/Aquamacs.app/Contents/Resources/lisp/mh-e... Checking 69 files in = /Applications/Aquamacs.app/Contents/Resources/lisp/mail... Checking 58 files in = /Applications/Aquamacs.app/Contents/Resources/lisp/language... Checking 65 files in = /Applications/Aquamacs.app/Contents/Resources/lisp/international... Checking 264 files in = /Applications/Aquamacs.app/Contents/Resources/lisp/gnus... Checking 57 files in = /Applications/Aquamacs.app/Contents/Resources/lisp/eshell... Checking 70 files in = /Applications/Aquamacs.app/Contents/Resources/lisp/erc... Checking 52 files in = /Applications/Aquamacs.app/Contents/Resources/lisp/emulation... Checking 138 files in = /Applications/Aquamacs.app/Contents/Resources/lisp/emacs-lisp... Checking 2 files in = /Applications/Aquamacs.app/Contents/Resources/lisp/contrib... Checking 24 files in = /Applications/Aquamacs.app/Contents/Resources/lisp/cedet... Checking 57 files in = /Applications/Aquamacs.app/Contents/Resources/lisp/calendar... Checking 87 files in = /Applications/Aquamacs.app/Contents/Resources/lisp/calc... Checking 35 files in = /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs... Checking 13 files in = /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/macosx... Checking 11 files in = /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/oneonone... Checking 3 files in = /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/tabbar... Checking 43 files in = /Applications/Aquamacs.app/Contents/Resources/lisp/obsolete... Checking 1 files in = /Applications/Aquamacs.app/Contents/Resources/leim... Ignoring redundant directory = /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/ Checking 20 files in = /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes... Ignoring redundant directory = /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/macosx Ignoring redundant directory = /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/oneonone Ignoring redundant directory = /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/tabbar Checking 16 files in = /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/eli= b... Checking 42 files in = /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/ema= cs-rails... Checking 13 files in = /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/has= kell-mode... Checking 9 files in = /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/mat= lab-emacs... Checking 8 files in = /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/nxh= tml... Checking 4 files in = /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/pyt= hon-mode... Checking 103 files in = /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/ess= -mode/lisp... Checking 3 files in = /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/nxh= tml/alts... Checking 23 files in = /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/nxh= tml/nxhtml... Checking 18 files in = /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/nxh= tml/related... Checking 62 files in = /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/nxh= tml/util... Checking 1 files in = /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/pyt= hon-mode/completion... Checking 1 files in = /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/nxh= tml/etc/schema... > From: Jambunathan K gmail.com> > Subject: Re: Opendocument export causes error > Newsgroups: gmane.emacs.orgmode > Date: 2012-12-01 06:52:14 GMT (10 hours and 27 minutes ago) > (Ignore my earlier mail. Follow instruction in this mail instead.) >=20 > Symptoms tell me that you have a hoaxed installation. >=20 > Try this and see if it helps >=20 > M-x list-load-path-shadows RET >=20 > Check where all org-odt.el is installed. Ideally you should see only > two paths - one from vanilla Emacs and one from directory that you are > trying to use right now. >=20 > Try this next. >=20 > M-x locate-library RET org-compat RET > M-x locate-library RET org-odt RET=20 >=20 > M-x locate-library RET org-compat.el RET > M-x locate-library RET org-odt.el RET=20 >=20 > (Note the presence of `.el' in later two commands) >=20 > They should all come from the same directory tree. >=20 > Try this next. >=20 > M-x load-library RET org-compat.el RET > M-x load-library RET org-odt.el RET >=20 > (Order of loading should be preserved. `.el' SHOULD be there) >=20 > Now export. =20 >=20 > Look inside your messages buffer and examine what all ODT exporter is > trying to do.=20 >=20 > In all likelihood, you will have a successful export. >=20 > For some more debugging, you can do, >=20 > M-x locate-library RET org-install RET > M-x locate-library RET org-autoloads RET > M-x locate-library RET org-loaddefs RET >=20 > (Try again the above commands with `.el' appended) >=20 > Ideally your .emacs MUST have (require ') for only one of these > libraries. >=20 > If you pass the censored logs from above commands then I or someone in > this list can guess what is possibly wrong. But my guess is above = steps > should suffice to figure out the remedy. >=20 >> Dear all, >>=20 >> Since a while I cannot export to OpenDocument anymore. Instead, I >> always get the error >>=20 >> call-interactively: Symbol's value as variable is void: err >>=20 >> I just updated to Org-mode version 7.9.2 and the problem persists. In >> the archives I found exactly the same problem mentioned (messages = from >> 11.07.2012 with subject Compile error in org-odt.el in latest = master), >> but I do not understand the solution found then (Rainer Stengele >> reported that he "missed the unzip.exe and now it works"). >>=20 >> Any help? Thanks! >>=20 >> Best wishes, >> Torsten >>=20 >> -- >> Dr Torsten Anders >> Course Leader, Music Technology >> University of Bedfordshire >> Park Square, Room A315 >>=20 > http://www.torsten-anders.de >=20 >>=20 >>=20 >>=20 >>=20 >>=20