← Back to team overview

openlp-core team mailing list archive

[Bug 1222823] Re: Libreoffice 'exceptions.ImportError object has no attribute 'with_traceback'"

 

** Also affects: openlp
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of OpenLP
Core, which is subscribed to OpenLP.
https://bugs.launchpad.net/bugs/1222823

Title:
  Libreoffice 'exceptions.ImportError object has no attribute
  'with_traceback'"

Status in LibreOffice Productivity Suite:
  New
Status in OpenLP - Worship Presentation Software:
  New

Bug description:
  This happens here in an Ubuntu 12.04 32 bit. It may happen to other
  versions but I haven't tried yet.

  When using Libreoffice 1:4.1.1-0ubuntu1~precise1 (Help - About LibreOffice shows Version: 4.1.1.2, Build ID: 410m0(Build:2) installed using the PPA libreoffice-4.1: when adding the attached extension it shows an error message such as:
  -------------
  <type 'exceptions.AttributeError'>: 'exceptions.ImportError' object has no attribute 'with_traceback', traceback follows
    /usr/lib/python2.7/dist-packages/uno.py:334 in function _uno_import() ["%s (or '%s.%s' is unknown)" % (py_import_exc, name, x)]
    /usr/lib/python2.7/copy.py:60 in function <module>() [from org.python.core import PyStringMap]
    /usr/lib/python2.7/dist-packages/uno.py:268 in function _uno_import() [return _g_delegatee( name, *optargs, **kwargs )]
    /usr/lib/python2.7/decimal.py:139 in function <module>() [import copy as _copy]
    /usr/lib/python2.7/dist-packages/uno.py:268 in function _uno_import() [return _g_delegatee( name, *optargs, **kwargs )]
    /usr/lib/python2.7/dist-packages/simplejson/__init__.py:109 in function <module>() [from decimal import Decimal]
    /usr/lib/python2.7/dist-packages/uno.py:268 in function _uno_import() [return _g_delegatee( name, *optargs, **kwargs )]
    /home/carles/.config/libreoffice/4/user/uno_packages/cache/uno_packages/lumd3lp.tmp_/Mendeley-1.10-dev3.oxt/Scripts/MendeleyDesktopAPI.py:17 in function <module>() [try: import simplejson as json]
    /usr/lib/libreoffice/program/pythonloader.py:103 in function getModuleFromUrl() [exec(codeobject, mod.__dict__)]
    /usr/lib/libreoffice/program/pythonloader.py:149 in function writeRegistryInfo() [mod = self.getModuleFromUrl( locationUrl )]
  -------------

  Using Libreoffice 4.1 from libreoffice.org: works correctly.

  Editing the extension with this change:
  -except ImportError: import json
  +except: import json

  (it appears twice)

  Then it works correctly - not sure why.

  Let me know if you need some more information.

  Thank you,

To manage notifications about this bug go to:
https://bugs.launchpad.net/df-libreoffice/+bug/1222823/+subscriptions