emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Opendocument export causes error


From: Torsten Anders
Subject: [O] Opendocument export causes error
Date: Sat, 1 Dec 2012 22:10:33 +0000

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. 

What now. As a hack I could put something in ~/.emacs that loads these 
libraries manually, but there is likely a better solution. 

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 

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 


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. 

Any idea how to resolve this? Again thanks a lot! 

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: 
Export subtree: 
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/manifest.xml...
Wrote 
/var/folders/Mc/Mc7BB2F3GxOLYJol0POQa++++TM/-Tmp-/odf-1712VN/META-INF/manifest.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/MusicConstraintsBookProject.odt
Parsing archive file...done.
Opening file 
/Users/torsten/texte/Bewerbungen/grant-applications/AHRC-application/MusicConstraintsBookProject.odt
Running open 
/Users/torsten/texte/Bewerbungen/grant-applications/AHRC-application/MusicConstraintsBookProject.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/auctex...
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/elib...
Checking 42 files in 
/Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/emacs-rails...
Checking 13 files in 
/Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/haskell-mode...
Checking 9 files in 
/Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/matlab-emacs...
Checking 8 files in 
/Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/nxhtml...
Checking 4 files in 
/Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/python-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/nxhtml/alts...
Checking 23 files in 
/Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/nxhtml/nxhtml...
Checking 18 files in 
/Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/nxhtml/related...
Checking 62 files in 
/Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/nxhtml/util...
Checking 1 files in 
/Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/python-mode/completion...
Checking 1 files in 
/Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/nxhtml/etc/schema...





> From: Jambunathan K <kjambunathan <at> 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.)
> 
> Symptoms tell me that you have a hoaxed installation.
> 
> Try this and see if it helps
> 
>   M-x list-load-path-shadows RET
> 
> 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.
> 
> Try this next.
> 
>   M-x locate-library RET org-compat RET
>   M-x locate-library RET org-odt RET 
> 
>   M-x locate-library RET org-compat.el RET
>   M-x locate-library RET org-odt.el RET 
> 
>   (Note the presence of `.el' in later two commands)
> 
> They should all come from the same directory tree.
> 
> Try this next.
> 
>   M-x load-library RET org-compat.el RET
>   M-x load-library RET org-odt.el RET
> 
>   (Order of loading should be preserved.  `.el' SHOULD be there)
> 
> Now export.  
> 
> Look inside your messages buffer and examine what all ODT exporter is
> trying to do. 
> 
> In all likelihood, you will have a successful export.
> 
> For some more debugging, you can do,
> 
>   M-x locate-library RET org-install RET
>   M-x locate-library RET org-autoloads RET
>   M-x locate-library RET org-loaddefs RET
> 
>   (Try again the above commands with `.el' appended)
> 
> Ideally your .emacs MUST have (require ') for only one of these
> libraries.
> 
> 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.
> 
>> Dear all,
>> 
>> Since a while I cannot export to OpenDocument anymore. Instead, I
>> always get the error
>> 
>> call-interactively: Symbol's value as variable is void: err
>> 
>> 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").
>> 
>> Any help? Thanks!
>> 
>> Best wishes,
>> Torsten
>> 
>> --
>> Dr Torsten Anders
>> Course Leader, Music Technology
>> University of Bedfordshire
>> Park Square, Room A315
>> 
> http://www.torsten-anders.de
> 
>> 
>> 
>> 
>> 
>> 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]