bitpim using wrong directory for importing evolution contacts

Bug #221006 reported by Pat Double
2
Affects Status Importance Assigned to Milestone
bitpim (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: bitpim

I am attempting to import contacts from Evolution. I get a crash dialog from BitPim and the error shows that it is looking in $HOME/evolution/local where it should be looking in $HOME/.evolution/addressbook/local/system.

Ubuntu 8.04 development branch, updated less than an hour before this report.

BitPim version: 1.0.2-Debian
An unexpected exception has occurred.
Please see the help for details on what to do.

Traceback (most recent call last):
  File "/usr/share/bitpim/code/gui.py", line 617, in __call__
    return self.func(*self.args, **self.kwargs)
  File "/usr/share/bitpim/code/importexport.py", line 1938, in OnFileImportEvolutionContacts
    dlg=ImportEvolutionDialog(parent, -1, "Import Evolution Contacts", native.evolution)
  File "/usr/share/bitpim/code/importexport.py", line 1498, in __init__
    ImportDialog.__init__(self, parent, id, title)
  File "/usr/share/bitpim/code/importexport.py", line 252, in __init__
    self.getcontrols(vbs)
  File "/usr/share/bitpim/code/importexport.py", line 1521, in getcontrols
    self.folder=self.evolution.getfolderfromid(id, True)
  File "/usr/share/bitpim/code/native/evolution/evolution.py", line 237, in getfolderfromid
    f=_findfolder(id)
  File "/usr/share/bitpim/code/native/evolution/evolution.py", line 259, in _findfolder
    for f in getfolders():
  File "/usr/share/bitpim/code/native/evolution/evolution.py", line 168, in getfolders
    return getspecialfolders()+getfsfolders()
  File "/usr/share/bitpim/code/native/evolution/evolution.py", line 109, in getfsfolders
    for f in os.listdir(basedir):
OSError: [Errno 2] No such file or directory: '/home/double/evolution/local'

Variables by last 8 frames, innermost last

Frame OnFileImportEvolutionContacts in /usr/share/bitpim/code/importexport.py at line 1938
         parent = <gui.MainWindow; proxy of C++ wxFrame instance at _00940009_p_wxFrame>

Frame __init__ in /usr/share/bitpim/code/importexport.py at line 1498
           self = <importexport.ImportEvolutionDialog; proxy of C++ wxDialog instance at _487cf80a
             id = -1
         parent = <gui.MainWindow; proxy of C++ wxFrame instance at _00940009_p_wxFrame>
          title = 'Import Evolution Contacts'

Frame __init__ in /usr/share/bitpim/code/importexport.py at line 252
             sz = (600, 30)
          style = 536877632
         parent = <gui.MainWindow; proxy of C++ wxFrame instance at _00940009_p_wxFrame>
          title = 'Import Evolution Contacts'
           self = <importexport.ImportEvolutionDialog; proxy of C++ wxDialog instance at _487cf80a
            vbs = <wx._core.BoxSizer; proxy of C++ wxBoxSizer instance at _7063fd0a_p_wxBoxSizer>
              t = '<html><body BGCOLOR="#EFEBE7">Importing Evolution Contacts. Select the folder
              w = <wx.html.HtmlWindow; proxy of C++ wxPyHtmlWindow instance at _a887f80a_p_wxPyHtm
             id = -1

Frame getcontrols in /usr/share/bitpim/code/importexport.py at line 1521
            vbs = <wx._core.BoxSizer; proxy of C++ wxBoxSizer instance at _7063fd0a_p_wxBoxSizer>
           self = <importexport.ImportEvolutionDialog; proxy of C++ wxDialog instance at _487cf80a
             id = ''
            hbs = <wx._core.BoxSizer; proxy of C++ wxBoxSizer instance at _1893fd0a_p_wxBoxSizer>

Frame getfolderfromid in /usr/share/bitpim/code/native/evolution/evolution.py at line 237
        default = True
             id = ''

Frame _findfolder in /usr/share/bitpim/code/native/evolution/evolution.py at line 259
             id = ''

Frame getfolders in /usr/share/bitpim/code/native/evolution/evolution.py at line 168

Frame getfsfolders in /usr/share/bitpim/code/native/evolution/evolution.py at line 109
            res = Keys []
                   {}
        basedir = '/home/double/evolution/local'
       children = []

Related branches

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package bitpim - 1.0.5.dfsg.1-5

---------------
bitpim (1.0.5.dfsg.1-5) unstable; urgency=low

  * Clean up /usr/share/bitpim/resources; in particular, use usbutils's
    usb.ids rather than a stale copy. (LP: #77929.)
  * Update path to evolution's contacts. (LP: #221006.)
  * src/database.py (Database._getindirect): strip spurious trailing L
    characters that have started showing up in row numbers.
  * src/bp.py: explicitly use wxPython 2.6, as other versions aren't 100%
    compatible. (LP: #177569.)

 -- Ubuntu Archive Auto-Sync <email address hidden> Tue, 04 Nov 2008 21:13:55 +0000

Changed in bitpim:
status: New → 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.