kupfer thunderbird plugin is broken

Bug #694314 reported by mabab
4
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kupfer
Fix Released
Undecided
Karol Będkowski

Bug Description

I want to use thunderbird plugin, but there is no function like "New Mail" and no search in addressbook or contacts.

When running in terminal, I get the following output:

kupfer
Kupfer: Ein freier Anwendungsstarter (GPLv3+)
 Copyright © 2007--2010 Ulrik Sverdrup with others
 http://kaizer.se/wiki/kupfer/

** (kupfer.py:23909): WARNING **: Trying to register gtype 'WnckWindowState' as enum when in fact it is of type 'GFlags'

** (kupfer.py:23909): WARNING **: Trying to register gtype 'WnckWindowActions' as enum when in fact it is of type 'GFlags'

** (kupfer.py:23909): WARNING **: Trying to register gtype 'WnckWindowMoveResizeMask' as enum when in fact it is of type 'GFlags'
[kupfer.core.sources] SourcePickler: Error loading /home/matthias/.cache/kupfer/kZOQsqlPC6YosWEYHyas4mA-v4.pickle.gz:
[kupfer.plugin.virtualbox]: Using vboxapi...
Error [kupfer.core.pluginload]: Loading Thunderbird-Adressbuch raised an exception:
Traceback (most recent call last):
  File "/usr/share/kupfer/kupfer/core/pluginload.py", line 60, in exception_guard
    yield
  File "/usr/share/kupfer/kupfer/core/sources.py", line 573, in _cache_sources
    self.rescanner.rescan_now(src, force_update=False)
  File "/usr/share/kupfer/kupfer/core/sources.py", line 65, in rescan_now
    self.rescan_source(source, force_update=force_update)
  File "/usr/share/kupfer/kupfer/core/sources.py", line 75, in rescan_source
    list(source.get_leaves(force_update=force_update))
  File "/usr/share/kupfer/kupfer/obj/grouping.py", line 76, in get_leaves
    leaves = Source.get_leaves(src, force_update)
  File "/usr/share/kupfer/kupfer/obj/base.py", line 413, in get_leaves
    datatools.SavedIterable(sort_func(self.get_items()))
  File "/usr/share/kupfer/kupfer/utils.py", line 70, in locale_sort
    seq = seq if isinstance(seq, list) else list(seq)
  File "/usr/share/kupfer/kupfer/plugin/thunderbird.py", line 84, in get_items
    for name, email in support.get_contacts():
  File "/usr/share/kupfer/kupfer/plugin/thunderbird_support.py", line 282, in get_contacts
    tables = _read_mork(abook)
  File "/usr/share/kupfer/kupfer/plugin/thunderbird_support.py", line 141, in _read_mork
    key, val = cell.split('=', 1)
ValueError: need more than 1 value to unpack
Error [kupfer.core.pluginload]: This error is probably a bug in Thunderbird-Adressbuch
Error [kupfer.core.pluginload]: Please file a bug report

** (kupfer.py:23909): CRITICAL **: cr_parser_new_from_buf: assertion `a_buf && a_len' failed

** (kupfer.py:23909): CRITICAL **: cr_parser_set_sac_handler: assertion `a_this' failed

(kupfer.py:23909): librsvg-WARNING **: Error setting CSS SAC handler

** (kupfer.py:23909): CRITICAL **: cr_parser_destroy: assertion `a_this && PRIVATE (a_this)' failed
[kupfer.ui.browser] WindowController: Trying to register <Super>space to spawn kupfer.. success
[kupfer.core.sources] PeriodicRescanner: Starting new campaign, interval 3 s
[kupfer.obj.sources] DirectorySource: Loaded 27 items
[kupfer.plugin.notes] NotesSource: Loaded 8 items
[kupfer.plugin.virtualbox] VBoxMachinesSource: Loaded 2 items
[kupfer.plugin.documents] PlacesSource: Loaded 13 items

Revision history for this message
mabab (mabab) wrote :

Sorry, I forgot to mention I use kupfer v201 with ubuntu maverick 64bit.

Revision history for this message
Karol Będkowski (karol-bedkowski) wrote :

Looks like broken address book file. Which version of Thunderbird do you have?

Changed in kupfer:
assignee: nobody → Karol Będkowski (karol-bedkowski)
Revision history for this message
mabab (mabab) wrote :

Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101208 Lightning/1.0b2 Thunderbird/3.1.7

Revision history for this message
Karol Będkowski (karol-bedkowski) wrote :

I can't reproduce this problem in my environment.
Please apply attached patch and check is this solve your problem:
- save this in /tmp,
- on console
cd /usr/share/kupfer
sudo patch -p1 < /tmp/kupfer_thunderbird_patch.patch
- restart kupfer.
After this, please run kupfer with --debug option, and give mi result (wrong data should be logged).

Regards,
Karol

Revision history for this message
mabab (mabab) wrote :

Thank you very much. With the patch everything is fine. I can search my addressbook and compose new mails to the members of the addressbook.

Best regards

Changed in kupfer:
status: New → Confirmed
status: Confirmed → In Progress
Revision history for this message
X (u78qir8a9-deactivatedaccount) wrote :

Bravely fought! That mork stuff is crazy :-) I'm slowly committing/merging stuff..

Changed in kupfer:
status: In Progress → Fix Committed
Changed in kupfer:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.