Hi,

on line 299 in bibindex_engine, we find this:

tmptext = convert_file(tmpdoc, format='.txt')

This call results always in an error as none of the arguments output_format or output_file is passed to the function convert_file().

My guess is that the format argument in the code should actually be output_format. With that change bibindex runs correctly.

Patch attached.

Benoit.
>From 1d85ef48306a3602d876312ce1de3fb0070799b3 Mon Sep 17 00:00:00 2001
From: Benoit Thiell <[email protected]>
Date: Fri, 14 May 2010 14:13:36 -0400
Subject: [PATCH] BibIndex: Bugfix

---
 modules/bibindex/lib/bibindex_engine.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/bibindex/lib/bibindex_engine.py 
b/modules/bibindex/lib/bibindex_engine.py
index 5621069..9f2eb2b 100644
--- a/modules/bibindex/lib/bibindex_engine.py
+++ b/modules/bibindex/lib/bibindex_engine.py
@@ -296,7 +296,7 @@ def get_words_from_fulltext(url_direct_or_indirect, 
stemming_language=None):
             for url in urls:
                 format = guess_format_from_url(url)
                 tmpdoc = download_url(url, format)
-                tmptext = convert_file(tmpdoc, format='.txt')
+                tmptext = convert_file(tmpdoc, output_format='.txt')
                 os.remove(tmpdoc)
                 text = open(tmptext).read()
                 os.remove(tmptext)
-- 
1.5.5.6

Reply via email to