Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index

Andreas Säger <> writes:


Your 3rd line is supposed to be:
TABALIGN_LEFT = uno.Enum("", "LEFT")

Crud, I don't how how I missed that, sorry - it's a cut 'n paste error
when posting.  The test script didn't have that typo, but had other
enumerations defined that I removed when posting.

I definitely agree the code runs on the older versions of OO and LibO.
That's sort of the point since it only started failing with 3.5 (I've
been using the original script I first noticed this in for several
years).  I couldn't use 3.5.0 due to the uno loading error (the same
exception you got), so first hit it with 3.5.1RC1.

(Ironically, I suppose, I only got on board with 3.5.1 during the RC
phase specifically to ensure the uno loading fix was working in my
environment since the suggested workaround of removing some of the
shared libraries didn't work.)

Here's a simpler (interactive) example:

    > /opt/libreoffice3.5/program/python
    Python 2.6.1 (r261:67515, Feb 24 2012, 08:33:41) 
    [GCC 4.2.4] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import uno
    >>> from import TabStop
    >>> a = TabStop()
    >>> b = TabStop()
    >>> a==b

Since my original post, I have gotten a local build environment for
LibO, and the issue appears to be in the use of the new rich
comparison slot rather than the standard cmp slot 3.4.x was using.
I'm not sure exactly where the error is yet, but returning to the
3.4.5 PyUno_cmp function and use of the older cmp slot works even with

I've gone and and created a bug (46926) since I think this is a
regression from 3.4.5.  It seems to be an unintended consequence of an
earlier Python 3 changeset (as does another issue I found in the wrapper which I added as bug 46926, though that's easier to
work around as it's up in python code).  At least when used with the
internally delivered 2.6.1 interpreter.

-- David

For unsubscribe instructions e-mail to:
Posting guidelines + more:
List archive:
All messages sent to this list will be publicly archived and cannot be deleted


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.