[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#479183: python-uno: Python scripting unsupported



Package: python-uno
Version: 1:2.4.0-5
Severity: normal

Hi,

I cannot execute any Python macro from the OpenOffice process.

Steps to reproduce:
1. drop a file "test.py" in "~/.openoffice.org2/user/Scripts/python/" ("python"
   may need to be created first). "test.py" could look like the following:

def someFunction(*args):
  pass

2. launch OOo (writer, calc, doesn't matter which one).

3. go to Tools > Macros > Manage macros, and unfold "My macros": only the
   "Standard" module appears.
   
Expected behaviour: there should also be a module named "test" corresponding to
"test.py" under "My macros".

I've tried to remove "~/.openoffice.org2/", without success.

The official build (fetched from http://openoffice.org/) works fine (i.e. there
is a "test" module).

This only affects OOo Scripting Framework (scripts inside OOo process: macros
and addins): the UNO bridge works fine when Python is directly called from the
shell (for example "python /usr/share/doc/python-uno/demo/swriter.py" works as
expected).

Thanks.

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing'), (900, 'unstable'), (600, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-1-686 (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages python-uno depends on:
ii  libc6                         2.7-10     GNU C Library: Shared libraries
ii  libgcc1                       1:4.3.0-3  GCC support library
ii  libstdc++6                    4.3.0-3    The GNU Standard C++ Library v3
ii  libstlport4.6ldbl             4.6.2-3.2  STLport C++ class library
ii  openoffice.org-core           1:2.4.0-5  OpenOffice.org office suite archit
ii  python                        2.5.2-1    An interactive high-level object-o
ii  python-central                0.6.6      register and build utility for Pyt
ii  python2.5                     2.5.2-3    An interactive high-level object-o

python-uno recommends no packages.

-- no debconf information




Reply to: