From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?Jos=E9_Mar=EDa_Garc=EDa_P=E9rez?= Subject: Re: odt2org Date: Sat, 17 Apr 2010 19:03:08 +0100 Message-ID: References: <87ws51h2tl.fsf@bzg.ath.cx> <8160.1250620485@alphaville.usa.hp.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0601155306==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O3CMP-0007V5-Kp for emacs-orgmode@gnu.org; Sat, 17 Apr 2010 14:03:17 -0400 Received: from [140.186.70.92] (port=44416 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O3CMN-0007Up-Oj for emacs-orgmode@gnu.org; Sat, 17 Apr 2010 14:03:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O3CML-0006Sx-4C for emacs-orgmode@gnu.org; Sat, 17 Apr 2010 14:03:15 -0400 Received: from mail-bw0-f225.google.com ([209.85.218.225]:65497) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O3CMK-0006ST-RT for emacs-orgmode@gnu.org; Sat, 17 Apr 2010 14:03:13 -0400 Received: by bwz25 with SMTP id 25so3546297bwz.8 for ; Sat, 17 Apr 2010 11:03:11 -0700 (PDT) In-Reply-To: <8160.1250620485@alphaville.usa.hp.com> 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: nicholas.dokos@hp.com Cc: Bastien , emacs-orgmode@gnu.org --===============0601155306== Content-Type: multipart/alternative; boundary=0015174c11de551d750484728af4 --0015174c11de551d750484728af4 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Nicholas, I have some free time so I am reviewing the code again. I did it quite fast= , because I was needing it. I would love if you could send me that file to reproduce the error. But it would be better, if you could produce one that = I could add to the .zip without copyright issues. Kind regards, Jos=E9 M. 2009/8/18 Nick Dokos > 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) bu= t > > 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 =3D self.__processText__() > File "/home/nick/bin/odt2org.py", line 174, in __processText__ > _tmp =3D 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 > --0015174c11de551d750484728af4 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Nicholas,
I have some free time so I am reviewing the code again. I = did it quite fast, because I was needing it. I would love if you could send= me that file to reproduce the error. But it would be better, if you could = produce one that I could add to the .zip without copyright issues.

Kind regards,
Jos=E9 M.=A0

2009/8/18 Nick Dokos <nicholas.dokos@hp.com>
<= blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px= #ccc solid;padding-left:1ex;"> Bastien <bastienguerry@g= ooglemail.com> wrote:

> Jose Maria Garcia Perez <josemaria.alkala@gmail.com> writes:
>
> > Please don't blame since I am not a developer (I did what I c= ould). 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. =A0I wanted to test it under GNU/Linux (debian)= but
> the installation of the lxml library is not straightforward:
>
> =A0 http://codespeak.net/lxml/installation.html
>
> Did anyone successfully installed/tested Jose's converter un= der 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/f= iles/OleFileIO_PL-0.18.zip


That was a straight python library install: unzip and run ``sudo python
setup.py install''. =A0After 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 ar= ound)
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):
=A0File "/home/nick/bin/odt2org.py", line 446, in <module>=
=A0 =A0_oo.exportToORG()
=A0File "/home/nick/bin/odt2org.py", line 376, in exportToORG =A0 =A0_output =3D self.__processText__()
=A0File "/home/nick/bin/odt2org.py", line 174, in __processText_= _
=A0 =A0_tmp =3D self.__processParagraph__(_child)
=A0File "/home/nick/bin/odt2org.py", line 200, in __processParag= raph__
=A0 =A0for _i in _para.itertext():
AttributeError: 'etree._Element' object has no attribute 'itert= ext'

If you want to send me an odt document, I can try it out, but otherwise
I give up :-)

HTH,
Nick

--0015174c11de551d750484728af4-- --===============0601155306== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0601155306==--