Running test.py with evolution, which seems to have been the problem here, I get:
root@hope# python /tmp/test.py /usr/lib/python2.5/site-packages/apt/__init__.py:18: FutureWarning: apt API not stable yet warnings.warn("apt API not stable yet", FutureWarning) current: <pkgCache::Version object: Pkg:'evolution' Ver:'2.12.0-0ubuntu1' Section:'gnome' Arch:'i386' Size:2610980 ISize:8110080 Hash:21414 ID:437 Priority:4> candidate: <pkgCache::Version object: Pkg:'evolution' Ver:'2.12.0-0ubuntu1' Section:'gnome' Arch:'i386' Size:2610980 ISize:8110080 Hash:21414 ID:437 Priority:4> Lookup: 1 src: name: evolution
Running test.py with evolution, which seems to have been the problem here, I get:
root@hope# python /tmp/test.py python2. 5/site- packages/ apt/__init_ _.py:18: FutureWarning: apt API not stable yet warn("apt API not stable yet", FutureWarning) 12.0-0ubuntu1' Section:'gnome' Arch:'i386' Size:2610980 ISize:8110080 Hash:21414 ID:437 Priority:4> 12.0-0ubuntu1' Section:'gnome' Arch:'i386' Size:2610980 ISize:8110080 Hash:21414 ID:437 Priority:4>
/usr/lib/
warnings.
current: <pkgCache::Version object: Pkg:'evolution' Ver:'2.
candidate: <pkgCache::Version object: Pkg:'evolution' Ver:'2.
Lookup: 1
src:
name: evolution