pythonopenoffice.orgpyuno

Using PyUNO on Windows and CentOS


Is there any way to use OpenOffice's PyUNO without using the version of Python that comes with OpenOffice?

I mean, can I install a package (on Windows and CentOS) that uses the version of Python that's already on the server?

I'm trying to use OpenOffice in headless mode so that I can do document conversion with a script (ultimately on a hosted server running CentOS) but my development work is being done on Windows and, occasionally, the Mac). I'm having nothing but trouble getting this to work.


Solution

  • You can't use PyUNO with just any version of Python. You need to use the specific one that's integrated into your OpenOffice installation. However, the very latest OO (3.1 I believe) comes (on all platforms) with the very latest Python (2.6.2 I believe), so if you can upgrade your OpenOffice to the very latest released version on all platforms, you should be just fine.