Hi Tibor, Thanks.. Patch fixed it.
Cheers, Hossein you wrote:
Hi Hossein: On Fri, 05 Dec 2008, Hossein Rafighi wrote:Exception caught: int() argument must be a string or a number [...] max_recid = int(run_sql("SELECT max(id) FROM bibrec")[0][0])It looks like you don't have any records defined on your system?! The above SQL query will then return NULL, leading to a casting traceback. The following patch fixes the problem: <http://cdsware.cern.ch/repo/?p=cds-invenio.git;a=blobdiff;f=modules/bibrank/lib/bibrank_word_indexer.py;h=ed8bd88ca8aa1e0cd5f765c7b8a2103e6329dc37;hp=a8305839e8a78e311aa74634398c874466947a3e;hb=c570f6c8f96315ef3755791cca7f092c814279eb;hpb=a4017732666dd7d793af78eaf73ace73808d069b> Best regards
-- _____ _____ _____ _ _ _ _ ____ Hossein Rafighi |_ _|| _ \ |_ _|| | | || \_/ || __|TRIUMF, 4004 Wesbrook Mall | | | |_| ) | | | | | || || |__ Vancouver BC, Canada, V6T 2A3 | | | _ / | | | \_/ || \_/ || __|Voice: (604) 222-1047 | | | | \ \ _| |_ | || | | || | Fax: (604) 222-1074 |_| |_| \_\|_____| \___/ |_| |_||_| Website: http://www.triumf.ca
