Note that there are some explanatory texts on larger screens.

plurals
  1. POOpenoffice3.1 pyuno confusing errors
    text
    copied!<p>I'm trying to get the <a href="http://wiki.services.openoffice.org/wiki/PyUNO_bridge" rel="nofollow noreferrer">sample</a> and other sample codes i find for pyuno running with openoffice 3.1.1 and python 2.5 with no luck. </p> <p>Unfortunately, pyuno does not give any clues about what goes wrong.</p> <pre> In [1]: import uno In [2]: local = uno.getComponentContext() In [3]: resolver = local.ServiceManager.createInstanceWithContext("com.sun.star.bridge.UnoUrlResolver", local) --------------------------------------------------------------------------- com.sun.star.uno.RuntimeException Traceback (most recent call last) /opt/openoffice.org/basis3.1/program/ in () com.sun.star.uno.RuntimeException: : 'tuple' object has no attribute 'getTypes', traceback follows no traceback available </pre> <p>below is the output of execution of /opt/openoffice.org/basis3.1/program/officehelper.py which basically boots the headless office instance and returns a related context object.</p> <pre> den@ev:/opt/openoffice.org/basis3.1/program > python officehelper.py Traceback (most recent call last): File "officehelper.py", line 42, in from com.sun.star.connection import NoConnectException File "uno.py", line 273, in _uno_import RuntimeException = pyuno.getClass( "com.sun.star.uno.RuntimeException" ) RuntimeError: pyuno.getClass: expecting one string argument </pre> <p>pyuno takes only 1 argument and it hasto be a string, as defined in <a href="http://udk.openoffice.org/source/browse/udk/pyuno/source/module/pyuno_module.cxx?rev=1.14&amp;view=markup" rel="nofollow noreferrer">http://udk.openoffice.org/source/browse/udk/pyuno/source/module/pyuno_module.cxx?rev=1.14&amp;view=markup</a> i could not manage to get pyuno.getClass work anyway.</p> <p>any suggestions about how to get pyuno working?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload