I was trying to get a HelloWorld macro running under Windows 7 64 bit (German) with LO 4.3.0.4. Every macro under “My Macros” fails with the following popup error message:
pyuno._createUnoStructHelper: member 'Context' of struct type 'com.sun.star.uno.Exception' not given a value.
LibreOffices builtin Macros do work, only my custom macros under \AppData\Roaming\LibreOffice\4\user\scripts\python
dont work.
I enabled logging on the ERROR level, which gave me this output:
Thu Aug 21 19:07:04 2014 [ERROR] ScriptBrowseNode.getPropertyValue error <class 'uno.com.sun.star.uno.RuntimeException'>: pyuno._createUnoStructHelper: member 'Context' of struct type 'com.sun.star.uno.Exception' not given a value.
C:\Program Files (x86)\LibreOffice 4\program\uno.py:353 in function _uno_struct__init__() [struct, used = pyuno._createUnoStructHelper(self.__class__.__pyunostruct__,args,**kwargs)]
C:\Program Files (x86)\LibreOffice 4\program\pythonscript.py:204 in function storageURI2ScriptUri() [raise RuntimeException( message )]
C:\Program Files (x86)\LibreOffice 4\program\pythonscript.py:198 in function getScriptURI() [return self.storageURI2ScriptUri(storageURI)]
C:\Program Files (x86)\LibreOffice 4\program\pythonscript.py:490 in function getPropertyValue() [self.provCtx.getPersistentUrlFromStorageUrl( self.uri + "$" + self.funcName ) )]
Just in case, I just installed JRE 8u20 before.