https://bugs.freedesktop.org/show_bug.cgi?id=66025

          Priority: medium
            Bug ID: 66025
                CC: [email protected]
          Assignee: [email protected]
            Blocks: 60270
           Summary: uno.py Importing bindings causes python to crash.
          Severity: blocker
    Classification: Unclassified
                OS: Linux (All)
          Reporter: [email protected]
          Hardware: x86-64 (AMD64)
            Status: UNCONFIRMED
           Version: 4.1.0.0.beta2
         Component: sdk
           Product: LibreOffice

OpenLP 2.0 uses uno.py to access LibreOffice.
This worked fine for the 3.x series but for the 4.x this is crashing the OpenLP
code.

The problem is that uno.py overrides the default import method and then
triggers errors within the normal python code.

A local hack has been found to work but this is not a production fix.

In the _uno_import method comment out the exception raise!

    RuntimeException = pyuno.getClass( "com.sun.star.uno.RuntimeException" )
    for x in fromlist:
       if x not in d:
          if x.startswith( "typeOf" ):
             try:
                d[x] = pyuno.getTypeByName( name + "." + x[6:len(x)] )
             except RuntimeException as e:
                #raise ImportError( "type " + name + "." + x[6:len(x)] +" is
unknown" )
                pass

This was causing code (not related to the libreoffice integration to fail.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to