On Thu, Mar 26, 2009 at 03:05:33PM -0600, da...@nwind.net wrote: > I am unable to get a run of update-apt-xapian-index to complete. It > continually fails with the following error: [...] > File "/usr/share/apt-xapian-index/plugins/descriptions.py", line 75, in > index > self.indexer.index_text_without_positions(pkg.rawDescription) > File "/usr/lib/python2.5/site-packages/apt/package.py", line 95, in __get__ > return property.__get__(self, obj, type) > File "/usr/lib/python2.5/site-packages/apt/package.py", line 510, in > rawDescription > return self.candidate.raw_description > File "/usr/lib/python2.5/site-packages/apt/package.py", line 245, in > raw_description > return self._records.LongDesc > File "/usr/lib/python2.5/site-packages/apt/package.py", line 202, in > _records > if self.package._pcache._records.Lookup(self._cand.FileList[0]): > AttributeError: 'NoneType' object has no attribute 'FileList' [...]
On Sun, Apr 12, 2009 at 10:55:45AM +0200, Jochen Schulz wrote: > I just did a fresh install of goplay which pulled in ept-cache. It > looked like this: [...] > File "/usr/share/apt-xapian-index/plugins/apttags.py", line 104, in index > rec = pkg.candidateRecord > File "/usr/lib/python2.5/site-packages/apt/package.py", line 107, in __get__ > return property.__get__(self, obj, type) > File "/usr/lib/python2.5/site-packages/apt/package.py", line 614, in > candidateRecord > return self.candidate.record > File "/usr/lib/python2.5/site-packages/apt/package.py", line 325, in record > return Record(self._records.Record) > File "/usr/lib/python2.5/site-packages/apt/package.py", line 214, in > _records > if self.package._pcache._records.Lookup(self._cand.FileList[0]): > AttributeError: 'NoneType' object has no attribute 'FileList' > Setting up ept-cache (0.5.26) ... [...] On Sun, Apr 12, 2009 at 06:44:47AM -0300, Mario R. Carro wrote: > Running ept-cache reindex gave me (this was the second time): [...] > self.indexer.index_text_without_positions(pkg.rawDescription) > File "/usr/lib/python2.5/site-packages/apt/package.py", line 107, in > __get__ > return property.__get__(self, obj, type) > File "/usr/lib/python2.5/site-packages/apt/package.py", line 609, in > rawDescription > return self.candidate.raw_description > File "/usr/lib/python2.5/site-packages/apt/package.py", line 257, in > raw_description > return self._records.LongDesc > File "/usr/lib/python2.5/site-packages/apt/package.py", line 214, in > _records > if self.package._pcache._records.Lookup(self._cand.FileList[0]): > AttributeError: 'NoneType' object has no attribute 'FileList' [...] Hello. These are just three instances of the same problem: python-apt has deprecated some old functions in favour of new ones. But it seems that it did not just deprecate the old function, but it has also broken them. Unfortunately, I cannot reproduce the bug in my system: in a clean chroot, it does not happen. It probably only happens when having obsolete packages installed, or something like that. Anyway, I've ported apt-xapian-index to the new python-apt API, and I hope that it fixes the problem. I would like you to give it a try and tell me if it works: git clone git://git.debian.org/collab-maint/apt-xapian-index.git cd apt-xapian-index ./testrun As soon as I know that it fixes the problem, I'll proceed with an upload. Ciao, Enrico -- GPG key: 1024D/797EBFAB 2000-12-05 Enrico Zini <enr...@debian.org>
signature.asc
Description: Digital signature