Note that there are some explanatory texts on larger screens.

plurals
  1. POOpenOffice.org development with pyUno for Windows—which Python?
    text
    copied!<p>At home, on Linux, I've experimented with pyUNO to control OpenOffice.org using Python. I've been using Python 2.6. It all seems to work nicely.</p> <p>Now I thought I would try one of my scripts (<a href="http://craig.mcqueen.id.au/OpenOfficeGraphicalDiff.html" rel="noreferrer">run a graphical diff for ODF doc</a>) on Windows. But when I tried to run it, I got:</p> <pre><code>ImportError: No module named uno </code></pre> <p>According to <a href="http://udk.openoffice.org/python/python-bridge.html" rel="noreferrer">udk: Python UNO Bridge</a> and <a href="http://wiki.services.openoffice.org/wiki/Using_Python_on_Windows" rel="noreferrer">OpenOffice.org Running Python on Windows</a>, I have to run the Python interpretter that's installed with OpenOffice.org.</p> <p><strong>Q1: Is Python 2.6 available for OpenOffice.org?</strong></p> <p>However, that interpreter is <strong>Python 2.3</strong>, which is getting a little old! and my script uses a feature not supported by 2.3 (<code>subprocess</code> module).</p> <p><strong>Q2: Can pyUNO programming on Windows be done with a pyUNO add-on to the standard Python distribution, not the Python that is bundled with OpenOffice.org?</strong></p> <p>In my searching so far, I haven't been able to find any indication that there is a pyUNO module available to be installed into the standard Python Windows distribution... which is a surprise because on Ubuntu Linux, UNO is supported just fine in Python just by:</p> <pre><code> apt-get install python-uno </code></pre> <p>Another problem with this is: what if I want to make a program that uses both pyUNO and other 3rd party libraries? I can't install pyUNO into my Python installation on Windows, so am I forced to somehow install my other 3rd party libraries into OpenOffice.org's bundled Python? It makes it difficult to create larger, more full-featured programs.</p> <p>Am I missing something, or are we stuck with this situation for now?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload