Hallo in die Runde,

Ich versuche grad zu verstehen warum ich nicht mehr mit python-uno interagieren kann. Ich nutze Manjaro Linux und hatte das auch mal am laufen.

Ein Terminal startet Libreoffice mit dem Befehl:

   libreoffice
   
--accept='socket,host=localhost,port=8100,tcpNoDelay=1;urp;StarOffice.ComponentContext'

Ein weiteres Terminal versucht in python, sich mit uno zu verbinden und einen Desktop zu öffnen:

   sys.path.append("/usr/lib/libreoffice/program/") # Das brauche ich
   leider unter Arch weil das paket Libreoffice nicht so gebaut ist das
   uno im python kontext is, so funktioniert der import von uno immerhin
   import uno
   local_ctx = uno.getComponentContext()
   uno_ctx = local_ctx.ServiceManager.createInstanceWithContext(
        "com.sun.star.bridge.UnoUrlResolver", local_ctx).resolve(
        "uno:socket,host=localhost,"  # settings.LIBREOFFICE_HOST
        "port=8100,tcpNoDelay=1;urp;StarOffice.ComponentContext")
   desktop = uno_ctx.ServiceManager.createInstanceWithContext(
        "com.sun.star.frame.Desktop", uno_ctx)

Das scheitert dann mit der folgenden Fehlermeldung:

   __main__.com.sun.star.uno.RuntimeException: Binary URP bridge
   disposed during call at
   
/usr/src/debug/libreoffice-still/libreoffice-7.6.6.3/binaryurp/source/bridge.cxx:615

Hat sich da letzt was dran geändert?

Mit freundlichen Grüßen,

Gerrit

--
logo    


 Gerrit Grosskopf

Software Development

*Building Certification | Passive House Institute*

Facebook <https://www.facebook.com/PassiveHouseInternational> Twitter <https://twitter.com/the_iPHA> LinkedIn <https://www.linkedin.com/company/passive-house-institute> Instagram <https://www.instagram.com/passivehouse_international/>
                
phone   +49 6151 82699-0 <tel:+49 6151 82699-0>
e-mail  gerrit.grossk...@passiv.de <mailto:gerrit.grossk...@passiv.de>
location Rheinstraße 44/46, 64283 Darmstadt (DE) <https://passiv.de/location>
?       www.passivehouse.com <https://www.passivehouse.com>

--
Liste abmelden mit E-Mail an: users+unsubscr...@de.libreoffice.org
Probleme? 
https://de.libreoffice.org/hilfe-kontakt/mailing-listen/abmeldung-liste/
Tipps zu Listenmails: https://wiki.documentfoundation.org/Netiquette/de
Listenarchiv: https://listarchives.libreoffice.org/de/users/
Datenschutzerklärung: https://www.documentfoundation.org/privacy

Antwort per Email an