Installing python-gnome2 does not solve all the issues. Although ecal is
imported properly, it does not function in every way it should.
For example, this is correct:
>>> calendars = evolution.ecal.list_calendars()
>>> calendars
[('Personal', 'local:system')]
But this is not (calendar does have events in it):
>>> cal = calendars[0]
>>> events = evolution.ecal.open_calendar_source(cal[1],
>>> evolution.ecal.CAL_SOURCE_TYPE_EVENT)
libecal-WARNING **: Cannot get cal from factory: GDBus.Error: the name
org.gnome.dbus.evolution.Calendar1 is not provided by any .service files
>>> events
[]
--
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