Installing python-gnome2 solves this, because it adds the bonobo
modules. ecal and ebook cannot be imported in python-evolution's
__init__.py without bonobo:

Before installing python-gnome2:

>>> import evolution
>>> print evolution.ecal
None

>>> import ecal
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named bonobo

After installing python-gnome2:

>>> import import evolution
>>> print evolution.ecal
<module 'evolution.ecal' from 
'/usr/lib/python2.7/dist-packages/gtk-2.0/evolution/ecal.so'>

This would be fixed by adding python-gnome2 to the python-evolution
dependencies.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-python-desktop in Ubuntu.
https://bugs.launchpad.net/bugs/1041785

Title:
  python-evolution evolution.ecal has NoneType

Status in “gnome-python-desktop” package in Ubuntu:
  New

Bug description:
  With python-evolution installed version 2.32.0+dfsg-2 in quantal, I
  get the following behavior:

  >>> import evolution
  >>> print evolution.ecal
  None
  >>> evolution.ecal.list_calendars()
  Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
  AttributeError: 'NoneType' object has no attribute 'list_calendars'

  
  With previous version 2.32.0-0ubuntu6, I get the expected behavior:
  >>> import evolution
  >>> print evolution.ecal
  >>> evolution.ecal.list_calendars()
  <module 'evolution.ecal' from 
'/usr/lib/python2.7/dist-packages/gtk-2.0/evolution/ecal.so'>
  >>> evolution.ecal.list_calendars()
  [('Personal', 'local:system') ................ ]

  
  Other similar bugs in launchpad: LP #935883, #865988

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-python-desktop/+bug/1041785/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to