python-evolution evolution.ecal has NoneType
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome-python-desktop (Ubuntu) |
New
|
Undecided
|
Unassigned |
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.
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.
<module 'evolution.ecal' from '/usr/lib/
>>> evolution.
[('Personal', 'local:system') ................ ]
Other similar bugs in launchpad: LP #935883, #865988
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 python2. 7/dist- packages/ gtk-2.0/ evolution/ ecal.so' >
>>> print evolution.ecal
<module 'evolution.ecal' from '/usr/lib/
This would be fixed by adding python-gnome2 to the python-evolution dependencies.