[Xapian-discuss] unoconv 0.4 issues

xapian at catcons.co.uk xapian at catcons.co.uk
Wed Dec 29 15:02:26 GMT 2010


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




More information about the Xapian-discuss mailing list