Re: [documancer] ANN: new Documancer release

Arnd Baecker <arnd.baecker-S0/[email protected]> Tue, 15 Feb 2005 15:52:02 +0100 (CET)
Newsgroups gmane.text.documancer.user
Message-ID <[email protected]>
Hi Vaclav,

On Sun, 6 Feb 2005, Vaclav Slavik wrote:

> I released new version of Documancer, upgrade is highly recommended.
> The most notable change is the switch to Lucene fulltext indexer,
> which gives Documancer ability to search texts in languages other
> than English.
>
> Changelog:
>
> - added "Update index" menu entry
> - added contents panel
> - books are now stored in XML files in ~/.documancer/books/ instead of
>   in config file
> - added Refresh and Stop buttons
> - PyLucene is now used instead of SWISH-E for fulltext search and
>   Unicode is fully supported
> - search UI improvements
> - Python 2.3+ is now required

I just checked out the new version and having problems with
the search (I downloaded the linux pyLucene,
http://downloads.osafoundation.org/PyLucene/linux/PyLucene-0.9.7.tar.gz).

After creating the index (e.g. for the python documentation)
any search gives this error:

Traceback (most recent call last):
  File "/opt/python//lib/documancer/gui/MainFrame.py", line 556, in
OnSearch
    for title, url, score in indexer.search(self.currentBook, query):
  File "/opt/python//lib/documancer/indexer.py", line 299, in search
    for r in getFulltextIndexer().search(idir, myquery):
  File "/opt/python//lib/documancer/indexers/_external.py", line 133, in
search
    for r in self.proxy.search(directory, query):
  File "/opt/python//lib/python2.3/xmlrpclib.py", line 1029, in __call__
    return self.__send(self.__name, args)
  File "/opt/python//lib/python2.3/xmlrpclib.py", line 1316, in __request
    verbose=self.__verbose
  File "/opt/python//lib/python2.3/xmlrpclib.py", line 1080, in request
    return self._parse_response(h.getfile(), sock)
  File "/opt/python//lib/python2.3/xmlrpclib.py", line 1214, in
_parse_response
    p.feed(response)
  File "/opt/python//lib/python2.3/xmlrpclib.py", line 528, in feed
    self._parser.Parse(data, 0)
  File "/opt/python//lib/python2.3/xmlrpclib.py", line 772, in end
    return f(self, join(self._data, ""))
  File "/opt/python//lib/python2.3/xmlrpclib.py", line 813, in end_double
    self.append(float(data))
ValueError: invalid literal for float(): 1.0

This is with python 2.3.4, wxmozilla-0.5.3, documancer 0.2.5.
Is something wrong with my setup - or is there a simple fix ?

BTW: creating the index seems (if my memory serves me correctly)
to be much slower than with swish.

And one more: is there a way that documancer could
"automatically" extract a table of contents when
dealing with html files?

Best,

Arnd


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click