emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-odt: cannot find factory styles
@ 2012-03-02 19:06 Matthew Landis
  2012-03-02 20:38 ` Jambunathan K
  0 siblings, 1 reply; 4+ messages in thread
From: Matthew Landis @ 2012-03-02 19:06 UTC (permalink / raw)
  To: emacs-orgmode

Hello all,

I've been googling this problem and searching the archives, but I can't 
seem to find a solution.  When I try to export to ODT, I get

Error (org-odt): Cannot find factory styles files. Aborting.

Looking in my *Messages* buffer, I see at startup:

Debug (org-odt): Searching for OpenDocument schema files...
Debug (org-odt): Trying 
c:/c/Emacs-modified/tmpdir/emacs-23.4/etc/org/schema/...
Debug (org-odt): Trying c:/emacs-23.4/site-lisp/contrib/odt/etc/schema/...
Debug (org-odt): No OpenDocument schema files installed
Debug (org-odt): Searching for OpenDocument styles files...
Debug (org-odt): Trying 
c:/c/Emacs-modified/tmpdir/emacs-23.4/etc/org/styles/...
Debug (org-odt): Trying c:/emacs-23.4/site-lisp/etc/styles/...
Debug (org-odt): Trying c:/emacs-23.4/site-lisp/org/etc/styles/...
Debug (org-odt): Trying c:/emacs-23.4/etc/org/...
Problems while trying to load feature `org-odt'

So you can see that i am using Windows (Win 7 64 bit).  In fact, I am 
using Vincent Goulet's Windows installer (modified-2, FWIW), and I 
directed it to install into C:/emacs-23.4 instead of the default 
C:/Program Files (x86) directory.

Looking in the site-lisp directories for the folders org-odt is 
searching, I don't see contrib, org, or etc directories.

But I do see C:/emacs-23.4/etc/org/styles, which has OrgOdtStyles.xml, 
and C:/emacs-23.4/etc/schema, which doesn't obviously have any files to 
do with ODT.

Is there a workaround or alternative installation to fix it?  It would 
be really cool to export to ODT!

M


-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~
Matthew Landis, Ph.D.
Research Scientist
ISciences, LLC
61 Main St. Suite 200
Burlington VT 05401
802.864.2999
www.isciences.com
~~~~~~~~~~~~~~~~~~~~~~~~~~

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: org-odt: cannot find factory styles
  2012-03-02 19:06 org-odt: cannot find factory styles Matthew Landis
@ 2012-03-02 20:38 ` Jambunathan K
  2012-03-02 20:45   ` Jambunathan K
  2012-03-05 19:38   ` Matthew Landis
  0 siblings, 2 replies; 4+ messages in thread
From: Jambunathan K @ 2012-03-02 20:38 UTC (permalink / raw)
  To: Matthew Landis; +Cc: emacs-orgmode


The easiest solution is to use ELPA. There is some instruction on how to
use ELPA here:

http://orgmode.org/worg/org-faq.html#installing-via-elpa

If you are installing through ELPA for the first time, make sure that
you have no installation of org in your load-path. M-x locate-library
RET org RET will show where the current Org is located. Rename the
parent dir to someother name, so that it is removed out of load
path. Repeat this process until there is no more Org in your
load-path. Then proceed with ELPA installation.

Another solution is to download the tar and use

$ make install

More specifically, use of "byte-compile-directory" to compile and
install Org will definitely *break* the ODT exporter. Copying the .elc
files by hand will also break the exporter. The only solution to have a
working installation is to use "make install" to install the Org >= 7.8.

,----
| # Where local software is found
| prefix=/usr/local
| 
| # Where local lisp files go
| lispdir   = $(prefix)/share/emacs/site-lisp
| 
| # Where data files go
| # $(datadir) contains auxiliary files for use with ODT exporter.
| # See comments under DATAFILES.
| datadir = $(prefix)/share/emacs/etc
`----

> Debug (org-odt): Trying c:/emacs-23.4/site-lisp/etc/styles/...
> Debug (org-odt): Trying c:/emacs-23.4/site-lisp/org/etc/styles/...
> Debug (org-odt): Trying c:/emacs-23.4/etc/org/...

The above two messages suggests that whoever built the binaries had the
following setting for lispdir.

lispdir = c:/emacs-23.4/site-lisp/org

and *didn't* use 'make install'.

If the Org is meant for a global distribution (as opposed to personal
installation), the distributor has to specifically ask the users to copy
the styles file to <<data-directory>>/etc/org.

C-h v data-directory

In your case, the data-directory is c:/emacs-23.4/etc/org/.

Emacs-24.1 (pretest) users will not see this problem because the styles
files are already part of the emacs tree. See
http://bzr.savannah.gnu.org/lh/emacs/trunk/files/head:/etc/org/.


Style files from the git repo is here:
http://orgmode.org/w/?p=org-mode.git;a=tree;f=etc/styles;hb=HEAD

Schema files form the git repo is here:
http://orgmode.org/w/?p=org-mode.git;a=tree;f=contrib/odt/etc/schema;hb=HEAD

Remember to download the raw files if you are downloading from git repo.


> Hello all,
>
> I've been googling this problem and searching the archives, but I
> can't seem to find a solution.  When I try to export to ODT, I get
>
> Error (org-odt): Cannot find factory styles files. Aborting.
>
> Looking in my *Messages* buffer, I see at startup:
>
> Debug (org-odt): Searching for OpenDocument schema files...
> Debug (org-odt): Trying
> c:/c/Emacs-modified/tmpdir/emacs-23.4/etc/org/schema/...
> Debug (org-odt): Trying c:/emacs-23.4/site-lisp/contrib/odt/etc/schema/...
> Debug (org-odt): No OpenDocument schema files installed
> Debug (org-odt): Searching for OpenDocument styles files...
> Debug (org-odt): Trying
> c:/c/Emacs-modified/tmpdir/emacs-23.4/etc/org/styles/...
> Debug (org-odt): Trying c:/emacs-23.4/site-lisp/etc/styles/...
> Debug (org-odt): Trying c:/emacs-23.4/site-lisp/org/etc/styles/...
> Debug (org-odt): Trying c:/emacs-23.4/etc/org/...
> Problems while trying to load feature `org-odt'
>
> So you can see that i am using Windows (Win 7 64 bit).  In fact, I am
> using Vincent Goulet's Windows installer (modified-2, FWIW), and I
> directed it to install into C:/emacs-23.4 instead of the default
> C:/Program Files (x86) directory.
>
> Looking in the site-lisp directories for the folders org-odt is
> searching, I don't see contrib, org, or etc directories.
>
> But I do see C:/emacs-23.4/etc/org/styles, which has OrgOdtStyles.xml,
> and C:/emacs-23.4/etc/schema, which doesn't obviously have any files
> to do with ODT.
>
> Is there a workaround or alternative installation to fix it?  It would
> be really cool to export to ODT!
>
> M

-- 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: org-odt: cannot find factory styles
  2012-03-02 20:38 ` Jambunathan K
@ 2012-03-02 20:45   ` Jambunathan K
  2012-03-05 19:38   ` Matthew Landis
  1 sibling, 0 replies; 4+ messages in thread
From: Jambunathan K @ 2012-03-02 20:45 UTC (permalink / raw)
  To: Matthew Landis; +Cc: emacs-orgmode

Jambunathan K <kjambunathan@gmail.com> writes:

>> But I do see C:/emacs-23.4/etc/org/styles, which has
>> OrgOdtStyles.xml,

I didn't see this in your earlier message.

This is how it is on my Emacs-24.0.94. There is no "styles" subdir. The
XML files are directly under etc/org.

,----
|   c:/Program Files/emacs-24.0.94/etc/org:
|   total used in directory 78 available 33663996
|   drwxrwxrwx  1 kjambunathan None     0 02-26 22:35 .
|   drwxrwxrwx  1 kjambunathan None     0 02-26 22:35 ..
|   -rw-rw-rw-  1 kjambunathan None 17036 02-26 22:35 OrgOdtContentTemplate.xml
|   -rw-rw-rw-  1 kjambunathan None 61383 02-26 22:35 OrgOdtStyles.xml
|   -rw-rw-rw-  1 kjambunathan None  1352 02-26 22:35 README
`----

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: org-odt: cannot find factory styles
  2012-03-02 20:38 ` Jambunathan K
  2012-03-02 20:45   ` Jambunathan K
@ 2012-03-05 19:38   ` Matthew Landis
  1 sibling, 0 replies; 4+ messages in thread
From: Matthew Landis @ 2012-03-05 19:38 UTC (permalink / raw)
  To: Jambunathan K; +Cc: emacs-orgmode



On 3/2/2012 3:38 PM, Jambunathan K wrote:
> If the Org is meant for a global distribution (as opposed to personal
> installation), the distributor has to specifically ask the users to copy
> the styles file to<<data-directory>>/etc/org.
>
> C-h v data-directory
>
> In your case, the data-directory is c:/emacs-23.4/etc/org/.
....snipped
> Style files from the git repo is here:
> http://orgmode.org/w/?p=org-mode.git;a=tree;f=etc/styles;hb=HEAD
>
> Schema files form the git repo is here:
> http://orgmode.org/w/?p=org-mode.git;a=tree;f=contrib/odt/etc/schema;hb=HEAD
>
> Remember to download the raw files if you are downloading from git repo.
>
dear K,
Thanks very much for your response.  Based on what you said above, I was 
able to get it working.  I downloaded the Style and Schema files from 
the git repo, and put them in to the directories that emacs was 
searching, namely:

Debug (org-odt): Using schema files under 
c:/emacs-23.4/site-lisp/contrib/odt/etc/schema/
Debug (org-odt): Using styles under c:/emacs-23.4/site-lisp/etc/styles/

In both cases, I had to create the directories.  to put them in.  I 
figured it was easier (for now) to put the files where this installation 
expected them, rather than fix the installation using ELPA etc.  When I 
update, I'm sure I will use the other approaches you mentioned.

Before I could get ODT success, I also had to install zip and unzip for 
my Windows machine, which I found at 
http://gnuwin32.sourceforge.net/packages.html

Now it works great.

thanks!

M

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~
Matthew Landis, Ph.D.
Research Scientist
ISciences, LLC
61 Main St. Suite 200
Burlington VT 05401
802.864.2999
www.isciences.com
~~~~~~~~~~~~~~~~~~~~~~~~~~

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-03-05 19:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-02 19:06 org-odt: cannot find factory styles Matthew Landis
2012-03-02 20:38 ` Jambunathan K
2012-03-02 20:45   ` Jambunathan K
2012-03-05 19:38   ` Matthew Landis

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