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

          Priority: medium
            Bug ID: 70196
          Assignee: [email protected]
           Summary: ImportError().with_traceback doesn't exists in Python2
          Severity: major
    Classification: Unclassified
                OS: All
          Reporter: [email protected]
          Hardware: Other
            Status: UNCONFIRMED
           Version: 4.1.1.1 rc
         Component: Libreoffice
           Product: LibreOffice

See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=725491:

--- snip ---
In line 335 of uno.py, exception ImportError() use the method .with_traceback()
which is not available in Python2.x but only in Python3.x.
This lead to an AttributeError() exception and line 338 will never be reached
to raise the correct exception ImportError().

Removing the ".with_traceback..." part solve the problem.
--- snip ---

Diffing in git it was introduced between 4.1.0 and 4.1.1, specially with
commit52a533cc31f630ad482fe0fde8d925b459c787bf: 

commit 52a533cc31f630ad482fe0fde8d925b459c787bf
Author: David Bolen <[email protected]>
Date:   Mon Jul 29 12:44:26 2013 +0200

    fdo#66025: Improve accuracy of ImportError traceback and message

    The ImportError raised on an import failure with the uno module loaded
    now includes a complete traceback and the original Python exception
    message text, combined with the most relevant (nearest to failure if
    imports are nested) uno lookup that also failed.

    Cherry-picked from 948b6ea02ea9de7fb4e1e2baf95ecae3ba1cd54e plus previous
    patches leading up to that, 7fd81244c21ad54a8b9766902fd7c34e8055b165
"fdo#66
    Improve ImportError raised from _uno_import,"
    329125abb63061214897e4f215d41cfa4b13b4b0 "fdo#66025: Minor clean-up of
previ
    patch," and fbe28de6fbfdce41544e4e93168d32661add8285 "fdo#66025: Simplify
ne
    ImportError logic."

    Change-Id: I8c22f22c2d96bdd7fb99a87273ba574e22a86923
    Signed-off-by: Stephan Bergmann <[email protected]>

-- 
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