hilmar Newbie

Joined: 04 Dec 2008 Posts: 1
|
Posted: Thu Dec 04, 2008 7:10 am Post subject: ErrorCodeIOException unknown (OpenOffice.org 3) |
|
|
Hi,
I just tried the PyODConverter to convert some odt files to pdf. However the conversion doesn't work in OpenOffice 3 and it seems to be a problem of OpenOffice so I ask here.
I get the following error on the command line:
| Code: |
C:\Program Files (x86)\OpenOffice.org 3\program>Traceback (most recent call last):
File "DocumentConverter.py", line 16, in ?
from com.sun.star.task import ErrorCodeIOException
File "C:\Program Files (x86)\OpenOffice.org 3\Basis\program\uno.py", line 297, in _uno_import
raise ImportError( "type "+ name + "." +x + " is unknown" )
ImportError: type com.sun.star.task.ErrorCodeIOException is unknown
|
I started OpenOffice using
| Code: |
soffice.exe -headless -nologo -norestore -accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager
|
and it listens to that port.
My system is a Windows Server 2003 Enterprise x64 edition.
Thanks for your help!
Hilmar |
|
ooo000ooo General User

Joined: 18 Sep 2008 Posts: 10
|
Posted: Fri Dec 05, 2008 12:36 am Post subject: |
|
|
It works for me on Linux.
It's weird raise that exception only, you can comment it if other import works.
comment line 16
| Code: | | #from com.sun.star.task import ErrorCodeIOException |
replace line 147-148 with
| Code: |
except Exception, exception:
print "ERROR! %s" % exception
|
Good luck. |
|