We're currently migrating from Ask to Discourse, read the details here

Ask Your Question

Python Scripting Failure after LibO 3.4->3.5 Upgrade (SuSE 12.1 x64) [closed]

asked 2012-07-06 10:15:16 +0200

LinuksGuru gravatar image

updated 2015-10-17 00:34:04 +0200

Alex Kemp gravatar image

Hi !

After upgrade from LibO 3.4 to 3.5 (on SuSE 12.1 x64) all my Python macros have stopped working with very long error message (below).

All my Python scripts located in the same location as before: ~user/.libreoffice/3-suse/user/Scripts/python/

At a glance, looks like LibO python module can't properly locate scripts anymore for whatever reason (maybe internal API changes I'm not aware of).

Anyone can suggest me what might go wrong?

Thanks in advance.

Error Messagee

BASIC runtime error. An exception occurred. Type: com.sun.star.script.provider.ScriptFrameworkErrorExceptionMessage: <class 'uno_component.com.sun.starucb.interactiveaugmentedioexception'="">: an error occured during file opening

/usr/lib64/libreoffice/share/extensions/script-provider-for-python/pythonscript.py:376 in function getModuleByURL() [lastRead = self.sfa.getDateTimeModified(url)]

/usr/lib64/libreoffice/share/extensions/script-provider-for-python/pythonscript.py:900 in function getScript() [mod = self.provCtx.getModuleByUrl(fileUrl)]

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2015-10-17 00:34:20.676880

1 Answer

Sort by » oldest newest most voted

answered 2012-07-06 20:27:24 +0200

LinuksGuru gravatar image

I found solution for this problem.

LibreOffice development team have changed location of directory which stores setting files, extensions, macros, etc. LibreOffice 3.4.x /$HOME/.libreoffice/3-suse/user/Scripts/ LibreOffice 3.5.x /$HOME/.config/libreoffice/3-suse/user/Scripts/

After moving python scripts to proper location everything went fine. My only major complain is that after first launch of LibreOffice 3.5.x I should be given some alert, or even better, a confirmation dialog asking to copy all my custom stuff to the new location.

Also in my blog: http://www.vacuum-tube.eu/wp/?p=399

edit flag offensive delete link more

Question Tools


Asked: 2012-07-06 10:15:16 +0200

Seen: 607 times

Last updated: Jul 06 '12