Hi, I'm sorry it didn't work:

ma...@epox:~/tmp$ git clone git://git.debian.org/collab-maint/apt-xapian-
index.git                                                                       
  
Initialized empty Git repository in /home/mario/tmp/apt-xapian-index/.git/ 
remote: Counting objects: 533, done.
remote: Compressing objects:  77%Receiving objects:  58% (310/533), 52.00 
KiB | remote: Compressing objects:  80% (155/193) Receiving objects:  74% 
(395/533), 5remote: Compressing objects: 100% (193/193), done.
remote: Total 533 (delta 351), reused 496 (delta 327)
Receiving objects: 100% (533/533), 88.68 KiB | 79 KiB/s, done.
Resolving deltas: 100% (351/351), done.                       
ma...@epox:~/tmp$ cd apt-xapian-index/                        
ma...@epox:~/tmp/apt-xapian-index$ ./testrun
'Reading current timestamp failed: [Errno 2] No such file or directory: 
'testdb/update-timestamp'. Assuming the index has not been created yet.
Reading Debtags database: done.
Reading en_US translations from /var/lib/apt/lists/www.debian-
multimedia.org_disReading en_US translations from 
/var/lib/apt/lists/www.debian-
multimedia.org_dists_sid_main_i18n_Translation-en%5fUS: done.
Rebuilding Xapian index... 0%plugins/debtags.py:92: DeprecationWarning: Use 
tags_of_package instead
  for tag in self.db.tagsOfPackage(pkg.name):

Traceback (most recent call last):
  File "./update-apt-xapian-index", line 596, in <module>
    buildIndex(dbdir, addons, progress)
  File "./update-apt-xapian-index", line 298, in buildIndex
    addon.obj.index(document, pkg)
  File "plugins/descriptions.py", line 77, in index
    self.indexer.index_text_without_positions(version.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'
ma...@epox:~/tmp/apt-xapian-index$

Thanks,
Mario

On Sunday 12 April 2009 08:42:06 Enrico Zini wrote:
> 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





-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to