Thursday, October 30, 2008

PyUNO broken in OOo 3.0 with system-python

The issue was reported at here. And the solution is also there. I had to add the following lines to the beginning of the scripts and that come with KnowledgeTree to make them work with 3.0 of Mandriva 2009.0:

import os

Otherwise both scripts will throw out the following error:
AttributeError: loadComponentFromURL


Andrew Z said...

Hey, that's the bug I filed! :) The workaround for Windows uses a slightly different format

Mickael H. said...

For OOo 3.1, URE_BOOTSTRAP should point to fundamentalbasicrc.

Works great with OOo 3.1 64bits (downloaded on on Ubuntu 9.04 bits,

import os