Problem with module 'evolution' after moving system

tinnews at tinnews at
Wed Nov 24 19:13:55 CET 2010

I have just moved my desktop system (running xubuntu 10.04) to new
hardware. I have an almost trivial python program that uses the
evolution module which no longer works and I'm having trouble working
out why.

The program is:-

    import evolution
    import sys

    addrs = evolution.ebook.open_addressbook('default')

    result =[1])

    print "Found ", len(result), " matches"
    if len(result) > 0:
        for nm in result:
            print nm.get_property('email-1'), "\t", nm.get_property('full-name')

When I run it I get the error:-

    chris$ zelma
    Traceback (most recent call last):
      File "/home/chris/bin/", line 10, in <module>
        addrs = evolution.ebook.open_addressbook('default')
    AttributeError: 'NoneType' object has no attribute 'open_addressbook'

Using 'help' reveals basic information for evolution but reports "no
documentation ...." for evolution.ebook.  On the old system (exactly
the same version of python, same OS, same everything just about)
"help(evolution.ebook)" shows the expected documentation.

So, what's wrong, is some python module missing that the evolution
module needs?  (It's quite likely that there are far more modules
installed on the old system than the new one)

Chris Green

More information about the Python-list mailing list