Hello :-)
Implementing unoconv 0.4 as a filter as per
http://trac.xapian.org/ticket/324 has exposed two issues with unoconv. The
first was fixed and is dexscribed here for community benefit; the second is
unresolved.
Software versions: unoconv 0.4 and OOo 3.2.1 OOO320m18 build 9502 on
Slackware64 13.1
First issue
==========
Commands:
soffice -headless -accept='socket,host=127.0.0.1,port=2002;urp;'
unoconv --stdout -f text Test.doc
Input file: Test.doc created by OOo as new file with single lline of text.
Error message:
Traceback (most recent call last):
File "/usr/bin/unoconv", line 67, in <module>
os.environ['LD_LIBRARY_PATH'] = oolibpath + os.pathsep +
os.environ['LD_LIBRARY_PATH']
File "/usr/lib64/python2.6/UserDict.py", line 22, in __getitem__
raise KeyError(key)
KeyError: 'LD_LIBRARY_PATH'
Fix: patch from https://bugzillafiles.novell.org/attachment.cgi?id=403158
Second issue
===========
Commands and input file: as above.
Error message:
Traceback (most recent call last):
File "/usr/bin/unoconv", line 796, in <module>
main()
File "/usr/bin/unoconv", line 775, in main
convertor.convert(inputfn)
File "/usr/bin/unoconv", line 608, in convert
doc = self.desktop.loadComponentFromURL( inputurl , "_blank", 0,
inputprops )
AttributeError: loadComponentFromURL
Perhaps known OOo bug:
http://www.openoffice.org/issues/show_bug.cgi?id=90701
Attempted fix:
http://piiis.blogspot.com/2008_10_01_archive.html
(but I do not python so it could have been badly appplied)
Result: same
Best
Charles
On Wed, Dec 29, 2010 at 08:32:26PM +0530, xapian at catcons.co.uk wrote:> Implementing unoconv 0.4 as a filter as per > http://trac.xapian.org/ticket/324 has exposed two issues with unoconv. The > first was fixed and is dexscribed here for community benefit; the second is > unresolved.Thanks for the information. I've added a link to your message from ticket 324. I suggest you talk to the author of unoconv, Dag Wieers: http://dag.wieers.com/personal/ Hopefully he can apply the patch for the first issue, and advise on the second. Since unoconv 0.4 was only released a few months ago, it looks to be actively maintained. Cheers, Olly
> -----Original Message----- > Date: Mon, 10 Jan 2011 01:19:57 +0000 > From: Olly Betts <olly at survex.com> > Subject: Re: [Xapian-discuss] unoconv 0.4 issues > To: xapian at catcons.co.uk > Cc: 'Xapian Discuss' <xapian-discuss at lists.xapian.org> > Message-ID: <20110110011957.GL19840 at survex.com> > Content-Type: text/plain; charset=us-ascii > > On Wed, Dec 29, 2010 at 08:32:26PM +0530, xapian at catcons.co.uk wrote: > > Implementing unoconv 0.4 as a filter as per > > http://trac.xapian.org/ticket/324 has exposed two issues > with unoconv. The > > first was fixed and is dexscribed here for community > benefit; the second is > > unresolved. > > Thanks for the information. I've added a link to your > message from ticket > 324. > > I suggest you talk to the author of unoconv, Dag Wieers: > > http://dag.wieers.com/personal/ > > Hopefully he can apply the patch for the first issue, and > advise on the > second. Since unoconv 0.4 was only released a few months > ago, it looks > to be actively maintained. > > Cheers, > OllyThanks Olly :-) I had mailed Dag Wieers and allowed a few days for reply before writing to the list, half-hoping some python-sperts might fix what may be a trivial bug (I do not python). Have mailed Dag again. Best Charles