Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install z3c.recipe.openoffice

How to install z3c.recipe.openoffice

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install z3c.recipe.openoffice
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.3 Available View build log
Windows (64-bit)
0.3 Available View build log
Mac OS X (10.5+)
0.3 Available View build log
Linux (32-bit)
0.3 Available View build log
Linux (64-bit)
0.3 Available View build log
 
Author
License
ZPL 2.1
Dependencies
Lastest release
version 0.3 on Jan 5th, 2011

This recipe download openoffice in your buildout, it can also (optional) create egg with pyuno and change the default python used by openoffice.

More info about Python UNO: http://udk.openoffice.org/python/python-bridge.html

We are using this to generate OpenOffice documents from zope/python

Buildout configuration:

Add this section to your buildout configuration:

[buildout]

System Message: ERROR/3 (<string>, line 17)

Inconsistent literal block quoting.

parts = ... your other parts ... openoffice ...

[openoffice] recipe = z3c.recipe.openoffice

This will just download and install openoffice in your buildout

To create the pyuno egg add the fallowing config:

[openoffice]

System Message: ERROR/3 (<string>, line 30)

Inconsistent literal block quoting.

recipe = z3c.recipe.openoffice install-pyuno-egg = yes

To also change openoffice python, add the following config:

[openoffice]

System Message: ERROR/3 (<string>, line 36)

Inconsistent literal block quoting.

recipe = z3c.recipe.openoffice install-pyuno-egg = yes hack-openoffice-python = yes

By default it will fetch version OpenOffice 2.3 but you might want to install from another location or another version like this:

[openoffice]

System Message: ERROR/3 (<string>, line 43)

Inconsistent literal block quoting.

recipe = z3c.recipe.openoffice install-pyuno-egg = yes hack-openoffice-python = yes version = 2.3.1 download-url = ftp://ftp.openoffice.skynet.be/pub/ftp.openoffice.org/stable/2.3.1/OOo_2.3.1_LinuxIntel_install_en-US.tar.gz

Notes:

For this to work an OpenOffice process need to be running in background. As this require a X server and you don't want to install a real X server in a production environment you might want to use Xvfb. Here are the lines we use to start openoffice:

$ cd myBuildout
$ Xvfb :3 -ac -screen sn 800x600x16 &
$ ./parts/openoffice/program/soffice "-accept=socket,host=localhost,port=2002;urp;" -display :3 &
$ ./bin/instance start

This recipe only works with linux at the moment

To test pyuno (requires zopepy in buildout.cfg):

$ ./bin/zopepy

System Message: ERROR/3 (<string>, line 64)

Inconsistent literal block quoting.
>>> import pyuno

If you get the fallowing error:

"SystemError: dynamic module not initialized properly"

Do:

$ ldconfig YOURBUILDOUTFOLDER/parts/openoffice/program

Authors:

Original author: Martijn Faassen - faassen@infrae.com

Modified by: Jean-Francois Roche - jfroche@affinitic.be

Subscribe to package updates

Last updated Jan 5th, 2011

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.