OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

ErrorCodeIOException unknown (OpenOffice.org 3)

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
hilmar
Newbie
Newbie


Joined: 04 Dec 2008
Posts: 1

PostPosted: Thu Dec 04, 2008 7:10 am    Post subject: ErrorCodeIOException unknown (OpenOffice.org 3) Reply with quote

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
Back to top
View user's profile Send private message
ooo000ooo
General User
General User


Joined: 18 Sep 2008
Posts: 10

PostPosted: Fri Dec 05, 2008 12:36 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group