encfile(msg).decode() does not work with py2.7, encfile returns bytes not a string which needs to be decoded http://docs.python.org/3.0/whatsnew/3.0.html
as far as I know the latest version of libreoffice does not support 2.7 , but someone said you can compile with it, anyway this is a vanilla build, the only thing I did was turn on the logging, which I need and should be supported. On Sat, Aug 17, 2013 at 3:44 AM, Rene Engelhard <r...@debian.org> wrote: > On Fri, Aug 16, 2013 at 07:21:50PM -0500, Mike Dupont wrote: >> --- /usr/lib/libreoffice/program/pythonscript.py~ 2013-08-16 >> 18:51:06.865451812 -0500 >> +++ /usr/lib/libreoffice/program/pythonscript.py 2013-08-06 >> 12:25:04.000000000 -0500 >> #------------------------------------------------------------------- >> @@ -70,7 +70,7 @@ >> userInstallation = pathSubst.getSubstituteVariableValue( >> "user" ) >> if len( userInstallation ) > 0: >> systemPath = uno.fileUrlToSystemPath( >> userInstallation + "/Scripts/python/log.txt" ) >> - ret = open( systemPath , "a" ) >> + ret = file( systemPath , "a" ) >> >> And another one : >> 104c106 >> + encfile(msg).decode() + >> - encfile(msg) + > > And this also works with python 2.x? > >> Also note : >> Gathering additional data, this may take a while... >> >> ERROR: There is no such extension deployed: >> com.sun.star.script.provider.ScriptProviderForPython >> >> unopkg failed. >> The package bug script >> /usr/share/bug/libreoffice-script-provider-python/script exited with >> an error status (return code = 256). Do you still want to file a >> report? [y|N|q|?]? y > > Yeah, that bug-script does > > -/usr/lib/libreoffice/program/unopkg list --bundled > com.sun.star.script.provider.ScriptProviderForPython >& > > so this can be removed; as it's not a extension (anymore). But you shouldn't > have added it to this bug (doesn't match the rest). Anyway, thanks. > > Regards, > > Rene -- James Michael DuPont Member of Free Libre Open Source Software Kosova http://flossk.org Saving wikipedia(tm) articles from deletion http://SpeedyDeletion.wikia.com Contributor FOSM, the CC-BY-SA map of the world http://fosm.org Mozilla Rep https://reps.mozilla.org/u/h4ck3rm1k3 Free Software Foundation Europe Fellow http://fsfe.org/support/?h4ck3rm1k3 -- To UNSUBSCRIBE, email to debian-openoffice-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/caf0qkv1mru-+ovvku1vfkralddjegg3f_z_csnhpuezrjas...@mail.gmail.com