title: UNO error: Binary URP bridge disposed during call
body: <p>I am trying to test <strong>Python UNO api</strong> with LibreOffice and It is producing a strange error.</p>
  
  <pre><code>Traceback (most recent call last):
    File "&lt;stdin&gt;", line 16, in &lt;module&gt;
  __main__.RuntimeException: Binary URP bridge disposed during call
  
  shell returned 1
  </code></pre>
  
  <p>Below is my Code:</p>
  
  <pre><code>import socket
  import uno
  localContext = uno.getComponentContext()
  resolver = localContext.ServiceManager.createInstanceWithContext(
                                     "com.sun.star.bridge.UnoUrlResolver", localContext )
  ctx = resolver.resolve( "uno:socket,host=localhost,port=2002;urp;StarOffice.ComponentContext" )
  smgr = ctx.ServiceManager
  desktop = smgr.createInstanceWithContext("com.sun.star.frame.Desktop",ctx) //this line is generating error
  model = desktop.getCurrentComponent()
  text = model.Text
  cursor = text.createTextCursor()
  text.insertString( cursor, "Hello World", 0 )
  ctx.ServiceManager                        
  </code></pre>
  
  <p>As I mentioned in code, this line is generating error
  <em>smgr.createInstanceWithContext("com.sun.star.frame.Desktop",ctx)</em></p>
  
  <p>I am trying to build it upon ARCH LINUX with KDE environment using python3.</p>