Hello,
I've created an extension oxt for LibreOffice, in python.
If I execute this macro in writer, it is all ok, but if I execute after installation of my oxt, this is the error:
Errore dello schema di scripting durante l'esecuzione dello script Python vnd.sun.star.script:NewMacro-L-1.3.oxt|python|ProvaUno.py$info?language=Python&location=user:uno_packages.
Messaggio: <class 'KeyError'>: 'NewMacro-L-1.3.oxt'
File "C:\Program Files\LibreOffice\program\pythonscript.py", line 1037, in getScript
self.provCtx.uriHelper.getStorageURI(scriptUri) );
File "C:\Program Files\LibreOffice\program\pythonscript.py", line 407, in getStorageUrlFromPersistentUrl
package = self.mapPackageName2Path[ packageName ]
Can someone help me please?
thanks...
Python Macro oxt
Python Macro oxt
LibreOffice Versione: 6.2.1.2 (x64) on Windows 7
Re: Python Macro oxt
We can not help without the macro code and the extension...
Tibor Kovacs, Hungary; LO6.4.7-7.4.6 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.5.1;AOO4.1.13
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
PortableApps/winPenPack: LO3.3.0-7.5.1;AOO4.1.13
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
Re: Python Macro oxt
I've attached the file oxt.
and the file python.
and the file python.
- Attachments
-
NewMacro-L-1.3.oxt
- (50.28 KiB) Downloaded 235 times
LibreOffice Versione: 6.2.1.2 (x64) on Windows 7
Re: Python Macro oxt
this is the content of python file:
Edit: Text extracted and inserted into attached file python.txt, to shorten posting. It may need editiog to conform to normal python formatting standards. [RoryOF, Moderator] |
- Attachments
-
- python.txt
- (9.77 KiB) Downloaded 260 times
LibreOffice Versione: 6.2.1.2 (x64) on Windows 7
Re: Python Macro oxt
A self-explaining installer template and an installer document with your code.
- Attachments
-
- topic_99373.py.odt
- Topic's Python code in the installer template
- (26.85 KiB) Downloaded 251 times
-
- Dump2Profile.ott
- Template to dump text files (i.e. macros) to the user profile. Contains some StarBasic code.
- (17.02 KiB) Downloaded 261 times
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice