Hi Joerg,

i did that now, in my case it is

export UNO_TYPES=file:///usr/lib/openoffice/program/types.rdb
python hello_world.py

However, it seems to ignore the environment variable. I'm wondering where
the message

__main__.com.sun.star.uno.RuntimeException: URP-Bridge: disposed(tid=3) No
typedescription can be retrieved for type
com.sun.star.bridge.XProtocolProperties

comes from, is it the python client or the OOo server?

Regards,
Timo

-----Ursprüngliche Nachricht-----
Von: Jörg Budischewski [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 5. September 2007 20:51
An: [email protected]
Betreff: Re: [udk-dev] PyUno and hello_world.py troubles

Hi,

it seems, that the python process cannot find the core typedescription, 
they are usually located in the /path/to/office/program/types.rdb. Just 
for a test, try

export UNO_TYPES=file:///path/to/office/program/types.rdb
python hello_world.py

(note that /path/to/office is a file url, e.g. a space must be encoded 
as %20).

Seems, that the gentoo compilation is buggy here, but without having 
access to it, it is difficult to say, what is wrong.

Bye,

Joerg

Timo A. Hummel wrote:
> Hi there!
> 
> I started out with the documentation on 
> http://udk.openoffice.org/python/python-bridge.html
> 
>  
> 
> I’m using a gentoo box with OpenOffice 2.2.1. I started OpenOffice using
> 
> ooffice "-accept=socket,host=localhost,port=2002;urp;"
> 
> Python tells me after running the hello_world.py-Script:
> 
> Traceback (most recent call last):
>   File "/root/test.py", line 11, in ?
>     ctx = resolver.resolve( 
> "uno:socket,host=localhost,port=2002;urp;StarOffice.ComponentContext" )
> __main__.com.sun.star.uno.RuntimeException: URP-Bridge: disposed(tid=3) 
> No typedescription can be retrieved for type 
> com.sun.star.bridge.XProtocolPropertie
> 
> Seems that the bridge can connect, but doesn’t get what it expects. I 
> wonder where the type description comes from, can you help me?
> 
> cheers,
> Timo
> 
>  
> 
> ---
> 
>  
> 
> Nuros Software
> 
> Inh. Timo A. Hummel
> 
>  
> 
> Mainzer Strasse 10
> 
> 55422 Bacharach
> 
>  
> 
> Telefon: +49 (0)6743 96 55 - 89
> 
> Telefax: +49 (0)6743 96 55 - 90
> 
>  
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to