From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: org-odt: cannot find factory styles Date: Sat, 03 Mar 2012 02:08:21 +0530 Message-ID: <817gz2yc02.fsf@gmail.com> References: <4F511A38.7030300@isciences.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:39267) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S3ZFR-0008CN-QV for emacs-orgmode@gnu.org; Fri, 02 Mar 2012 15:38:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S3ZFP-00017v-Fh for emacs-orgmode@gnu.org; Fri, 02 Mar 2012 15:38:41 -0500 Received: from mail-pw0-f41.google.com ([209.85.160.41]:48062) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S3ZFP-00017p-3H for emacs-orgmode@gnu.org; Fri, 02 Mar 2012 15:38:39 -0500 Received: by pbbro12 with SMTP id ro12so2647731pbb.0 for ; Fri, 02 Mar 2012 12:38:37 -0800 (PST) In-Reply-To: <4F511A38.7030300@isciences.com> (Matthew Landis's message of "Fri, 02 Mar 2012 14:06:32 -0500") 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: Matthew Landis Cc: emacs-orgmode@gnu.org 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 <>/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 --