From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: odt2org Date: Tue, 18 Aug 2009 14:34:45 -0400 Message-ID: <8160.1250620485@alphaville.usa.hp.com> References: <87ws51h2tl.fsf@bzg.ath.cx> Reply-To: nicholas.dokos@hp.com Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MdTXW-0007kL-W8 for emacs-orgmode@gnu.org; Tue, 18 Aug 2009 14:36:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MdTXS-0007ex-Dv for emacs-orgmode@gnu.org; Tue, 18 Aug 2009 14:36:10 -0400 Received: from [199.232.76.173] (port=58378 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MdTXS-0007ep-3i for emacs-orgmode@gnu.org; Tue, 18 Aug 2009 14:36:06 -0400 Received: from g5t0009.atlanta.hp.com ([15.192.0.46]:37825) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MdTXR-0004kC-PB for emacs-orgmode@gnu.org; Tue, 18 Aug 2009 14:36:05 -0400 In-Reply-To: Message from Bastien of "Tue\, 18 Aug 2009 17\:46\:30 +0800." <87ws51h2tl.fsf@bzg.ath.cx> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Cc: emacs-orgmode@gnu.org Bastien wrote: > Jose Maria Garcia Perez writes: > > > Please don't blame since I am not a developer (I did what I could). I have not > > tested it much (I did it on windows, not in linux). > > > > The link for the software: > > http://mantiel.wikidot.com/os:odt2org > > Hey, that looks great. I wanted to test it under GNU/Linux (debian) but > the installation of the lxml library is not straightforward: > > http://codespeak.net/lxml/installation.html > > Did anyone successfully installed/tested Jose's converter under GNU/Linux? > Running on Ubuntu 8.04: I used synaptic to install lxml with no problems (presumably you can do the same thing from debian using apt and get the .deb from some ubuntu repository). I also needed to install OleFileIO_PL: $ odt2org.py -i fax_1.odt -o fax1.org ERROR: install "OleFileIO_PL": http://www.decalage.info/files/OleFileIO_PL-0.18.zip That was a straight python library install: unzip and run ``sudo python setup.py install''. After that, I tried it on a fax cover sheet that I just happened to have (I don't do odt so I don't have much lying around) and after I got the following error, I tried it on a simple document that I created: a title and a couple of bullets - I got the same error: $ odt2org.py -i fax_1.odt -o fax_1.org Traceback (most recent call last): File "/home/nick/bin/odt2org.py", line 446, in _oo.exportToORG() File "/home/nick/bin/odt2org.py", line 376, in exportToORG _output = self.__processText__() File "/home/nick/bin/odt2org.py", line 174, in __processText__ _tmp = self.__processParagraph__(_child) File "/home/nick/bin/odt2org.py", line 200, in __processParagraph__ for _i in _para.itertext(): AttributeError: 'etree._Element' object has no attribute 'itertext' If you want to send me an odt document, I can try it out, but otherwise I give up :-) HTH, Nick